Skip to content

Commit c3b71ba

Browse files
snyk-botmtrezza
andauthored
[Snyk] Upgrade ws from 7.4.6 to 7.5.3 (#7457)
* fix: upgrade ws from 7.4.6 to 7.5.0 Snyk has created this PR to upgrade ws from 7.4.6 to 7.5.0. See this package in npm: https://www.npmjs.com/package/ws See this project in Snyk: https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr * changed logging for circular obj * upgraded to ws 7.5.3 Co-authored-by: Manuel Trezza <[email protected]>
1 parent 39f7c83 commit c3b71ba

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Diff for: package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"uuid": "8.3.2",
5959
"winston": "3.3.3",
6060
"winston-daily-rotate-file": "4.5.5",
61-
"ws": "7.4.6"
61+
"ws": "7.5.3"
6262
},
6363
"devDependencies": {
6464
"@actions/core": "1.2.6",

Diff for: src/LiveQuery/ParseWebSocketServer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { loadAdapter } from '../Adapters/AdapterLoader';
22
import { WSAdapter } from '../Adapters/WebSocketServer/WSAdapter';
33
import logger from '../logger';
44
import events from 'events';
5+
import { inspect } from 'util';
56

67
export class ParseWebSocketServer {
78
server: Object;
@@ -15,7 +16,7 @@ export class ParseWebSocketServer {
1516
wss.onConnection = ws => {
1617
ws.on('error', error => {
1718
logger.error(error.message);
18-
logger.error(JSON.stringify(ws));
19+
logger.error(inspect(ws, false));
1920
});
2021
onConnect(new ParseWebSocket(ws));
2122
// Send ping to client periodically

0 commit comments

Comments
 (0)