rpc-websockets
Advanced tools
Comparing version 7.4.15 to 7.4.16
@@ -89,3 +89,3 @@ /** | ||
this.queue[rpc_id].timeout = setTimeout(() => { | ||
this.queue[rpc_id] = null; | ||
delete this.queue[rpc_id]; | ||
reject(new Error("reply timeout")); | ||
@@ -239,3 +239,3 @@ }, timeout); | ||
this.queue[message.id].promise[0](message.result); | ||
this.queue[message.id] = null; | ||
delete this.queue[message.id]; | ||
}); | ||
@@ -242,0 +242,0 @@ this.socket.addEventListener("error", (error) => this.emit("error", error)); |
@@ -171,3 +171,3 @@ /** | ||
_this2.queue[rpc_id].timeout = setTimeout(function () { | ||
_this2.queue[rpc_id] = null; | ||
delete _this2.queue[rpc_id]; | ||
reject(new Error("reply timeout")); | ||
@@ -458,3 +458,3 @@ }, timeout); | ||
if (message.error) _this4.queue[message.id].promise[1](message.error);else _this4.queue[message.id].promise[0](message.result); | ||
_this4.queue[message.id] = null; | ||
delete _this4.queue[message.id]; | ||
}); | ||
@@ -461,0 +461,0 @@ this.socket.addEventListener("error", function (error) { |
{ | ||
"name": "rpc-websockets", | ||
"version": "7.4.15", | ||
"version": "7.4.16", | ||
"description": "JSON-RPC 2.0 implementation over WebSockets for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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