minimatch
Advanced tools
Comparing version 6.0.3 to 6.0.4
@@ -54,4 +54,4 @@ export interface MinimatchOptions { | ||
partial: boolean; | ||
globSet?: string[]; | ||
globParts?: string[][]; | ||
globSet: string[]; | ||
globParts: string[][]; | ||
regexp: false | null | MMRegExp; | ||
@@ -58,0 +58,0 @@ constructor(pattern: string, options?: MinimatchOptions); |
@@ -170,3 +170,2 @@ "use strict"; | ||
this.options = options; | ||
this.set = []; | ||
this.pattern = pattern; | ||
@@ -184,2 +183,5 @@ this.windowsPathsNoEscape = | ||
this.partial = !!options.partial; | ||
this.globSet = []; | ||
this.globParts = []; | ||
this.set = []; | ||
// make the set of regexps etc. | ||
@@ -204,7 +206,7 @@ this.make(); | ||
// step 2: expand braces | ||
const globSet = (this.globSet = this.braceExpand()); | ||
this.globSet = this.braceExpand(); | ||
if (options.debug) { | ||
this.debug = (...args) => console.error(...args); | ||
} | ||
this.debug(this.pattern, globSet); | ||
this.debug(this.pattern, this.globSet); | ||
// step 3: now we have a set, so turn each one into a series of path-portion | ||
@@ -215,3 +217,3 @@ // matching patterns. | ||
// and will not contain any / characters | ||
const rawGlobParts = globSet.map(s => s.split(slashSplit)); | ||
const rawGlobParts = this.globSet.map(s => s.split(slashSplit)); | ||
// consecutive globstars are an unncessary perf killer | ||
@@ -218,0 +220,0 @@ this.globParts = this.options.noglobstar |
@@ -54,4 +54,4 @@ export interface MinimatchOptions { | ||
partial: boolean; | ||
globSet?: string[]; | ||
globParts?: string[][]; | ||
globSet: string[]; | ||
globParts: string[][]; | ||
regexp: false | null | MMRegExp; | ||
@@ -58,0 +58,0 @@ constructor(pattern: string, options?: MinimatchOptions); |
@@ -158,3 +158,2 @@ export const minimatch = (p, pattern, options = {}) => { | ||
this.options = options; | ||
this.set = []; | ||
this.pattern = pattern; | ||
@@ -172,2 +171,5 @@ this.windowsPathsNoEscape = | ||
this.partial = !!options.partial; | ||
this.globSet = []; | ||
this.globParts = []; | ||
this.set = []; | ||
// make the set of regexps etc. | ||
@@ -192,7 +194,7 @@ this.make(); | ||
// step 2: expand braces | ||
const globSet = (this.globSet = this.braceExpand()); | ||
this.globSet = this.braceExpand(); | ||
if (options.debug) { | ||
this.debug = (...args) => console.error(...args); | ||
} | ||
this.debug(this.pattern, globSet); | ||
this.debug(this.pattern, this.globSet); | ||
// step 3: now we have a set, so turn each one into a series of path-portion | ||
@@ -203,3 +205,3 @@ // matching patterns. | ||
// and will not contain any / characters | ||
const rawGlobParts = globSet.map(s => s.split(slashSplit)); | ||
const rawGlobParts = this.globSet.map(s => s.split(slashSplit)); | ||
// consecutive globstars are an unncessary perf killer | ||
@@ -206,0 +208,0 @@ this.globParts = this.options.noglobstar |
@@ -5,3 +5,3 @@ { | ||
"description": "a glob matcher in javascript", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137410
1849