Revert "Lock NPM versions."

This reverts commit b544af14e4.
This commit is contained in:
wiz
2020-10-26 20:56:55 +09:00
parent a3457a723a
commit 66ff3e09f4
5 changed files with 566 additions and 15935 deletions

1459
backend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -25,19 +25,21 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"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"
"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"
},
"devDependencies": {
"@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"
"@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"
}
}

View File

@@ -1,5 +1,6 @@
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';
@@ -65,6 +66,7 @@ class Server {
res.setHeader('Access-Control-Allow-Origin', '*');
next();
})
.use(compression())
.use(express.urlencoded({ extended: true }))
.use(express.json());