@relaycorp/ws-mock
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -16,2 +16,4 @@ "use strict"; | ||
this._wasRun = true; | ||
// Allow enough time for the client to process any event emitted by the action | ||
await waitForSetImmediate(); | ||
} | ||
@@ -66,2 +68,5 @@ } | ||
exports.ReceiveMessageAction = ReceiveMessageAction; | ||
function waitForSetImmediate() { | ||
return new Promise((resolve) => setImmediate(resolve)); | ||
} | ||
//# sourceMappingURL=MockServerAction.js.map |
@@ -13,2 +13,4 @@ // tslint:disable:max-classes-per-file | ||
this._wasRun = true; | ||
// Allow enough time for the client to process any event emitted by the action | ||
await waitForSetImmediate(); | ||
} | ||
@@ -58,2 +60,5 @@ } | ||
} | ||
function waitForSetImmediate() { | ||
return new Promise((resolve) => setImmediate(resolve)); | ||
} | ||
//# sourceMappingURL=MockServerAction.js.map |
{ | ||
"name": "@relaycorp/ws-mock", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "email": "no-reply@relaycorp.tech", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
46657
734