@@ -293,2 +293,10 @@ import { Minimatch } from 'minimatch'; | ||
| includeChildMatches?: boolean; | ||
| /** | ||
| * max number of `{...}` patterns to expand. Default `1_000`. | ||
| * | ||
| * Note: this is much less than minimatch's default of `100_000`, | ||
| * because Glob has higher memory requirements due to walking | ||
| * the file system tree. | ||
| */ | ||
| braceExpandMax?: number; | ||
| } | ||
@@ -295,0 +303,0 @@ export type GlobOptionsWithFileTypesTrue = GlobOptions & { |
@@ -143,3 +143,3 @@ "use strict"; | ||
| const mmo = { | ||
| // default nocase based on platform | ||
| braceExpandMax: 10_000, | ||
| ...opts, | ||
@@ -149,2 +149,3 @@ dot: this.dot, | ||
| nobrace: this.nobrace, | ||
| // default nocase based on platform | ||
| nocase: this.nocase, | ||
@@ -151,0 +152,0 @@ nocaseMagicOnly, |
@@ -14,2 +14,3 @@ import { GLOBSTAR } from 'minimatch'; | ||
| export type GlobList = [p: string, ...rest: string[]]; | ||
| declare const customInspect: unique symbol; | ||
| /** | ||
@@ -23,2 +24,3 @@ * An immutable-ish view on an array of glob parts and their parsed | ||
| constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform); | ||
| [customInspect](): string; | ||
| /** | ||
@@ -78,2 +80,3 @@ * The first entry in the parsed list of patterns | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=pattern.d.ts.map |
@@ -8,2 +8,3 @@ "use strict"; | ||
| const isGlobList = (gl) => gl.length >= 1; | ||
| const customInspect = Symbol.for('nodejs.util.inspect.custom'); | ||
| /** | ||
@@ -84,2 +85,5 @@ * An immutable-ish view on an array of glob parts and their parsed | ||
| } | ||
| [customInspect]() { | ||
| return 'Pattern <' + this.#globList.slice(this.#index).join('/') + '>'; | ||
| } | ||
| /** | ||
@@ -86,0 +90,0 @@ * The first entry in the parsed list of patterns |
@@ -293,2 +293,10 @@ import { Minimatch } from 'minimatch'; | ||
| includeChildMatches?: boolean; | ||
| /** | ||
| * max number of `{...}` patterns to expand. Default `1_000`. | ||
| * | ||
| * Note: this is much less than minimatch's default of `100_000`, | ||
| * because Glob has higher memory requirements due to walking | ||
| * the file system tree. | ||
| */ | ||
| braceExpandMax?: number; | ||
| } | ||
@@ -295,0 +303,0 @@ export type GlobOptionsWithFileTypesTrue = GlobOptions & { |
+2
-1
@@ -140,3 +140,3 @@ import { Minimatch } from 'minimatch'; | ||
| const mmo = { | ||
| // default nocase based on platform | ||
| braceExpandMax: 10_000, | ||
| ...opts, | ||
@@ -146,2 +146,3 @@ dot: this.dot, | ||
| nobrace: this.nobrace, | ||
| // default nocase based on platform | ||
| nocase: this.nocase, | ||
@@ -148,0 +149,0 @@ nocaseMagicOnly, |
@@ -14,2 +14,3 @@ import { GLOBSTAR } from 'minimatch'; | ||
| export type GlobList = [p: string, ...rest: string[]]; | ||
| declare const customInspect: unique symbol; | ||
| /** | ||
@@ -23,2 +24,3 @@ * An immutable-ish view on an array of glob parts and their parsed | ||
| constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform); | ||
| [customInspect](): string; | ||
| /** | ||
@@ -78,2 +80,3 @@ * The first entry in the parsed list of patterns | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=pattern.d.ts.map |
@@ -5,2 +5,3 @@ // this is just a very light wrapper around 2 arrays with an offset index | ||
| const isGlobList = (gl) => gl.length >= 1; | ||
| const customInspect = Symbol.for('nodejs.util.inspect.custom'); | ||
| /** | ||
@@ -81,2 +82,5 @@ * An immutable-ish view on an array of glob parts and their parsed | ||
| } | ||
| [customInspect]() { | ||
| return 'Pattern <' + this.#globList.slice(this.#index).join('/') + '>'; | ||
| } | ||
| /** | ||
@@ -83,0 +87,0 @@ * The first entry in the parsed list of patterns |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "description": "the most correct and second fastest glob implementation in JavaScript", | ||
| "version": "13.0.4", | ||
| "version": "13.0.5", | ||
| "type": "module", | ||
@@ -8,0 +8,0 @@ "tshy": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1605514
0.27%4866
0.66%15
-6.25%