Bump minimatch from 9.0.3 to 10.0.1 (#805)

* Bump minimatch from 9.0.3 to 10.0.1

Bumps [minimatch](https://github.com/isaacs/minimatch) from 9.0.3 to 10.0.1.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v9.0.3...v10.0.1)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* check failues fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
This commit is contained in:
dependabot[bot]
2024-12-12 21:22:05 -06:00
committed by GitHub
parent 857d8ca96a
commit 98d12e7f87
4 changed files with 55 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
--- ---
name: minimatch name: minimatch
version: 9.0.3 version: 10.0.1
type: npm type: npm
summary: a glob matcher in javascript summary: a glob matcher in javascript
homepage: homepage:

51
dist/index.js vendored
View File

@@ -564,7 +564,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.checkIfAllGlobsMatchAllFiles = exports.checkIfAnyGlobMatchesAllFiles = exports.checkIfAllGlobsMatchAnyFile = exports.checkIfAnyGlobMatchesAnyFile = exports.checkAllChangedFiles = exports.checkAnyChangedFiles = exports.toChangedFilesMatchConfig = exports.getChangedFiles = void 0; exports.checkIfAllGlobsMatchAllFiles = exports.checkIfAnyGlobMatchesAllFiles = exports.checkIfAllGlobsMatchAnyFile = exports.checkIfAnyGlobMatchesAnyFile = exports.checkAllChangedFiles = exports.checkAnyChangedFiles = exports.toChangedFilesMatchConfig = exports.getChangedFiles = void 0;
const core = __importStar(__nccwpck_require__(2186)); const core = __importStar(__nccwpck_require__(2186));
const github = __importStar(__nccwpck_require__(5438)); const github = __importStar(__nccwpck_require__(5438));
const minimatch_1 = __nccwpck_require__(1953); const minimatch_1 = __nccwpck_require__(4501);
const utils_1 = __nccwpck_require__(918); const utils_1 = __nccwpck_require__(918);
const ALLOWED_FILES_CONFIG_KEYS = [ const ALLOWED_FILES_CONFIG_KEYS = [
'any-glob-to-any-file', 'any-glob-to-any-file',
@@ -39810,7 +39810,7 @@ module.exports = require("zlib");
/***/ }), /***/ }),
/***/ 903: /***/ 4149:
/***/ ((__unused_webpack_module, exports) => { /***/ ((__unused_webpack_module, exports) => {
"use strict"; "use strict";
@@ -39831,7 +39831,7 @@ exports.assertValidPattern = assertValidPattern;
/***/ }), /***/ }),
/***/ 3839: /***/ 5136:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict"; "use strict";
@@ -39839,8 +39839,8 @@ exports.assertValidPattern = assertValidPattern;
// parse a single path portion // parse a single path portion
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.AST = void 0; exports.AST = void 0;
const brace_expressions_js_1 = __nccwpck_require__(5822); const brace_expressions_js_1 = __nccwpck_require__(1812);
const unescape_js_1 = __nccwpck_require__(7305); const unescape_js_1 = __nccwpck_require__(5698);
const types = new Set(['!', '?', '+', '*', '@']); const types = new Set(['!', '?', '+', '*', '@']);
const isExtglobType = (c) => types.has(c); const isExtglobType = (c) => types.has(c);
// Patterns that get prepended to bind to the start of either the // Patterns that get prepended to bind to the start of either the
@@ -40175,6 +40175,9 @@ class AST {
_glob: glob, _glob: glob,
}); });
} }
get options() {
return this.#options;
}
// returns the string match, the regexp source, whether there's magic // returns the string match, the regexp source, whether there's magic
// in the regexp (so a regular expression is required) and whether or // in the regexp (so a regular expression is required) and whether or
// not the uflag is needed for the regular expression (for posix classes) // not the uflag is needed for the regular expression (for posix classes)
@@ -40427,7 +40430,7 @@ exports.AST = AST;
/***/ }), /***/ }),
/***/ 5822: /***/ 1812:
/***/ ((__unused_webpack_module, exports) => { /***/ ((__unused_webpack_module, exports) => {
"use strict"; "use strict";
@@ -40586,7 +40589,7 @@ exports.parseClass = parseClass;
/***/ }), /***/ }),
/***/ 9004: /***/ 2804:
/***/ ((__unused_webpack_module, exports) => { /***/ ((__unused_webpack_module, exports) => {
"use strict"; "use strict";
@@ -40615,7 +40618,7 @@ exports.escape = escape;
/***/ }), /***/ }),
/***/ 1953: /***/ 4501:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
@@ -40626,10 +40629,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0; exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
const brace_expansion_1 = __importDefault(__nccwpck_require__(3717)); const brace_expansion_1 = __importDefault(__nccwpck_require__(3717));
const assert_valid_pattern_js_1 = __nccwpck_require__(903); const assert_valid_pattern_js_1 = __nccwpck_require__(4149);
const ast_js_1 = __nccwpck_require__(3839); const ast_js_1 = __nccwpck_require__(5136);
const escape_js_1 = __nccwpck_require__(9004); const escape_js_1 = __nccwpck_require__(2804);
const unescape_js_1 = __nccwpck_require__(7305); const unescape_js_1 = __nccwpck_require__(5698);
const minimatch = (p, pattern, options = {}) => { const minimatch = (p, pattern, options = {}) => {
(0, assert_valid_pattern_js_1.assertValidPattern)(pattern); (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
// shortcut: comments match nothing. // shortcut: comments match nothing.
@@ -40965,6 +40968,7 @@ class Minimatch {
globParts = this.levelOneOptimize(globParts); globParts = this.levelOneOptimize(globParts);
} }
else { else {
// just collapse multiple ** portions into one
globParts = this.adjascentGlobstarOptimize(globParts); globParts = this.adjascentGlobstarOptimize(globParts);
} }
return globParts; return globParts;
@@ -41151,10 +41155,11 @@ class Minimatch {
for (let i = 0; i < globParts.length - 1; i++) { for (let i = 0; i < globParts.length - 1; i++) {
for (let j = i + 1; j < globParts.length; j++) { for (let j = i + 1; j < globParts.length; j++) {
const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes); const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
if (!matched) if (matched) {
continue; globParts[i] = [];
globParts[i] = matched; globParts[j] = matched;
globParts[j] = []; break;
}
} }
} }
return globParts.filter(gs => gs.length); return globParts.filter(gs => gs.length);
@@ -41454,7 +41459,11 @@ class Minimatch {
fastTest = dotStarTest; fastTest = dotStarTest;
} }
const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern(); const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
return fastTest ? Object.assign(re, { test: fastTest }) : re; if (fastTest && typeof re === 'object') {
// Avoids overriding in frozen environments
Reflect.defineProperty(re, 'test', { value: fastTest });
}
return re;
} }
makeRe() { makeRe() {
if (this.regexp || this.regexp === false) if (this.regexp || this.regexp === false)
@@ -41618,11 +41627,11 @@ class Minimatch {
} }
exports.Minimatch = Minimatch; exports.Minimatch = Minimatch;
/* c8 ignore start */ /* c8 ignore start */
var ast_js_2 = __nccwpck_require__(3839); var ast_js_2 = __nccwpck_require__(5136);
Object.defineProperty(exports, "AST", ({ enumerable: true, get: function () { return ast_js_2.AST; } })); Object.defineProperty(exports, "AST", ({ enumerable: true, get: function () { return ast_js_2.AST; } }));
var escape_js_2 = __nccwpck_require__(9004); var escape_js_2 = __nccwpck_require__(2804);
Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } })); Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } }));
var unescape_js_2 = __nccwpck_require__(7305); var unescape_js_2 = __nccwpck_require__(5698);
Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return unescape_js_2.unescape; } })); Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return unescape_js_2.unescape; } }));
/* c8 ignore stop */ /* c8 ignore stop */
exports.minimatch.AST = ast_js_1.AST; exports.minimatch.AST = ast_js_1.AST;
@@ -41633,7 +41642,7 @@ exports.minimatch.unescape = unescape_js_1.unescape;
/***/ }), /***/ }),
/***/ 7305: /***/ 5698:
/***/ ((__unused_webpack_module, exports) => { /***/ ((__unused_webpack_module, exports) => {
"use strict"; "use strict";

31
package-lock.json generated
View File

@@ -14,7 +14,7 @@
"@octokit/plugin-retry": "^6.0.0", "@octokit/plugin-retry": "^6.0.0",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"lodash.isequal": "^4.5.0", "lodash.isequal": "^4.5.0",
"minimatch": "^9.0.3" "minimatch": "^10.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^29.5.12", "@types/jest": "^29.5.12",
@@ -1806,6 +1806,21 @@
} }
} }
}, },
"node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
"version": "9.0.3",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
"dev": true,
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/@typescript-eslint/utils": { "node_modules/@typescript-eslint/utils": {
"version": "7.3.1", "version": "7.3.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.3.1.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.3.1.tgz",
@@ -2354,9 +2369,9 @@
} }
}, },
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
"version": "7.0.3", "version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"path-key": "^3.1.0", "path-key": "^3.1.0",
@@ -4333,14 +4348,14 @@
} }
}, },
"node_modules/minimatch": { "node_modules/minimatch": {
"version": "9.0.3", "version": "10.0.1",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz",
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==",
"dependencies": { "dependencies": {
"brace-expansion": "^2.0.1" "brace-expansion": "^2.0.1"
}, },
"engines": { "engines": {
"node": ">=16 || 14 >=14.17" "node": "20 || >=22"
}, },
"funding": { "funding": {
"url": "https://github.com/sponsors/isaacs" "url": "https://github.com/sponsors/isaacs"

View File

@@ -29,7 +29,7 @@
"@octokit/plugin-retry": "^6.0.0", "@octokit/plugin-retry": "^6.0.0",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"lodash.isequal": "^4.5.0", "lodash.isequal": "^4.5.0",
"minimatch": "^9.0.3" "minimatch": "^10.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^29.5.12", "@types/jest": "^29.5.12",