Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bree

Package Overview
Dependencies
Maintainers
4
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 7.1.1 to 7.1.2

14

package.json
{
"name": "bree",
"description": "The best job scheduler for Node.js and JavaScript with cron, dates, ms, later, and human-friendly support. Works in Node v12.11.0+, uses worker threads to spawn sandboxed processes, and supports async/await, retries, throttling, concurrency, and cancelable promises (graceful shutdown). Simple, fast, and lightweight. Made for Forward Email and Lad.",
"version": "7.1.1",
"version": "7.1.2",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -31,3 +31,3 @@ "ava": {

"cron-validate": "^1.4.3",
"debug": "^4.3.2",
"debug": "^4.3.3",
"human-interval": "^2.0.1",

@@ -51,10 +51,10 @@ "is-string-and-not-blank": "^0.0.2",

"delay": "^5.0.0",
"dtslint": "^4.2.0",
"eslint": "^8.2.0",
"dtslint": "^4.2.1",
"eslint": "^8.5.0",
"eslint-config-xo-lass": "latest",
"eslint-plugin-compat": "^3.13.0",
"eslint-plugin-compat": "^4.0.0",
"eslint-plugin-node": "^11.1.0",
"events.once": "^2.0.2",
"fixpack": "latest",
"husky": "^7.0.0",
"husky": "^7.0.4",
"into-stream": "^7.0.0",

@@ -66,3 +66,3 @@ "lint-staged": "latest",

"unassertify": "^2.1.1",
"xo": "^0.46.4"
"xo": "^0.47.0"
},

@@ -69,0 +69,0 @@ "engines": {

@@ -116,2 +116,4 @@ <h1 align="center">

//
// NOTE: You can also pass `false` as `logger: false` to disable logging
//
logger: new Cabin(),

@@ -314,3 +316,3 @@

| ---------------------- | -------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `logger` | Object | `console` | This is the default logger. **We recommend using [Cabin][cabin]** instead of using `console` as your default logger. |
| `logger` | Object | `console` | This is the default logger. **We recommend using [Cabin][cabin]** instead of using `console` as your default logger. Set this value to `false` to disable logging entirely (uses noop function) |
| `root` | String | `path.resolve('jobs')` | Resolves a jobs folder relative to where the project is ran (the directory you call `node` in). Set this value to `false` to prevent requiring a root directory of jobs (e.g. if your jobs are not all in one directory). Set this to `path.join(__dirname, 'jobs')` to keep your jobs directory relative to the file where Bree is set up. |

@@ -317,0 +319,0 @@ | `timeout` | Number | `0` | Default timeout for jobs (e.g. a value of `0` means that jobs will start on boot by default unless a job has a property of `timeout` or `interval` defined. Set this to `false` if you do not wish for a default value to be set for jobs. **This value does not apply to jobs with a property of `date`.** |

@@ -128,2 +128,14 @@ const fs = require('fs');

// convert `false` logger option into noop
// <https://github.com/breejs/bree/issues/147>
if (this.config.logger === false)
this.config.logger = {
/* istanbul ignore next */
info() {},
/* istanbul ignore next */
warn() {},
/* istanbul ignore next */
error() {}
};
debug('config', this.config);

@@ -130,0 +142,0 @@

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