From a1d99b1ee7b52de627e619df21a2e22e281d4437 Mon Sep 17 00:00:00 2001 From: lim10tech Date: Mon, 7 Aug 2023 19:07:54 +0300 Subject: [PATCH] Bug fixes --- build/index.js | 9 ++------- index.ts | 13 +++---------- package.json | 2 +- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/build/index.js b/build/index.js index f596cba..b71353e 100644 --- a/build/index.js +++ b/build/index.js @@ -1,10 +1,5 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var express = require("express"); +exports.languageParser = void 0; var src_1 = require("./src"); -var app = express(); -app.use((0, src_1.languageParser)('languages')); -app.use('/', function (req, res) { - res.send(res.lang); -}); -app.listen(80); +Object.defineProperty(exports, "languageParser", { enumerable: true, get: function () { return src_1.languageParser; } }); diff --git a/index.ts b/index.ts index 0c540c3..65d11ef 100644 --- a/index.ts +++ b/index.ts @@ -1,12 +1,5 @@ -import * as express from 'express'; import {languageParser} from './src'; -var app = express(); - -app.use(languageParser('languages')) - -app.use('/' , (req,res) => { - res.send(res.lang); -}) - -app.listen(80); \ No newline at end of file +export { + languageParser +} \ No newline at end of file diff --git a/package.json b/package.json index 52459d5..2068357 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "typescript": "^5.1.6" }, "name": "language-accepter", - "version": "1.0.7", + "version": "1.0.10", "main": "./build/index.js", "scripts": { "tsc": "tsc ./index.ts -w --outDir ./build",