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

mocha

Package Overview
Dependencies
Maintainers
3
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha - npm Package Compare versions

Comparing version 11.0.0 to 11.0.1

13

lib/cli/lookup-files.js

@@ -90,6 +90,11 @@ 'use strict';

files.push(
...glob.sync(pattern, {
nodir: true,
windowsPathsNoEscape: true
})
...glob
.sync(pattern, {
nodir: true,
windowsPathsNoEscape: true
})
// glob@8 and earlier sorted results in en; glob@9 depends on OS sorting.
// This preserves the older glob behavior.
// https://github.com/mochajs/mocha/pull/5250/files#r1840469747
.sort((a, b) => a.localeCompare(b, 'en'))
);

@@ -96,0 +101,0 @@ if (!files.length) {

@@ -377,12 +377,12 @@ /**

* constructor(runner) {
* this.runner.linkPartialObjects(true)
* runner.linkPartialObjects(true)
* .on(EVENT_SUITE_BEGIN, suite => {
// this Suite may be the same object...
* })
* .on(EVENT_TEST_BEGIN, test => {
* // ...as the `test.parent` property
* });
* }
* }
*/
* // this Suite may be the same object...
* })
* .on(EVENT_TEST_BEGIN, test => {
* // ...as the `test.parent` property
* });
* }
* }
*/
linkPartialObjects(value) {

@@ -389,0 +389,0 @@ this._linkPartialObjects = Boolean(value);

@@ -1119,7 +1119,7 @@ 'use strict';

* // this reporter needs proper object references when run in parallel mode
* class MyReporter() {
* class MyReporter {
* constructor(runner) {
* this.runner.linkPartialObjects(true)
* runner.linkPartialObjects(true)
* .on(EVENT_SUITE_BEGIN, suite => {
// this Suite may be the same object...
* // this Suite may be the same object...
* })

@@ -1126,0 +1126,0 @@ * .on(EVENT_TEST_BEGIN, test => {

{
"name": "mocha",
"version": "11.0.0",
"version": "11.0.1",
"type": "commonjs",

@@ -104,3 +104,3 @@ "description": "simple, flexible, fun test framework",

"find-up": "^5.0.0",
"glob": "^8.1.0",
"glob": "^10.4.5",
"he": "^1.2.0",

@@ -107,0 +107,0 @@ "js-yaml": "^4.1.0",

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc