Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix(deps): update dependency is-path-inside to v4 (#5748)

renovate[bot]5b27e3acc227
diff --git a/lib/cli/watch-run.cjs b/lib/cli/watch-run.cjs
index f688556f..3d5af674 100644
--- a/lib/cli/watch-run.cjs
+++ b/lib/cli/watch-run.cjs
@@ -4,7 +4,7 @@ const debug = require("debug")("mocha:cli:watch");
const path = require("node:path");
const chokidar = require("chokidar");
const glob = require("glob");
-const isPathInside = require("is-path-inside");
+const { default: isPathInside } = require("is-path-inside");
const { minimatch } = require("minimatch");
const Context = require("../context.js").Context;
const collectFiles = require("./collect-files.cjs");
diff --git a/package-lock.json b/package-lock.json
index e441c737..3478cd9e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,7 +15,7 @@
"diff": "^9.0.0",
"find-up": "^8.0.0",
"glob": "^13.0.0",
- "is-path-inside": "^3.0.3",
+ "is-path-inside": "^4.0.0",
"is-unicode-supported": "^0.1.0",
"js-yaml": "^5.0.0",
"minimatch": "^10.2.2",
@@ -5071,12 +5071,15 @@
"dev": true
},
"node_modules/is-path-inside": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
- "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-4.0.0.tgz",
+ "integrity": "sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==",
"license": "MIT",
"engines": {
- "node": ">=8"
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/is-plain-obj": {
diff --git a/package.json b/package.json
index e193b59f..6efa869f 100644
--- a/package.json
+++ b/package.json
@@ -94,7 +94,7 @@
"diff": "^9.0.0",
"find-up": "^8.0.0",
"glob": "^13.0.0",
- "is-path-inside": "^3.0.3",
+ "is-path-inside": "^4.0.0",
"is-unicode-supported": "^0.1.0",
"js-yaml": "^5.0.0",
"minimatch": "^10.2.2",