node-syncify
Advanced tools
+1
-1
@@ -6,3 +6,3 @@ { | ||
| "name": "node-syncify", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Convert async methods in worker to sync", | ||
@@ -9,0 +9,0 @@ "main": "index.js", |
+1
-1
@@ -8,3 +8,2 @@ const { workerData, parentPort } = require('worker_threads'); | ||
| const workerPath = /** @type {string} */ (workerData); | ||
| const importPromise = import(workerPath); | ||
@@ -17,2 +16,3 @@ parentPort.on('message', (message) => { | ||
| const { port, shared, args } = typedMessage; | ||
| const importPromise = import(workerPath); | ||
@@ -19,0 +19,0 @@ try { |
15751
0.03%