diff --git a/lib/nodejs/lib/thrift/ws_connection.js b/lib/nodejs/lib/thrift/ws_connection.js index 878a5724ff3..534c0454531 100644 --- a/lib/nodejs/lib/thrift/ws_connection.js +++ b/lib/nodejs/lib/thrift/ws_connection.js @@ -220,7 +220,7 @@ WSConnection.prototype.open = function () { if (jsEnv.isBrowser) { this.socket = new WebSocket(this.uri()); } else { - this.socket = new WebSocket(this.uri(), "", this.wsOptions); + this.socket = new WebSocket(this.uri(), undefined, this.wsOptions); } this.socket.binaryType = "arraybuffer"; this.socket.onopen = this.__onOpen.bind(this); diff --git a/package-lock.json b/package-lock.json index e8ce4f15161..4689519d49f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "node-int64": "^0.4.0", "q": "^1.5.0", "uuid": "^14.0.0", - "ws": "^5.2.3" + "ws": "^8.21.0" }, "devDependencies": { "@eslint/js": "^9.18.0", @@ -746,11 +746,6 @@ "sprintf-js": "~1.0.2" } }, - "node_modules/async-limiter": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", - "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==" - }, "node_modules/balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -2307,7 +2302,7 @@ "version": "3.7.0", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-3.7.0.tgz", "integrity": "sha512-L/Eg02Epx6Si2NXmedx+Okg+4UHqmaf3TNcxd50SF9NQGcJaON3AtU++kax69XV7YWz4tUspqZSAsVofhFKG2w==", - "dev": true, + "devOptional": true, "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js", @@ -3055,7 +3050,7 @@ "version": "5.0.2", "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.2.tgz", "integrity": "sha512-SwV++i2gTD5qh2XqaPzBnNX88N6HdyhQrNNRykvcS0QKvItV9u3vPEJr+X5Hhfb1JC0r0e1alL0iB09rY8+nmw==", - "dev": true, + "devOptional": true, "hasInstallScript": true, "dependencies": { "node-gyp-build": "~3.7.0" @@ -3224,11 +3219,24 @@ } }, "node_modules/ws": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.4.tgz", - "integrity": "sha512-fFCejsuC8f9kOSu9FYaOw8CdO68O3h5v0lg4p74o8JqWpwTf9tniOD+nOB78aWoVSS6WptVUmDrp/KPsMVBWFQ==", - "dependencies": { - "async-limiter": "~1.0.0" + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, "node_modules/xmlcreate": { diff --git a/package.json b/package.json index febc130fe3f..39c76deaa74 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "node-int64": "^0.4.0", "q": "^1.5.0", "uuid": "^14.0.0", - "ws": "^5.2.3" + "ws": "^8.21.0" }, "devDependencies": { "@eslint/js": "^9.18.0",