Fixed port and library

This commit is contained in:
eetnaviation
2024-04-04 18:14:16 +03:00
parent 7b81084e86
commit dea7c60600
2 changed files with 2 additions and 13 deletions

View File

@ -1,4 +1,4 @@
let serverPort = 4000;
let serverPort = 80;
const url = "http://transport.tallinn.ee/gps.txt";
const express = require('express');
@ -9,7 +9,7 @@ const server = http.createServer(app);
const { Server } = require("socket.io");
const io = new Server(server);
const axios = require('axios');
const fs = require('node:fs');
const fs = require('fs');
let cafTramTakArray = ["502", "520", "505", "518", "513", "507"];

11
package-lock.json generated
View File

@ -11,7 +11,6 @@
"dependencies": {
"axios": "^1.6.8",
"express": "^4.19.2",
"fs": "^0.0.1-security",
"socket.io": "^4.7.5"
}
},
@ -442,11 +441,6 @@
"node": ">= 0.6"
}
},
"node_modules/fs": {
"version": "0.0.1-security",
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
"integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
},
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
@ -1329,11 +1323,6 @@
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="
},
"fs": {
"version": "0.0.1-security",
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
"integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w=="
},
"function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",