Skip to content

Commit ec33dd9

Browse files
deps: update minimatch to 10.2.2
PR-URL: #61830 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent b1a2b7d commit ec33dd9

32 files changed

+759
-538
lines changed

deps/minimatch/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ Returns a function that tests its
157157
supplied argument, suitable for use with `Array.filter`. Example:
158158

159159
```javascript
160-
var javascripts = fileList.filter(minimatch.filter('*.js', { matchBase: true }))
160+
var javascripts = fileList.filter(
161+
minimatch.filter('*.js', { matchBase: true }),
162+
)
161163
```
162164

163165
### minimatch.escape(pattern, options = {})

deps/minimatch/dist/commonjs/ast.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/minimatch/dist/commonjs/ast.js

Lines changed: 37 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/minimatch/dist/commonjs/ast.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/minimatch/dist/commonjs/brace-expressions.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/minimatch/dist/commonjs/brace-expressions.js

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/minimatch/dist/commonjs/brace-expressions.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/minimatch/dist/commonjs/escape.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/minimatch/dist/commonjs/escape.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/minimatch/dist/commonjs/index.d.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,76 @@
11
import { AST } from './ast.js';
22
export type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd';
33
export interface MinimatchOptions {
4+
/** do not expand `{x,y}` style braces */
45
nobrace?: boolean;
6+
/** do not treat patterns starting with `#` as a comment */
57
nocomment?: boolean;
8+
/** do not treat patterns starting with `!` as a negation */
69
nonegate?: boolean;
10+
/** print LOTS of debugging output */
711
debug?: boolean;
12+
/** treat `**` the same as `*` */
813
noglobstar?: boolean;
14+
/** do not expand extglobs like `+(a|b)` */
915
noext?: boolean;
16+
/** return the pattern if nothing matches */
1017
nonull?: boolean;
18+
/** treat `\\` as a path separator, not an escape character */
1119
windowsPathsNoEscape?: boolean;
20+
/**
21+
* inverse of {@link MinimatchOptions.windowsPathsNoEscape}
22+
* @deprecated
23+
*/
1224
allowWindowsEscape?: boolean;
25+
/**
26+
* Compare a partial path to a pattern. As long as the parts
27+
* of the path that are present are not contradicted by the
28+
* pattern, it will be treated as a match. This is useful in
29+
* applications where you're walking through a folder structure,
30+
* and don't yet have the full path, but want to ensure that you
31+
* do not walk down paths that can never be a match.
32+
*/
1333
partial?: boolean;
34+
/** allow matches that start with `.` even if the pattern does not */
1435
dot?: boolean;
36+
/** ignore case */
1537
nocase?: boolean;
38+
/** ignore case only in wildcard patterns */
1639
nocaseMagicOnly?: boolean;
40+
/** consider braces to be "magic" for the purpose of `hasMagic` */
1741
magicalBraces?: boolean;
42+
/**
43+
* If set, then patterns without slashes will be matched
44+
* against the basename of the path if it contains slashes.
45+
* For example, `a?b` would match the path `/xyz/123/acb`, but
46+
* not `/xyz/acb/123`.
47+
*/
1848
matchBase?: boolean;
49+
/** invert the results of negated matches */
1950
flipNegate?: boolean;
51+
/** do not collapse multiple `/` into a single `/` */
2052
preserveMultipleSlashes?: boolean;
53+
/**
54+
* A number indicating the level of optimization that should be done
55+
* to the pattern prior to parsing and using it for matches.
56+
*/
2157
optimizationLevel?: number;
58+
/** operating system platform */
2259
platform?: Platform;
60+
/**
61+
* When a pattern starts with a UNC path or drive letter, and in
62+
* `nocase:true` mode, do not convert the root portions of the
63+
* pattern into a case-insensitive regular expression, and instead
64+
* leave them as strings.
65+
*
66+
* This is the default when the platform is `win32` and
67+
* `nocase:true` is set.
68+
*/
2369
windowsNoMagicRoot?: boolean;
70+
/**
71+
* max number of `{...}` patterns to expand. Default 100_000.
72+
*/
73+
braceExpandMax?: number;
2474
}
2575
export declare const minimatch: {
2676
(p: string, pattern: string, options?: MinimatchOptions): boolean;

0 commit comments

Comments
 (0)