node-syncify
Advanced tools
+1
-1
@@ -6,3 +6,3 @@ { | ||
| "name": "node-syncify", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Convert async methods in worker to sync", | ||
@@ -9,0 +9,0 @@ "main": "index.js", |
+1
-1
@@ -15,3 +15,3 @@ const { workerData, parentPort } = require('worker_threads'); | ||
| const { port, shared, args } = typedMessage; | ||
| const importPromise = import(workerPath); | ||
| const importPromise = import(require('url').pathToFileURL(workerPath)); | ||
@@ -18,0 +18,0 @@ try { |
15781
0.19%