◐ Shell
clean mode source ↗

deps: update minimatch to 10.2.2 · nodejs/node@9b483fb

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;