diff --git a/lib/cli/watch-run.cjs b/lib/cli/watch-run.cjs index f688556f25..3d5af674ab 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 9655999db2..831fa76ecd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "diff": "^9.0.0", "find-up": "^5.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", @@ -4986,12 +4986,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 0014e9f816..44f0bd08d9 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "diff": "^9.0.0", "find-up": "^5.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",