Skip to content

Commit a1d99b1

Browse files
committed
Bug fixes
1 parent 04c78f2 commit a1d99b1

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

build/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
var express = require("express");
3+
exports.languageParser = void 0;
44
var src_1 = require("./src");
5-
var app = express();
6-
app.use((0, src_1.languageParser)('languages'));
7-
app.use('/', function (req, res) {
8-
res.send(res.lang);
9-
});
10-
app.listen(80);
5+
Object.defineProperty(exports, "languageParser", { enumerable: true, get: function () { return src_1.languageParser; } });

index.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
import * as express from 'express';
21
import {languageParser} from './src';
32

4-
var app = express();
5-
6-
app.use(languageParser('languages'))
7-
8-
app.use('/' , (req,res) => {
9-
res.send(res.lang);
10-
})
11-
12-
app.listen(80);
3+
export {
4+
languageParser
5+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"typescript": "^5.1.6"
88
},
99
"name": "language-accepter",
10-
"version": "1.0.7",
10+
"version": "1.0.10",
1111
"main": "./build/index.js",
1212
"scripts": {
1313
"tsc": "tsc ./index.ts -w --outDir ./build",

0 commit comments

Comments
 (0)