Comparing version 1.1.28 to 2.0.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.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, |
@@ -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 /> |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1182691
6
22791
11
26
1
17
17
+ Added@babel/runtime@^7.11.2
+ Addedbthreads@^0.5.1
+ Addedbthreads@0.5.1(transitive)
+ Addedbufio@1.0.7(transitive)