Socket
Socket
Sign inDemoInstall

bree

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bree - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

25

index.js

@@ -232,3 +232,3 @@ const { Worker } = require('worker_threads');

typeof job.cron !== 'undefined'
)
) {
errors.push(

@@ -239,2 +239,3 @@ new Error(

);
}

@@ -311,9 +312,10 @@ // don't allow users to mix timeout AND date

// delete this.config.jobs[i].cron;
} else {
errors.push(
new Error(
`${prefix} had an invalid cron schedule (see <https://crontab.guru> if you need help)`
)
);
}
} // else {
// errors.push(
// new Error(
// `${prefix} had an invalid cron schedule (see <https://crontab.guru> if you need help)`
// )
// );
// }
// above code will never be called
} else {

@@ -336,3 +338,5 @@ for (const message of result.getError()) {

errors.push(
`${prefix} had an invalid closeWorkerAfterMs value of ${job.closeWorkerAfterMs} (it must be a finite number > 0`
new Error(
`${prefix} had an invalid closeWorkersAfterMs value of ${job.closeWorkersAfterMs} (it must be a finite number > 0)`
)
);

@@ -494,2 +498,5 @@

});
// NOTE: you cannot catch messageerror since it is a Node internal
// (if anyone has any idea how to catch this in tests let us know)
/* istanbul ignore next */
this.workers[name].on('messageerror', (err) => {

@@ -496,0 +503,0 @@ this.config.logger.error(

{
"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.11",
"version": "1.1.12",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -10,3 +10,4 @@ "ava": {

"test/**/*.js",
"!test/jobs"
"!test/jobs",
"!test/noIndexJobs"
],

@@ -35,5 +36,7 @@ "verbose": true

"@commitlint/config-conventional": "latest",
"@sinonjs/fake-timers": "^6.0.1",
"ava": "latest",
"codecov": "latest",
"cross-env": "latest",
"delay": "^4.3.0",
"eslint": "^7.4.0",

@@ -43,2 +46,3 @@ "eslint-config-xo-lass": "latest",

"husky": "latest",
"into-stream": "^5.1.1",
"lint-staged": "latest",

@@ -45,0 +49,0 @@ "nyc": "latest",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc