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.28 to 2.0.0

dist/bree.js

38

package.json
{
"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.28",
"description": "The best job scheduler for Node.js with support for cron, dates, ms, later, and human-friendly strings. Works in Node v10+ and browsers (thanks to bthreads polyfill), 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": "2.0.0",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -24,3 +24,5 @@ "ava": {

"dependencies": {
"@babel/runtime": "^7.11.2",
"boolean": "^3.0.1",
"bthreads": "^0.5.1",
"combine-errors": "^3.0.3",

@@ -36,2 +38,6 @@ "cron-validate": "^1.3.0",

"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.1",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@commitlint/cli": "latest",

@@ -41,2 +47,4 @@ "@commitlint/config-conventional": "latest",

"ava": "latest",
"babelify": "^10.0.0",
"browserify": "^16.5.2",
"codecov": "latest",

@@ -47,2 +55,4 @@ "cross-env": "latest",

"eslint-config-xo-lass": "latest",
"eslint-plugin-compat": "^3.8.0",
"eslint-plugin-node": "^11.1.0",
"fixpack": "latest",

@@ -55,9 +65,11 @@ "husky": "latest",

"remark-preset-github": "latest",
"tinyify": "^3.0.0",
"xo": "^0.33.0"
},
"engines": {
"node": ">= 12.11.0"
"node": ">= 10"
},
"files": [
"index.js"
"lib",
"dist"
],

@@ -71,2 +83,3 @@ "homepage": "https://github.com/breejs/bree",

},
"jsdelivr": "dist/bree.min.js",
"keywords": [

@@ -156,3 +169,3 @@ "agenda",

"license": "MIT",
"main": "index.js",
"main": "lib/index.js",
"publishConfig": {

@@ -166,10 +179,21 @@ "access": "public"

"scripts": {
"ava": "cross-env NODE_ENV=test ava",
"browserify": "browserify src/index.js -o dist/bree.js -s Bree -g [ babelify --configFile ./.dist.babelrc ]",
"build": "npm run build:clean && npm run build:lib && npm run build:dist",
"build:clean": "rimraf lib dist",
"build:dist": "npm run browserify && npm run minify",
"build:lib": "babel --config-file ./.lib.babelrc src --out-dir lib",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "yarn run lint:js && yarn run lint:md",
"lint": "yarn run lint:js && yarn run lint:md && yarn run lint:lib && yarn run lint:dist",
"lint:dist": "eslint --no-inline-config -c .dist.eslintrc dist",
"lint:js": "xo",
"lint:lib": "eslint -c .lib.eslintrc lib",
"lint:md": "remark . -qfo",
"pretest": "yarn run lint",
"minify": "cross-env NODE_ENV=production browserify src/index.js -o dist/bree.min.js -s Bree -g [ babelify --configFile ./.dist.babelrc ] -p tinyify",
"nyc": "cross-env NODE_ENV=test nyc ava",
"pretest": "yarn run build && yarn run lint",
"test": "cross-env NODE_ENV=test ava",
"test-coverage": "cross-env NODE_ENV=test nyc yarn run test"
},
"unpkg": "dist/bree.min.js",
"xo": {

@@ -176,0 +200,0 @@ "prettier": true,

2

README.md

@@ -19,3 +19,3 @@ <h1 align="center">

<div align="center">
Uses <a href="https://nodejs.org/api/worker_threads.html">workers</a> to spawn sandboxed processes, and supports <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function">async/await</a>, <a href="https://github.com/sindresorhus/p-retry">retries</a>, <a href="https://github.com/sindresorhus/p-throttle">throttling</a>, <a href="#concurrency">concurrency</a>, and <a href="#cancellation-retries-stalled-jobs-and-graceful-reloading">cancelable jobs with graceful shutdown</a>. Simple, fast, and the most lightweight tool for the job. Made for <a href="https://forwardemail.net">Forward Email</a> and <a href="https://lad.js.org">Lad</a>.
Works in Node v10+ and browsers (thanks to <a href="https://github.com/chjj/bthreads">bthreads</a> polyfill), uses <a href="https://nodejs.org/api/worker_threads.html">workers</a> to spawn sandboxed processes, and supports <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function">async/await</a>, <a href="https://github.com/sindresorhus/p-retry">retries</a>, <a href="https://github.com/sindresorhus/p-throttle">throttling</a>, <a href="#concurrency">concurrency</a>, and <a href="#cancellation-retries-stalled-jobs-and-graceful-reloading">cancelable jobs with graceful shutdown</a>. Simple, fast, and the most lightweight tool for the job. Made for <a href="https://forwardemail.net">Forward Email</a> and <a href="https://lad.js.org">Lad</a>.
</div>

@@ -22,0 +22,0 @@ <hr />

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