@lage-run/worker-threads-pool
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,6 +5,66 @@ { | ||
{ | ||
"date": "Sun, 04 Sep 2022 23:00:04 GMT", | ||
"date": "Sat, 17 Sep 2022 20:20:38 GMT", | ||
"tag": "@lage-run/worker-threads-pool_v0.1.2", | ||
"version": "0.1.2", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "ken@gizzar.com", | ||
"package": "@lage-run/worker-threads-pool", | ||
"commit": "425dc73ad81ce184a80ec2efcc10aecb0c569b40", | ||
"comment": "Get rid of unneeded hack around stream pipe" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 16 Sep 2022 20:06:10 GMT", | ||
"tag": "@lage-run/worker-threads-pool_v0.1.1", | ||
"version": "0.1.1", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "email not defined", | ||
"package": "@lage-run/worker-threads-pool", | ||
"commit": "4cc6afee8a8b0eeabd5e36f764615860baca6de4", | ||
"comment": "Update devDependency @types/node to v14.18.29" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 16 Sep 2022 03:59:54 GMT", | ||
"tag": "@lage-run/worker-threads-pool_v0.1.1", | ||
"version": "0.1.1", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "renovate@whitesourcesoftware.com", | ||
"package": "@lage-run/worker-threads-pool", | ||
"commit": "feb30c988cd07f121e217f9825758af844b18b77", | ||
"comment": "Update jest monorepo to v29" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 16 Sep 2022 01:59:38 GMT", | ||
"tag": "@lage-run/worker-threads-pool_v0.1.1", | ||
"version": "0.1.1", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"author": "email not defined", | ||
"package": "@lage-run/worker-threads-pool", | ||
"commit": "7bb3cfa39ca17144915a94233b46ba67e284788f", | ||
"comment": "Pin devDependencies" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Sun, 04 Sep 2022 23:00:20 GMT", | ||
"tag": "@lage-run/worker-threads-pool_v0.1.1", | ||
"version": "0.1.1", | ||
"comments": { | ||
"patch": [ | ||
@@ -11,0 +71,0 @@ { |
# Change Log - @lage-run/worker-threads-pool | ||
This log was last generated on Sun, 04 Sep 2022 23:00:04 GMT and should not be manually modified. | ||
This log was last generated on Sat, 17 Sep 2022 20:20:38 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.1.2 | ||
Sat, 17 Sep 2022 20:20:38 GMT | ||
### Patches | ||
- Get rid of unneeded hack around stream pipe (ken@gizzar.com) | ||
## 0.1.1 | ||
Sun, 04 Sep 2022 23:00:04 GMT | ||
Sun, 04 Sep 2022 23:00:20 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
@@ -7,13 +7,8 @@ "use strict"; | ||
node_worker_threads_1.parentPort === null || node_worker_threads_1.parentPort === void 0 ? void 0 : node_worker_threads_1.parentPort.on("message", async (task) => { | ||
// setTimeout are used below to allow streams to be read by the Logger's stream() API before the "success" or "error" results are posted | ||
try { | ||
const results = await fn(task); | ||
setTimeout(() => { | ||
node_worker_threads_1.parentPort === null || node_worker_threads_1.parentPort === void 0 ? void 0 : node_worker_threads_1.parentPort.postMessage({ err: undefined, results }); | ||
}, 0); | ||
node_worker_threads_1.parentPort === null || node_worker_threads_1.parentPort === void 0 ? void 0 : node_worker_threads_1.parentPort.postMessage({ err: undefined, results }); | ||
} | ||
catch (err) { | ||
setTimeout(() => { | ||
node_worker_threads_1.parentPort === null || node_worker_threads_1.parentPort === void 0 ? void 0 : node_worker_threads_1.parentPort.postMessage({ err, results: undefined }); | ||
}, 0); | ||
node_worker_threads_1.parentPort === null || node_worker_threads_1.parentPort === void 0 ? void 0 : node_worker_threads_1.parentPort.postMessage({ err, results: undefined }); | ||
} | ||
@@ -20,0 +15,0 @@ }); |
{ | ||
"name": "@lage-run/worker-threads-pool", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A worker_threads pool implementation based on the official Node.js async_hooks documentation", | ||
@@ -18,4 +18,4 @@ "repository": { | ||
"devDependencies": { | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "14.18.26", | ||
"@types/jest": "29.0.3", | ||
"@types/node": "14.18.29", | ||
"monorepo-scripts": "*" | ||
@@ -22,0 +22,0 @@ }, |
{ | ||
"ts-node": { | ||
"transpileOnly": true | ||
}, | ||
"compilerOptions": { | ||
@@ -6,0 +3,0 @@ "target": "ES2017", |
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
15852
275