rpc-websockets
Advanced tools
Comparing version 7.4.1 to 7.4.2
@@ -234,4 +234,4 @@ /** | ||
this.socket.addEventListener("close", ({ code, reason }) => { | ||
if (this.ready) | ||
this.emit("close", code, reason); | ||
if (this.ready) // Delay close event until internal state is updated | ||
setTimeout(() => this.emit("close", code, reason), 0); | ||
this.ready = false; | ||
@@ -238,0 +238,0 @@ this.socket = undefined; |
@@ -442,3 +442,6 @@ /** | ||
reason = _ref3.reason; | ||
if (_this4.ready) _this4.emit("close", code, reason); | ||
if (_this4.ready) // Delay close event until internal state is updated | ||
setTimeout(function () { | ||
return _this4.emit("close", code, reason); | ||
}, 0); | ||
_this4.ready = false; | ||
@@ -445,0 +448,0 @@ _this4.socket = undefined; |
{ | ||
"name": "rpc-websockets", | ||
"version": "7.4.1", | ||
"version": "7.4.2", | ||
"description": "JSON-RPC 2.0 implementation over WebSockets for Node.js", | ||
@@ -21,3 +21,3 @@ "main": "./dist/index.js", | ||
"circular-json": "^0.5.9", | ||
"eventemitter3": "^4.0.6", | ||
"eventemitter3": "^4.0.7", | ||
"uuid": "^8.3.0", | ||
@@ -31,11 +31,11 @@ "ws": "^7.3.1" | ||
"devDependencies": { | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.11.4", | ||
"@babel/plugin-transform-runtime": "^7.11.0", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/cli": "^7.11.6", | ||
"@babel/core": "^7.11.6", | ||
"@babel/plugin-transform-runtime": "^7.11.5", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@types/uuid": "^8.3.0", | ||
"@types/ws": "^7.2.6", | ||
"@typescript-eslint/eslint-plugin": "^3.10.1", | ||
"@typescript-eslint/parser": "^3.10.1", | ||
"@typescript-eslint/eslint-plugin": "^4.0.1", | ||
"@typescript-eslint/parser": "^4.0.1", | ||
"babel-eslint": "^10.1.0", | ||
@@ -45,5 +45,5 @@ "browserify": "^16.5.2", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.7.0", | ||
"eslint": "^7.8.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^8.1.2", | ||
"mocha": "^8.1.3", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
@@ -50,0 +50,0 @@ "typescript": "^4.0.2" |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5432809
6839
Updatedeventemitter3@^4.0.7