@@ -564,7 +564,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
564
564
exports.checkIfAllGlobsMatchAllFiles = exports.checkIfAnyGlobMatchesAllFiles = exports.checkIfAllGlobsMatchAnyFile = exports.checkIfAnyGlobMatchesAnyFile = exports.checkAllChangedFiles = exports.checkAnyChangedFiles = exports.toChangedFilesMatchConfig = exports.getChangedFiles = void 0;
565
565
const core = __importStar(__nccwpck_require__(2186));
566
566
const github = __importStar(__nccwpck_require__(5438));
567
- const minimatch_1 = __nccwpck_require__(1953 );
567
+ const minimatch_1 = __nccwpck_require__(4501 );
568
568
const utils_1 = __nccwpck_require__(918);
569
569
const ALLOWED_FILES_CONFIG_KEYS = [
570
570
'any-glob-to-any-file',
@@ -39810,7 +39810,7 @@ module.exports = require("zlib");
39810
39810
39811
39811
/***/ }),
39812
39812
39813
- /***/ 903 :
39813
+ /***/ 4149 :
39814
39814
/***/ ((__unused_webpack_module, exports) => {
39815
39815
39816
39816
"use strict";
@@ -39831,16 +39831,16 @@ exports.assertValidPattern = assertValidPattern;
39831
39831
39832
39832
/***/ }),
39833
39833
39834
- /***/ 3839 :
39834
+ /***/ 5136 :
39835
39835
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
39836
39836
39837
39837
"use strict";
39838
39838
39839
39839
// parse a single path portion
39840
39840
Object.defineProperty(exports, "__esModule", ({ value: true }));
39841
39841
exports.AST = void 0;
39842
- const brace_expressions_js_1 = __nccwpck_require__(5822 );
39843
- const unescape_js_1 = __nccwpck_require__(7305 );
39842
+ const brace_expressions_js_1 = __nccwpck_require__(1812 );
39843
+ const unescape_js_1 = __nccwpck_require__(5698 );
39844
39844
const types = new Set(['!', '?', '+', '*', '@']);
39845
39845
const isExtglobType = (c) => types.has(c);
39846
39846
// Patterns that get prepended to bind to the start of either the
@@ -40175,6 +40175,9 @@ class AST {
40175
40175
_glob: glob,
40176
40176
});
40177
40177
}
40178
+ get options() {
40179
+ return this.#options;
40180
+ }
40178
40181
// returns the string match, the regexp source, whether there's magic
40179
40182
// in the regexp (so a regular expression is required) and whether or
40180
40183
// not the uflag is needed for the regular expression (for posix classes)
@@ -40427,7 +40430,7 @@ exports.AST = AST;
40427
40430
40428
40431
/***/ }),
40429
40432
40430
- /***/ 5822 :
40433
+ /***/ 1812 :
40431
40434
/***/ ((__unused_webpack_module, exports) => {
40432
40435
40433
40436
"use strict";
@@ -40586,7 +40589,7 @@ exports.parseClass = parseClass;
40586
40589
40587
40590
/***/ }),
40588
40591
40589
- /***/ 9004 :
40592
+ /***/ 2804 :
40590
40593
/***/ ((__unused_webpack_module, exports) => {
40591
40594
40592
40595
"use strict";
@@ -40615,7 +40618,7 @@ exports.escape = escape;
40615
40618
40616
40619
/***/ }),
40617
40620
40618
- /***/ 1953 :
40621
+ /***/ 4501 :
40619
40622
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
40620
40623
40621
40624
"use strict";
@@ -40626,10 +40629,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
40626
40629
Object.defineProperty(exports, "__esModule", ({ value: true }));
40627
40630
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;
40628
40631
const brace_expansion_1 = __importDefault(__nccwpck_require__(3717));
40629
- const assert_valid_pattern_js_1 = __nccwpck_require__(903 );
40630
- const ast_js_1 = __nccwpck_require__(3839 );
40631
- const escape_js_1 = __nccwpck_require__(9004 );
40632
- const unescape_js_1 = __nccwpck_require__(7305 );
40632
+ const assert_valid_pattern_js_1 = __nccwpck_require__(4149 );
40633
+ const ast_js_1 = __nccwpck_require__(5136 );
40634
+ const escape_js_1 = __nccwpck_require__(2804 );
40635
+ const unescape_js_1 = __nccwpck_require__(5698 );
40633
40636
const minimatch = (p, pattern, options = {}) => {
40634
40637
(0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
40635
40638
// shortcut: comments match nothing.
@@ -40965,6 +40968,7 @@ class Minimatch {
40965
40968
globParts = this.levelOneOptimize(globParts);
40966
40969
}
40967
40970
else {
40971
+ // just collapse multiple ** portions into one
40968
40972
globParts = this.adjascentGlobstarOptimize(globParts);
40969
40973
}
40970
40974
return globParts;
@@ -41151,10 +41155,11 @@ class Minimatch {
41151
41155
for (let i = 0; i < globParts.length - 1; i++) {
41152
41156
for (let j = i + 1; j < globParts.length; j++) {
41153
41157
const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
41154
- if (!matched)
41155
- continue;
41156
- globParts[i] = matched;
41157
- globParts[j] = [];
41158
+ if (matched) {
41159
+ globParts[i] = [];
41160
+ globParts[j] = matched;
41161
+ break;
41162
+ }
41158
41163
}
41159
41164
}
41160
41165
return globParts.filter(gs => gs.length);
@@ -41454,7 +41459,11 @@ class Minimatch {
41454
41459
fastTest = dotStarTest;
41455
41460
}
41456
41461
const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
41457
- return fastTest ? Object.assign(re, { test: fastTest }) : re;
41462
+ if (fastTest && typeof re === 'object') {
41463
+ // Avoids overriding in frozen environments
41464
+ Reflect.defineProperty(re, 'test', { value: fastTest });
41465
+ }
41466
+ return re;
41458
41467
}
41459
41468
makeRe() {
41460
41469
if (this.regexp || this.regexp === false)
@@ -41618,11 +41627,11 @@ class Minimatch {
41618
41627
}
41619
41628
exports.Minimatch = Minimatch;
41620
41629
/* c8 ignore start */
41621
- var ast_js_2 = __nccwpck_require__(3839 );
41630
+ var ast_js_2 = __nccwpck_require__(5136 );
41622
41631
Object.defineProperty(exports, "AST", ({ enumerable: true, get: function () { return ast_js_2.AST; } }));
41623
- var escape_js_2 = __nccwpck_require__(9004 );
41632
+ var escape_js_2 = __nccwpck_require__(2804 );
41624
41633
Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return escape_js_2.escape; } }));
41625
- var unescape_js_2 = __nccwpck_require__(7305 );
41634
+ var unescape_js_2 = __nccwpck_require__(5698 );
41626
41635
Object.defineProperty(exports, "unescape", ({ enumerable: true, get: function () { return unescape_js_2.unescape; } }));
41627
41636
/* c8 ignore stop */
41628
41637
exports.minimatch.AST = ast_js_1.AST;
@@ -41633,7 +41642,7 @@ exports.minimatch.unescape = unescape_js_1.unescape;
41633
41642
41634
41643
/***/ }),
41635
41644
41636
- /***/ 7305 :
41645
+ /***/ 5698 :
41637
41646
/***/ ((__unused_webpack_module, exports) => {
41638
41647
41639
41648
"use strict";
0 commit comments