Lock NPM versions.

This commit is contained in:
softsimon committed 2020-10-26 15:59:28 +07:00
1 parent 8a1598137e
commit 82dd3eaf75
5 files changed
+15935 -566

No files matched your search

+1350 -109
View File
File diff suppressed because it is too large. Load diff
+12 -14
View File
@@ -25,21 +25,19 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"compression": "^1.7.4",
"express": "^4.17.1",
"locutus": "^2.0.12",
"mysql2": "^1.6.1",
"node-worker-threads-pool": "^1.4.2",
"request": "^2.88.2",
"ws": "^7.3.1"
"express": "4.17.1",
"locutus": "2.0.12",
"mysql2": "1.6.1",
"node-worker-threads-pool": "1.4.3",
"request": "2.88.2",
"ws": "7.3.1"
},
"devDependencies": {
"@types/compression": "^1.0.1",
"@types/express": "^4.17.2",
"@types/request": "^2.48.2",
"@types/ws": "^6.0.4",
"@types/locutus": "^0.0.6",
"tslint": "~6.1.0",
"typescript": "~3.9.7"
"@types/express": "4.17.2",
"@types/locutus": "0.0.6",
"@types/request": "2.48.2",
"@types/ws": "6.0.4",
"tslint": "6.1.0",
"typescript": "3.9.7"
}
}
-2
View File
@@ -1,6 +1,5 @@
import { Express, Request, Response, NextFunction } from 'express';
import * as express from 'express';
import * as compression from 'compression';
import * as http from 'http';
import * as https from 'https';
import * as WebSocket from 'ws';
@@ -66,7 +65,6 @@ class Server {
res.setHeader('Access-Control-Allow-Origin', '*');
next();
})
.use(compression())
.use(express.urlencoded({ extended: true }))
.use(express.json());