Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gerceker committed Aug 7, 2023
1 parent 04c78f2 commit a1d99b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
9 changes: 2 additions & 7 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -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; } });
13 changes: 3 additions & 10 deletions index.ts
Original file line number Diff line number Diff line change
@@ -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);
export {
languageParser
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a1d99b1

Please sign in to comment.