node-apparatus
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -67,3 +67,3 @@ "use strict"; | ||
if (workerIdx === 0 && this.selfWorker !== undefined) { | ||
return this.selfWorker[methodName](...methodArguments); | ||
return await this.selfWorker[methodName](...methodArguments); | ||
} | ||
@@ -70,0 +70,0 @@ else { |
@@ -26,3 +26,3 @@ "use strict"; | ||
} | ||
receiveCommands(workMessage) { | ||
async receiveCommands(workMessage) { | ||
let methodInvocation; | ||
@@ -32,3 +32,3 @@ try { | ||
if (methodInvocation.methodName === i_proxy_method_js_1.DisposeMethodPayload.methodName) { | ||
this[Symbol.asyncDispose](); | ||
await this[Symbol.asyncDispose](); | ||
return; | ||
@@ -39,3 +39,3 @@ } | ||
} | ||
methodInvocation.returnValue = this[methodInvocation.methodName](...methodInvocation.methodArguments); | ||
methodInvocation.returnValue = await this[methodInvocation.methodName](...methodInvocation.methodArguments); | ||
this.messagePort.postMessage((0, i_proxy_method_js_1.serialize)(methodInvocation)); | ||
@@ -42,0 +42,0 @@ } |
{ | ||
"name": "node-apparatus", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "A mix of common components needed for awesome node experience", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
64471