pnpm 10.30.2 → 10.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -33
- package/dist/node_modules/.modules.yaml +139 -141
- package/dist/node_modules/.pnpm/lock.yaml +23 -25
- package/dist/node_modules/.pnpm-workspace-state-v1.json +1 -1
- package/dist/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/dist/node_modules/balanced-match/index.js +62 -0
- package/dist/node_modules/balanced-match/package.json +28 -48
- package/dist/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/dist/node_modules/brace-expansion/LICENSE +1 -3
- package/dist/node_modules/brace-expansion/index.js +203 -0
- package/dist/node_modules/brace-expansion/package.json +36 -51
- package/dist/node_modules/isexe/LICENSE +1 -1
- package/dist/node_modules/isexe/package.json +14 -79
- package/dist/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +168 -20
- package/dist/node_modules/minimatch/dist/commonjs/ast.js.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/index.js +129 -120
- package/dist/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/ast.js +168 -20
- package/dist/node_modules/minimatch/dist/esm/ast.js.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/index.js +125 -119
- package/dist/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/dist/node_modules/minimatch/package.json +3 -2
- package/dist/node_modules/{minipass-flush/node_modules/yallist → node-gyp/node_modules/isexe}/LICENSE +1 -1
- package/dist/node_modules/node-gyp/node_modules/isexe/package.json +96 -0
- package/dist/node_modules/node-gyp/node_modules/which/package.json +52 -0
- package/dist/node_modules/strip-ansi/index.js +5 -0
- package/dist/node_modules/strip-ansi/package.json +5 -5
- package/dist/node_modules/tar/dist/commonjs/index.min.js +2 -2
- package/dist/node_modules/tar/dist/commonjs/index.min.js.map +3 -3
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -1
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -1
- package/dist/node_modules/tar/dist/commonjs/unpack.js +3 -3
- package/dist/node_modules/tar/dist/commonjs/unpack.js.map +1 -1
- package/dist/node_modules/tar/dist/esm/index.min.js +2 -2
- package/dist/node_modules/tar/dist/esm/index.min.js.map +3 -3
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -1
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -1
- package/dist/node_modules/tar/dist/esm/unpack.js +3 -3
- package/dist/node_modules/tar/dist/esm/unpack.js.map +1 -1
- package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/dist/node_modules/tar/package.json +6 -6
- package/dist/node_modules/which/package.json +20 -29
- package/dist/node_modules/yallist/package.json +12 -51
- package/dist/pnpm.cjs +30856 -24457
- package/dist/worker.js +163 -122
- package/package.json +1 -1
- package/dist/node_modules/balanced-match/dist/commonjs/index.d.ts.map +0 -1
- package/dist/node_modules/balanced-match/dist/commonjs/index.js +0 -59
- package/dist/node_modules/balanced-match/dist/commonjs/index.js.map +0 -1
- package/dist/node_modules/balanced-match/dist/esm/index.d.ts.map +0 -1
- package/dist/node_modules/balanced-match/dist/esm/index.js +0 -54
- package/dist/node_modules/balanced-match/dist/esm/index.js.map +0 -1
- package/dist/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +0 -1
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +0 -199
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js.map +0 -1
- package/dist/node_modules/brace-expansion/dist/esm/index.d.ts.map +0 -1
- package/dist/node_modules/brace-expansion/dist/esm/index.js +0 -195
- package/dist/node_modules/brace-expansion/dist/esm/index.js.map +0 -1
- package/dist/node_modules/cross-spawn/node_modules/isexe/package.json +0 -31
- package/dist/node_modules/cross-spawn/node_modules/which/package.json +0 -43
- package/dist/node_modules/isexe/dist/cjs/package.json +0 -3
- package/dist/node_modules/isexe/dist/mjs/package.json +0 -3
- package/dist/node_modules/minipass-flush/node_modules/yallist/package.json +0 -29
- package/dist/node_modules/minipass-pipeline/node_modules/yallist/LICENSE +0 -15
- package/dist/node_modules/minipass-pipeline/node_modules/yallist/iterator.js +0 -8
- package/dist/node_modules/minipass-pipeline/node_modules/yallist/package.json +0 -29
- package/dist/node_modules/minipass-pipeline/node_modules/yallist/yallist.js +0 -426
- package/dist/node_modules/minipass-sized/node_modules/yallist/LICENSE +0 -15
- package/dist/node_modules/minipass-sized/node_modules/yallist/iterator.js +0 -8
- package/dist/node_modules/minipass-sized/node_modules/yallist/package.json +0 -29
- package/dist/node_modules/minipass-sized/node_modules/yallist/yallist.js +0 -426
- package/dist/node_modules/yallist/dist/commonjs/package.json +0 -3
- package/dist/node_modules/yallist/dist/esm/package.json +0 -3
- /package/dist/node_modules/{cross-spawn/node_modules/isexe → isexe}/index.js +0 -0
- /package/dist/node_modules/{cross-spawn/node_modules/isexe → isexe}/mode.js +0 -0
- /package/dist/node_modules/{cross-spawn/node_modules/isexe → isexe}/windows.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/index.d.ts.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/index.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/index.js.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/options.d.ts.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/options.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/options.js.map +0 -0
- /package/dist/node_modules/{balanced-match/dist/commonjs → node-gyp/node_modules/isexe/dist/cjs}/package.json +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/posix.d.ts.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/posix.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/posix.js.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/win32.d.ts.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/win32.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/cjs/win32.js.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/index.d.ts.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/index.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/index.js.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/options.d.ts.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/options.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/options.js.map +0 -0
- /package/dist/node_modules/{balanced-match/dist/esm → node-gyp/node_modules/isexe/dist/mjs}/package.json +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/posix.d.ts.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/posix.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/posix.js.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/win32.d.ts.map +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/win32.js +0 -0
- /package/dist/node_modules/{isexe → node-gyp/node_modules/isexe}/dist/mjs/win32.js.map +0 -0
- /package/dist/node_modules/{cross-spawn/node_modules/isexe → node-gyp/node_modules/which}/LICENSE +0 -0
- /package/dist/node_modules/{which → node-gyp/node_modules/which}/bin/which.js +0 -0
- /package/dist/node_modules/{which → node-gyp/node_modules/which}/lib/index.js +0 -0
- /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.d.ts.map +0 -0
- /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js +0 -0
- /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js.map +0 -0
- /package/dist/node_modules/{brace-expansion → tar/node_modules/yallist}/dist/commonjs/package.json +0 -0
- /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.d.ts.map +0 -0
- /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js +0 -0
- /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js.map +0 -0
- /package/dist/node_modules/{brace-expansion → tar/node_modules/yallist}/dist/esm/package.json +0 -0
- /package/dist/node_modules/{cross-spawn/node_modules/which → which}/bin/node-which +0 -0
- /package/dist/node_modules/{cross-spawn/node_modules/which → which}/which.js +0 -0
- /package/dist/node_modules/{cross-spawn/node_modules/which → yallist}/LICENSE +0 -0
- /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/iterator.js +0 -0
- /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/yallist.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAe,MAAM,UAAU,CAAA;AAI3C,KAAK,QAAQ,GACT,KAAK,GACL,SAAS,GACT,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,SAAS,GACT,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,CAAA;AAEZ,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,O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M,EAAE,EAAE;IAoBtC,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IA6D7C,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE;IA0F1C,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE;IAkBxD,UAAU,CACR,CAAC,EAAE,MAAM,EAAE,EACX,CAAC,EAAE,MAAM,EAAE,EACX,YAAY,GAAE,OAAe,GAC5B,KAAK,GAAG,MAAM,EAAE;IA+CnB,WAAW;IAqBX,QAAQ,CACN,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE,WAAW,EAAE,EACtB,OAAO,GAAE,OAAe;IAuP1B,WAAW,IAAI,MAAM,EAAE;IAIvB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;IAiDnC,MAAM;IAsFN,UAAU,CAAC,CAAC,EAAE,MAAM;IAepB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,UAAe;IAiEvC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,gBAAgB;CAGtC;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
|
|
4
|
-
const brace_expansion_1 = require("brace-expansion");
|
|
7
|
+
const brace_expansion_1 = __importDefault(require("brace-expansion"));
|
|
5
8
|
const assert_valid_pattern_js_1 = require("./assert-valid-pattern.js");
|
|
6
9
|
const ast_js_1 = require("./ast.js");
|
|
7
10
|
const escape_js_1 = require("./escape.js");
|
|
@@ -154,7 +157,7 @@ const braceExpand = (pattern, options = {}) => {
|
|
|
154
157
|
// shortcut. no need to expand.
|
|
155
158
|
return [pattern];
|
|
156
159
|
}
|
|
157
|
-
return (0, brace_expansion_1.
|
|
160
|
+
return (0, brace_expansion_1.default)(pattern);
|
|
158
161
|
};
|
|
159
162
|
exports.braceExpand = braceExpand;
|
|
160
163
|
exports.minimatch.braceExpand = exports.braceExpand;
|
|
@@ -202,11 +205,13 @@ class Minimatch {
|
|
|
202
205
|
isWindows;
|
|
203
206
|
platform;
|
|
204
207
|
windowsNoMagicRoot;
|
|
208
|
+
maxGlobstarRecursion;
|
|
205
209
|
regexp;
|
|
206
210
|
constructor(pattern, options = {}) {
|
|
207
211
|
(0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
|
|
208
212
|
options = options || {};
|
|
209
213
|
this.options = options;
|
|
214
|
+
this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200;
|
|
210
215
|
this.pattern = pattern;
|
|
211
216
|
this.platform = options.platform || defaultPlatform;
|
|
212
217
|
this.isWindows = this.platform === 'win32';
|
|
@@ -606,7 +611,8 @@ class Minimatch {
|
|
|
606
611
|
// out of pattern, then that's fine, as long as all
|
|
607
612
|
// the parts match.
|
|
608
613
|
matchOne(file, pattern, partial = false) {
|
|
609
|
-
|
|
614
|
+
let fileStartIndex = 0;
|
|
615
|
+
let patternStartIndex = 0;
|
|
610
616
|
// UNC paths like //?/X:/... can match X:/... and vice versa
|
|
611
617
|
// Drive letters in absolute drive or unc paths are always compared
|
|
612
618
|
// case-insensitively.
|
|
@@ -627,15 +633,14 @@ class Minimatch {
|
|
|
627
633
|
const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
|
|
628
634
|
const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
|
|
629
635
|
if (typeof fdi === 'number' && typeof pdi === 'number') {
|
|
630
|
-
const [fd, pd] = [
|
|
636
|
+
const [fd, pd] = [
|
|
637
|
+
file[fdi],
|
|
638
|
+
pattern[pdi],
|
|
639
|
+
];
|
|
631
640
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
632
641
|
pattern[pdi] = fd;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
}
|
|
636
|
-
else if (fdi > pdi) {
|
|
637
|
-
file = file.slice(fdi);
|
|
638
|
-
}
|
|
642
|
+
patternStartIndex = pdi;
|
|
643
|
+
fileStartIndex = fdi;
|
|
639
644
|
}
|
|
640
645
|
}
|
|
641
646
|
}
|
|
@@ -645,102 +650,127 @@ class Minimatch {
|
|
|
645
650
|
if (optimizationLevel >= 2) {
|
|
646
651
|
file = this.levelTwoFileOptimize(file);
|
|
647
652
|
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
653
|
+
if (pattern.includes(exports.GLOBSTAR)) {
|
|
654
|
+
return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
655
|
+
}
|
|
656
|
+
return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
657
|
+
}
|
|
658
|
+
#matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
|
|
659
|
+
const firstgs = pattern.indexOf(exports.GLOBSTAR, patternIndex);
|
|
660
|
+
const lastgs = pattern.lastIndexOf(exports.GLOBSTAR);
|
|
661
|
+
const [head, body, tail] = partial ? [
|
|
662
|
+
pattern.slice(patternIndex, firstgs),
|
|
663
|
+
pattern.slice(firstgs + 1),
|
|
664
|
+
[],
|
|
665
|
+
] : [
|
|
666
|
+
pattern.slice(patternIndex, firstgs),
|
|
667
|
+
pattern.slice(firstgs + 1, lastgs),
|
|
668
|
+
pattern.slice(lastgs + 1),
|
|
669
|
+
];
|
|
670
|
+
if (head.length) {
|
|
671
|
+
const fileHead = file.slice(fileIndex, fileIndex + head.length);
|
|
672
|
+
if (!this.#matchOne(fileHead, head, partial, 0, 0))
|
|
673
|
+
return false;
|
|
674
|
+
fileIndex += head.length;
|
|
675
|
+
}
|
|
676
|
+
let fileTailMatch = 0;
|
|
677
|
+
if (tail.length) {
|
|
678
|
+
if (tail.length + fileIndex > file.length)
|
|
659
679
|
return false;
|
|
680
|
+
let tailStart = file.length - tail.length;
|
|
681
|
+
if (this.#matchOne(file, tail, partial, tailStart, 0)) {
|
|
682
|
+
fileTailMatch = tail.length;
|
|
660
683
|
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
// a/**/b/**/c would match the following:
|
|
666
|
-
// a/b/x/y/z/c
|
|
667
|
-
// a/x/y/z/b/c
|
|
668
|
-
// a/b/x/b/x/c
|
|
669
|
-
// a/b/c
|
|
670
|
-
// To do this, take the rest of the pattern after
|
|
671
|
-
// the **, and see if it would match the file remainder.
|
|
672
|
-
// If so, return success.
|
|
673
|
-
// If not, the ** "swallows" a segment, and try again.
|
|
674
|
-
// This is recursively awful.
|
|
675
|
-
//
|
|
676
|
-
// a/**/b/**/c matching a/b/x/y/z/c
|
|
677
|
-
// - a matches a
|
|
678
|
-
// - doublestar
|
|
679
|
-
// - matchOne(b/x/y/z/c, b/**/c)
|
|
680
|
-
// - b matches b
|
|
681
|
-
// - doublestar
|
|
682
|
-
// - matchOne(x/y/z/c, c) -> no
|
|
683
|
-
// - matchOne(y/z/c, c) -> no
|
|
684
|
-
// - matchOne(z/c, c) -> no
|
|
685
|
-
// - matchOne(c, c) yes, hit
|
|
686
|
-
var fr = fi;
|
|
687
|
-
var pr = pi + 1;
|
|
688
|
-
if (pr === pl) {
|
|
689
|
-
this.debug('** at the end');
|
|
690
|
-
// a ** at the end will just swallow the rest.
|
|
691
|
-
// We have found a match.
|
|
692
|
-
// however, it will not swallow /.x, unless
|
|
693
|
-
// options.dot is set.
|
|
694
|
-
// . and .. are *never* matched by **, for explosively
|
|
695
|
-
// exponential reasons.
|
|
696
|
-
for (; fi < fl; fi++) {
|
|
697
|
-
if (file[fi] === '.' ||
|
|
698
|
-
file[fi] === '..' ||
|
|
699
|
-
(!options.dot && file[fi].charAt(0) === '.'))
|
|
700
|
-
return false;
|
|
701
|
-
}
|
|
702
|
-
return true;
|
|
684
|
+
else {
|
|
685
|
+
if (file[file.length - 1] !== '' ||
|
|
686
|
+
fileIndex + tail.length === file.length) {
|
|
687
|
+
return false;
|
|
703
688
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
swallowee === '..' ||
|
|
719
|
-
(!options.dot && swallowee.charAt(0) === '.')) {
|
|
720
|
-
this.debug('dot detected!', file, fr, pattern, pr);
|
|
721
|
-
break;
|
|
722
|
-
}
|
|
723
|
-
// ** swallows a segment, and continue.
|
|
724
|
-
this.debug('globstar swallow a segment, and continue');
|
|
725
|
-
fr++;
|
|
726
|
-
}
|
|
689
|
+
tailStart--;
|
|
690
|
+
if (!this.#matchOne(file, tail, partial, tailStart, 0))
|
|
691
|
+
return false;
|
|
692
|
+
fileTailMatch = tail.length + 1;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
if (!body.length) {
|
|
696
|
+
let sawSome = !!fileTailMatch;
|
|
697
|
+
for (let i = fileIndex; i < file.length - fileTailMatch; i++) {
|
|
698
|
+
const f = String(file[i]);
|
|
699
|
+
sawSome = true;
|
|
700
|
+
if (f === '.' || f === '..' ||
|
|
701
|
+
(!this.options.dot && f.startsWith('.'))) {
|
|
702
|
+
return false;
|
|
727
703
|
}
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
704
|
+
}
|
|
705
|
+
return partial || sawSome;
|
|
706
|
+
}
|
|
707
|
+
const bodySegments = [[[], 0]];
|
|
708
|
+
let currentBody = bodySegments[0];
|
|
709
|
+
let nonGsParts = 0;
|
|
710
|
+
const nonGsPartsSums = [0];
|
|
711
|
+
for (const b of body) {
|
|
712
|
+
if (b === exports.GLOBSTAR) {
|
|
713
|
+
nonGsPartsSums.push(nonGsParts);
|
|
714
|
+
currentBody = [[], 0];
|
|
715
|
+
bodySegments.push(currentBody);
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
currentBody[0].push(b);
|
|
719
|
+
nonGsParts++;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
let i = bodySegments.length - 1;
|
|
723
|
+
const fileLength = file.length - fileTailMatch;
|
|
724
|
+
for (const b of bodySegments) {
|
|
725
|
+
b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
|
|
726
|
+
}
|
|
727
|
+
return !!this.#matchGlobStarBodySections(file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
|
|
728
|
+
}
|
|
729
|
+
#matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
730
|
+
const bs = bodySegments[bodyIndex];
|
|
731
|
+
if (!bs) {
|
|
732
|
+
for (let i = fileIndex; i < file.length; i++) {
|
|
733
|
+
sawTail = true;
|
|
734
|
+
const f = file[i];
|
|
735
|
+
if (f === '.' || f === '..' ||
|
|
736
|
+
(!this.options.dot && f.startsWith('.'))) {
|
|
737
|
+
return false;
|
|
737
738
|
}
|
|
738
|
-
|
|
739
|
+
}
|
|
740
|
+
return sawTail;
|
|
741
|
+
}
|
|
742
|
+
const [body, after] = bs;
|
|
743
|
+
while (fileIndex <= after) {
|
|
744
|
+
const m = this.#matchOne(file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
|
|
745
|
+
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
746
|
+
const sub = this.#matchGlobStarBodySections(file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
|
|
747
|
+
if (sub !== false)
|
|
748
|
+
return sub;
|
|
749
|
+
}
|
|
750
|
+
const f = file[fileIndex];
|
|
751
|
+
if (f === '.' || f === '..' ||
|
|
752
|
+
(!this.options.dot && f.startsWith('.'))) {
|
|
739
753
|
return false;
|
|
740
754
|
}
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
755
|
+
fileIndex++;
|
|
756
|
+
}
|
|
757
|
+
return partial || null;
|
|
758
|
+
}
|
|
759
|
+
#matchOne(file, pattern, partial, fileIndex, patternIndex) {
|
|
760
|
+
let fi;
|
|
761
|
+
let pi;
|
|
762
|
+
let pl;
|
|
763
|
+
let fl;
|
|
764
|
+
for (fi = fileIndex, pi = patternIndex,
|
|
765
|
+
fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
766
|
+
this.debug('matchOne loop');
|
|
767
|
+
let p = pattern[pi];
|
|
768
|
+
let f = file[fi];
|
|
769
|
+
this.debug(pattern, p, f);
|
|
770
|
+
/* c8 ignore start */
|
|
771
|
+
if (p === false || p === exports.GLOBSTAR)
|
|
772
|
+
return false;
|
|
773
|
+
/* c8 ignore stop */
|
|
744
774
|
let hit;
|
|
745
775
|
if (typeof p === 'string') {
|
|
746
776
|
hit = f === p;
|
|
@@ -753,38 +783,17 @@ class Minimatch {
|
|
|
753
783
|
if (!hit)
|
|
754
784
|
return false;
|
|
755
785
|
}
|
|
756
|
-
// Note: ending in / means that we'll get a final ""
|
|
757
|
-
// at the end of the pattern. This can only match a
|
|
758
|
-
// corresponding "" at the end of the file.
|
|
759
|
-
// If the file ends in /, then it can only match a
|
|
760
|
-
// a pattern that ends in /, unless the pattern just
|
|
761
|
-
// doesn't have any more for it. But, a/b/ should *not*
|
|
762
|
-
// match "a/b/*", even though "" matches against the
|
|
763
|
-
// [^/]*? pattern, except in partial mode, where it might
|
|
764
|
-
// simply not be reached yet.
|
|
765
|
-
// However, a/b/ should still satisfy a/*
|
|
766
|
-
// now either we fell off the end of the pattern, or we're done.
|
|
767
786
|
if (fi === fl && pi === pl) {
|
|
768
|
-
// ran out of pattern and filename at the same time.
|
|
769
|
-
// an exact hit!
|
|
770
787
|
return true;
|
|
771
788
|
}
|
|
772
789
|
else if (fi === fl) {
|
|
773
|
-
// ran out of file, but still had pattern left.
|
|
774
|
-
// this is ok if we're doing the match as part of
|
|
775
|
-
// a glob fs traversal.
|
|
776
790
|
return partial;
|
|
777
791
|
}
|
|
778
792
|
else if (pi === pl) {
|
|
779
|
-
// ran out of pattern, still have file left.
|
|
780
|
-
// this is only acceptable if we're on the very last
|
|
781
|
-
// empty segment of a file with a trailing slash.
|
|
782
|
-
// a/* should match a/b/
|
|
783
793
|
return fi === fl - 1 && file[fi] === '';
|
|
784
794
|
/* c8 ignore start */
|
|
785
795
|
}
|
|
786
796
|
else {
|
|
787
|
-
// should be unreachable.
|
|
788
797
|
throw new Error('wtf?');
|
|
789
798
|
}
|
|
790
799
|
/* c8 ignore stop */
|