Socket
Socket
Sign inDemoInstall

mocha

Package Overview
Dependencies
77
Maintainers
3
Versions
192
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.1.4 to 9.2.0

18

lib/nodejs/buffered-worker-pool.js

@@ -78,3 +78,19 @@ /**

this.options = {...WORKER_POOL_DEFAULT_OPTS, opts, maxWorkers};
let counter = 0;
const onCreateWorker = ({forkOpts}) => {
return {
forkOpts: {
...forkOpts,
// adds an incremental id to all workers, which can be useful to allocate resources for each process
env: {...process.env, MOCHA_WORKER_ID: counter++}
}
};
};
this.options = {
...WORKER_POOL_DEFAULT_OPTS,
...opts,
maxWorkers,
onCreateWorker
};
this._pool = workerpool.pool(WORKER_PATH, this.options);

@@ -81,0 +97,0 @@ }

55

package.json
{
"name": "mocha",
"version": "9.1.4",
"version": "9.2.0",
"description": "simple, flexible, fun test framework",

@@ -58,8 +58,8 @@ "keywords": [

"browser-stdout": "1.3.1",
"chokidar": "3.5.2",
"debug": "4.3.2",
"chokidar": "3.5.3",
"debug": "4.3.3",
"diff": "5.0.0",
"escape-string-regexp": "4.0.0",
"find-up": "5.0.0",
"glob": "7.1.7",
"glob": "7.2.0",
"growl": "1.10.5",

@@ -71,3 +71,3 @@ "he": "1.2.0",

"ms": "2.1.3",
"nanoid": "3.1.25",
"nanoid": "3.2.0",
"serialize-javascript": "6.0.0",

@@ -77,3 +77,3 @@ "strip-json-comments": "3.1.1",

"which": "2.0.2",
"workerpool": "6.1.5",
"workerpool": "6.2.0",
"yargs": "16.2.0",

@@ -86,4 +86,4 @@ "yargs-parser": "20.2.4",

"@11ty/eleventy-plugin-inclusive-language": "^1.0.3",
"@babel/eslint-parser": "^7.15.4",
"@babel/preset-env": "^7.14.8",
"@babel/eslint-parser": "^7.16.5",
"@babel/preset-env": "^7.16.11",
"@mocha/docdash": "^4.0.0",

@@ -95,9 +95,9 @@ "@rollup/plugin-babel": "^5.1.0",

"@rollup/plugin-node-resolve": "^8.4.0",
"assetgraph-builder": "^8.2.0",
"assetgraph-builder": "^9.0.0",
"autoprefixer": "^9.8.6",
"canvas": "^2.8.0",
"chai": "^4.2.0",
"canvas": "^2.9.0",
"chai": "^4.3.4",
"coffee-script": "^1.12.7",
"configstore": "^5.0.1",
"core-js": "^3.16.3",
"core-js": "^3.20.3",
"coveralls": "^3.1.1",

@@ -114,8 +114,8 @@ "cross-env": "^7.0.2",

"fail-on-errors-webpack-plugin": "^3.0.0",
"fs-extra": "^9.0.1",
"fs-extra": "^10.0.0",
"husky": "^4.2.5",
"hyperlink": "^4.7.0",
"hyperlink": "^5.0.4",
"jsdoc": "^3.6.7",
"jsdoc-ts-utils": "^2.0.1",
"karma": "^6.3.4",
"karma": "^6.3.11",
"karma-chrome-launcher": "^3.1.0",

@@ -127,9 +127,9 @@ "karma-mocha": "^2.0.1",

"lint-staged": "^10.2.11",
"markdown-it": "^11.0.0",
"markdown-it-anchor": "^5.3.0",
"markdown-it-attrs": "^3.0.3",
"markdown-it-emoji": "^1.4.0",
"markdown-it-prism": "^2.1.1",
"markdown-it": "^12.3.2",
"markdown-it-anchor": "^8.4.1",
"markdown-it-attrs": "^4.1.3",
"markdown-it-emoji": "^2.0.0",
"markdown-it-prism": "^2.2.2",
"markdown-toc": "^1.2.0",
"markdownlint-cli": "^0.23.2",
"markdownlint-cli": "^0.30.0",
"needle": "^2.5.0",

@@ -141,12 +141,12 @@ "nps": "^5.10.0",

"regenerator-runtime": "0.13.7",
"remark": "^14.0.1",
"remark-github": "^11.1.1",
"remark-inline-links": "^6.0.0",
"remark": "^14.0.2",
"remark-github": "^11.2.2",
"remark-inline-links": "^6.0.1",
"requirejs": "^2.3.6",
"rewiremock": "^3.14.3",
"rimraf": "^3.0.2",
"rollup": "^2.23.1",
"rollup": "^2.66.0",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-visualizer": "^4.1.0",
"rollup-plugin-visualizer": "^5.5.4",
"sinon": "^9.0.3",

@@ -156,3 +156,2 @@ "strip-ansi": "^6.0.0",

"through2": "^4.0.2",
"to-vfile": "^6.1.0",
"touch": "^3.1.0",

@@ -168,3 +167,3 @@ "unexpected": "^11.14.0",

"watchify": "^4.0.0",
"webpack": "^5.59.1",
"webpack": "^5.67.0",
"webpack-cli": "^4.9.1"

@@ -171,0 +170,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc