| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ objects. | |||
| 15 | 15 | > you provide to this library in production systems. | |
| 16 | 16 | ||
| 17 | 17 | _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 | ||
| 19 | 19 | [ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS) | |
| 20 | 20 | if the pattern is generated using untrusted input. | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - import { MinimatchOptions, MMRegExp } from './index.js'; | ||
| 1 | + import type { MinimatchOptions, MMRegExp } from './index.js'; | ||
| 2 | 2 | export type ExtglobType = '!' | '?' | '+' | '*' | '@'; | |
| 3 | 3 | export declare class AST { | |
| 4 | 4 | #private; | |
@@ -9,7 +9,7 @@ export declare class AST { | |||
| 9 | 9 | get hasMagic(): boolean | undefined; | |
| 10 | 10 | toString(): string; | |
| 11 | 11 | push(...parts: (string | AST)[]): void; | |
| 12 | - toJSON(): any[]; | ||
| 12 | + toJSON(): unknown[]; | ||
| 13 | 13 | isStart(): boolean; | |
| 14 | 14 | isEnd(): boolean; | |
| 15 | 15 | copyIn(part: AST | string): void; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - import { MinimatchOptions } from './index.js'; | ||
| 1 | + import type { MinimatchOptions } from './index.js'; | ||
| 2 | 2 | /** | |
| 3 | 3 | * Escape all magic characters in a glob pattern. | |
| 4 | 4 | * | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,7 +150,7 @@ export declare class Minimatch { | |||
| 150 | 150 | regexp: false | null | MMRegExp; | |
| 151 | 151 | constructor(pattern: string, options?: MinimatchOptions); | |
| 152 | 152 | hasMagic(): boolean; | |
| 153 | - debug(..._: any[]): void; | ||
| 153 | + debug(..._: unknown[]): void; | ||
| 154 | 154 | make(): void; | |
| 155 | 155 | preprocess(globParts: string[][]): string[][]; | |
| 156 | 156 | adjascentGlobstarOptimize(globParts: string[][]): string[][]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments