@nimiq/rpc
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -406,2 +406,10 @@ 'use strict'; | ||
this._waitingRequests.add(obj.id, command); | ||
// Periodically check if recepient window is still open | ||
const checkIfServerWasClosed = () => { | ||
if (this._target.closed) { | ||
reject(new Error('window was closed')); | ||
} | ||
setTimeout(checkIfServerWasClosed, 500); | ||
}; | ||
setTimeout(checkIfServerWasClosed, 500); | ||
console.debug('RpcClient REQUEST', command, args); | ||
@@ -408,0 +416,0 @@ this._target.postMessage(obj, this._allowedOrigin); |
@@ -408,2 +408,10 @@ (function (global, factory) { | ||
this._waitingRequests.add(obj.id, command); | ||
// Periodically check if recepient window is still open | ||
const checkIfServerWasClosed = () => { | ||
if (this._target.closed) { | ||
reject(new Error('window was closed')); | ||
} | ||
setTimeout(checkIfServerWasClosed, 500); | ||
}; | ||
setTimeout(checkIfServerWasClosed, 500); | ||
console.debug('RpcClient REQUEST', command, args); | ||
@@ -410,0 +418,0 @@ this._target.postMessage(obj, this._allowedOrigin); |
{ | ||
"name": "@nimiq/rpc", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "RPC Client/Server", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
69416
1488
0