Comparing version 1.1.8 to 1.1.9
10
index.js
@@ -66,3 +66,3 @@ const { Worker } = require('worker_threads'); | ||
this.closeWorkersAfterMs = {}; | ||
this.closeWorkerAfterMs = {}; | ||
this.workers = {}; | ||
@@ -334,3 +334,3 @@ this.timeouts = {}; | ||
errors.push( | ||
`${prefix} had an invalid closeWorkersAfterMs value of ${job.closeWorkersAfterMs} (it must be a finite number > 0` | ||
`${prefix} had an invalid closeWorkerAfterMs value of ${job.closeWorkerAfterMs} (it must be a finite number > 0` | ||
); | ||
@@ -649,5 +649,5 @@ | ||
if (this.closeWorkersAfterMs[name]) { | ||
clearTimeout(this.closeWorkersAfterMs[name]); | ||
delete this.closeWorkersAfterMs[name]; | ||
if (this.closeWorkerAfterMs[name]) { | ||
clearTimeout(this.closeWorkerAfterMs[name]); | ||
delete this.closeWorkerAfterMs[name]; | ||
} | ||
@@ -654,0 +654,0 @@ |
{ | ||
"name": "bree", | ||
"description": "The best job scheduler for Node.js with support for cron, dates, ms, later, and human-friendly strings. Uses workers to spawn sandboxed processes, and supports async/await, retries, throttling, concurrency, and cancelable promises (graceful shutdown). Simple, fast, and the most lightweight tool for the job. Made for Forward Email and Lad.", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "ava": { |
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
60476