Skip to content

Commit 6fd94f2

Browse files
committed
deps: minimatch@9.0.4
1 parent b048592 commit 6fd94f2

File tree

19 files changed

+48
-36
lines changed

19 files changed

+48
-36
lines changed

node_modules/minimatch/dist/cjs/ast.js renamed to node_modules/minimatch/dist/commonjs/ast.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ class AST {
338338
_glob: glob,
339339
});
340340
}
341+
get options() {
342+
return this.#options;
343+
}
341344
// returns the string match, the regexp source, whether there's magic
342345
// in the regexp (so a regular expression is required) and whether or
343346
// not the uflag is needed for the regular expression (for posix classes)

node_modules/minimatch/dist/cjs/index.js renamed to node_modules/minimatch/dist/commonjs/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ class Minimatch {
344344
globParts = this.levelOneOptimize(globParts);
345345
}
346346
else {
347+
// just collapse multiple ** portions into one
347348
globParts = this.adjascentGlobstarOptimize(globParts);
348349
}
349350
return globParts;
@@ -833,7 +834,11 @@ class Minimatch {
833834
fastTest = dotStarTest;
834835
}
835836
const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
836-
return fastTest ? Object.assign(re, { test: fastTest }) : re;
837+
if (fastTest && typeof re === 'object') {
838+
// Avoids overriding in frozen environments
839+
Reflect.defineProperty(re, 'test', { value: fastTest });
840+
}
841+
return re;
837842
}
838843
makeRe() {
839844
if (this.regexp || this.regexp === false)

node_modules/minimatch/dist/mjs/ast.js renamed to node_modules/minimatch/dist/esm/ast.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ export class AST {
335335
_glob: glob,
336336
});
337337
}
338+
get options() {
339+
return this.#options;
340+
}
338341
// returns the string match, the regexp source, whether there's magic
339342
// in the regexp (so a regular expression is required) and whether or
340343
// not the uflag is needed for the regular expression (for posix classes)

0 commit comments

Comments
 (0)