update deps
This commit is contained in:
parent
a88d88c6f2
commit
5f6462cc32
2
dist/src/index.js
vendored
2
dist/src/index.js
vendored
@ -46,7 +46,7 @@ function PeerServer(options = {}, callback) {
|
||||
}
|
||||
const peerjs = ExpressPeerServer(server, newOptions);
|
||||
app.use(peerjs);
|
||||
server.listen(port, () => { var _a; return (_a = callback) === null || _a === void 0 ? void 0 : _a(server); });
|
||||
server.listen(port, () => callback === null || callback === void 0 ? void 0 : callback(server));
|
||||
return peerjs;
|
||||
}
|
||||
exports.PeerServer = PeerServer;
|
||||
|
@ -26,7 +26,7 @@ class CheckBrokenConnections {
|
||||
}
|
||||
}
|
||||
checkConnections() {
|
||||
var _a, _b, _c;
|
||||
var _a, _b;
|
||||
const clientsIds = this.realm.getClientsIds();
|
||||
const now = new Date().getTime();
|
||||
const { alive_timeout: aliveTimeout } = this.config;
|
||||
@ -42,7 +42,7 @@ class CheckBrokenConnections {
|
||||
this.realm.clearMessageQueue(clientId);
|
||||
this.realm.removeClientById(clientId);
|
||||
client.setSocket(null);
|
||||
(_c = (_b = this).onClose) === null || _c === void 0 ? void 0 : _c.call(_b, client);
|
||||
(_b = this.onClose) === null || _b === void 0 ? void 0 : _b.call(this, client);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
821
package-lock.json
generated
821
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
46
package.json
46
package.json
@ -32,33 +32,33 @@
|
||||
"branch": "master"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/cors": "2.8.6",
|
||||
"@types/express": "4.17.1",
|
||||
"@types/ws": "6.0.4",
|
||||
"body-parser": "1.19.0",
|
||||
"cors": "2.8.4",
|
||||
"express": "4.17.1",
|
||||
"optimist": "0.6.1",
|
||||
"uuid": "3.3.3",
|
||||
"ws": "7.1.2"
|
||||
"@types/cors": "^2.8.6",
|
||||
"@types/express": "^4.17.3",
|
||||
"@types/ws": "^7.2.3",
|
||||
"body-parser": "^1.19.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^4.17.1",
|
||||
"optimist": "^0.6.1",
|
||||
"uuid": "^3.4.0",
|
||||
"ws": "^7.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.1.7",
|
||||
"@types/mocha": "^5.2.7",
|
||||
"@types/node": "^10.14.16",
|
||||
"@types/uuid": "3.4.6",
|
||||
"@typescript-eslint/eslint-plugin": "^2.11.0",
|
||||
"@typescript-eslint/parser": "^2.11.0",
|
||||
"@types/chai": "^4.2.11",
|
||||
"@types/mocha": "^7.0.2",
|
||||
"@types/node": "^10.17.17",
|
||||
"@types/uuid": "^3.4.8",
|
||||
"@typescript-eslint/eslint-plugin": "^2.24.0",
|
||||
"@typescript-eslint/parser": "^2.24.0",
|
||||
"chai": "^4.2.0",
|
||||
"eslint": "^6.7.2",
|
||||
"mocha": "^6.2.2",
|
||||
"eslint": "^6.8.0",
|
||||
"mocha": "^7.1.1",
|
||||
"mock-socket": "8.0.5",
|
||||
"nodemon": "1.19.1",
|
||||
"npm-run-all": "4.1.5",
|
||||
"rimraf": "3.0.0",
|
||||
"sinon": "7.5.0",
|
||||
"ts-node": "8.5.4",
|
||||
"typescript": "3.7.3"
|
||||
"nodemon": "^1.19.4",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rimraf": "^3.0.2",
|
||||
"sinon": "^7.5.0",
|
||||
"ts-node": "^8.7.0",
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
|
Loading…
x
Reference in New Issue
Block a user