apache-js-workers
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -55,2 +55,5 @@ "use strict"; | ||
return __generator(this, function (_a) { | ||
if (message instanceof Error) { | ||
message = message.stack; | ||
} | ||
worker_threads_1.parentPort.postMessage({ | ||
@@ -57,0 +60,0 @@ type: 'log', |
@@ -60,2 +60,6 @@ import { workerData, parentPort } from 'worker_threads' | ||
export const log = async (level: 'i' | 'w' | 'e', message: string | Error) => { | ||
if (message instanceof Error) { | ||
message = message.stack | ||
} | ||
parentPort.postMessage({ | ||
@@ -62,0 +66,0 @@ type: 'log', |
{ | ||
"name": "apache-js-workers", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "", | ||
@@ -16,2 +16,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
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
5008
134