mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 06:26:00 +00:00
removed unused packages
This commit is contained in:
@@ -35,7 +35,6 @@
|
||||
"express": "^4.17.1",
|
||||
"express-basic-auth": "^1.2.0",
|
||||
"express-fileupload": "^1.2.0",
|
||||
"express-sse": "^0.5.3",
|
||||
"fs-extra": "^9.1.0",
|
||||
"fs-reverse": "^0.0.3",
|
||||
"get-port": "^5.1.1",
|
||||
@@ -50,7 +49,6 @@
|
||||
"node-ssh-forward": "^0.7.2",
|
||||
"portfinder": "^1.0.28",
|
||||
"simple-encryptor": "^4.0.0",
|
||||
"socket.io": "^2.3.0",
|
||||
"tar": "^6.0.5",
|
||||
"uuid": "^3.4.0"
|
||||
},
|
||||
|
||||
@@ -4,7 +4,6 @@ const bodyParser = require('body-parser');
|
||||
const fileUpload = require('express-fileupload');
|
||||
const http = require('http');
|
||||
const cors = require('cors');
|
||||
// const io = require('socket.io');
|
||||
const fs = require('fs');
|
||||
const getPort = require('get-port');
|
||||
const childProcessChecker = require('./utility/childProcessChecker');
|
||||
@@ -44,11 +43,6 @@ function start() {
|
||||
|
||||
const server = http.createServer(app);
|
||||
|
||||
// const sse = new SSE();
|
||||
// app.get('/stream', sse.init);
|
||||
// socket.set(sse);
|
||||
// socket.set(io(server));
|
||||
|
||||
if (process.env.LOGIN && process.env.PASSWORD) {
|
||||
app.use(
|
||||
basicAuth({
|
||||
@@ -97,16 +91,6 @@ function start() {
|
||||
// Tell the client to retry every 10 seconds if connectivity is lost
|
||||
res.write('retry: 10000\n\n');
|
||||
socket.set(res);
|
||||
|
||||
// let count = 0;
|
||||
|
||||
// while (true) {
|
||||
// await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
|
||||
// console.log("Emit", ++count);
|
||||
// // Emit an SSE that contains the current 'count' as a string
|
||||
// res.write(`event: ping\ndata: ${JSON.stringify({ count })}\n\n`);
|
||||
// }
|
||||
});
|
||||
|
||||
app.use(bodyParser.json({ limit: '50mb' }));
|
||||
|
||||
Reference in New Issue
Block a user