◐ Shell
clean mode source ↗

deps: update minimatch to 10.2.5 · nodejs/node@2faba66

Original file line numberDiff line numberDiff line change

@@ -15,7 +15,7 @@ objects.

1515

> you provide to this library in production systems.

1616
1717

_Any_ library in JavaScript that deals with matching string

18-

patterns using regular expressions will be subject to

18+

patterns using regular expressions will be subject to

1919

[ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)

2020

if the pattern is generated using untrusted input.

2121
Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

import { MinimatchOptions, MMRegExp } from './index.js';

1+

import type { MinimatchOptions, MMRegExp } from './index.js';

22

export type ExtglobType = '!' | '?' | '+' | '*' | '@';

33

export declare class AST {

44

#private;

@@ -9,7 +9,7 @@ export declare class AST {

99

get hasMagic(): boolean | undefined;

1010

toString(): string;

1111

push(...parts: (string | AST)[]): void;

12-

toJSON(): any[];

12+

toJSON(): unknown[];

1313

isStart(): boolean;

1414

isEnd(): boolean;

1515

copyIn(part: AST | string): void;

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

import { MinimatchOptions } from './index.js';

1+

import type { MinimatchOptions } from './index.js';

22

/**

33

* Escape all magic characters in a glob pattern.

44

*

Original file line numberDiff line numberDiff line change

@@ -150,7 +150,7 @@ export declare class Minimatch {

150150

regexp: false | null | MMRegExp;

151151

constructor(pattern: string, options?: MinimatchOptions);

152152

hasMagic(): boolean;

153-

debug(..._: any[]): void;

153+

debug(..._: unknown[]): void;

154154

make(): void;

155155

preprocess(globParts: string[][]): string[][];

156156

adjascentGlobstarOptimize(globParts: string[][]): string[][];