lakutata 2.0.11 → 2.0.13
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/com/database.cjs +13 -3
- package/com/database.mjs +13 -3
- package/com/docker.cjs +6 -2
- package/com/docker.d.ts +39 -11
- package/com/docker.mjs +6 -2
- package/com/logger.cjs +2 -2
- package/com/logger.mjs +2 -2
- package/decorator/orm.cjs +21 -11
- package/decorator/orm.mjs +13 -3
- package/helper.cjs +12 -12
- package/helper.d.ts +559 -82
- package/helper.mjs +5 -5
- package/lakutata.cjs +2 -2
- package/lakutata.mjs +2 -2
- package/orm.cjs +13 -3
- package/orm.mjs +39 -29
- package/package.json +2 -4
- package/src/components/Database.cjs +17 -7
- package/src/components/Database.mjs +13 -3
- package/src/components/Logger.cjs +2 -2
- package/src/components/Logger.mjs +2 -2
- package/src/components/docker/ConnectionOptionsBuilder.cjs +6 -2
- package/src/components/docker/ConnectionOptionsBuilder.mjs +6 -2
- package/src/components/docker/Docker.cjs +10 -3
- package/src/components/docker/Docker.mjs +10 -3
- package/src/components/docker/lib/DockerContainer.cjs +10 -6
- package/src/components/docker/lib/DockerContainer.mjs +6 -2
- package/src/components/docker/lib/DockerContainerTTY.cjs +6 -2
- package/src/components/docker/lib/DockerContainerTTY.mjs +6 -2
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +4 -0
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +4 -0
- package/src/decorators/orm/AfterInsert.cjs +13 -3
- package/src/decorators/orm/AfterInsert.mjs +17 -7
- package/src/decorators/orm/AfterLoad.cjs +17 -7
- package/src/decorators/orm/AfterLoad.mjs +13 -3
- package/src/decorators/orm/AfterRecover.cjs +17 -7
- package/src/decorators/orm/AfterRecover.mjs +17 -7
- package/src/decorators/orm/AfterRemove.cjs +17 -7
- package/src/decorators/orm/AfterRemove.mjs +22 -12
- package/src/decorators/orm/AfterSoftRemove.cjs +13 -3
- package/src/decorators/orm/AfterSoftRemove.mjs +24 -14
- package/src/decorators/orm/AfterUpdate.cjs +13 -3
- package/src/decorators/orm/AfterUpdate.mjs +22 -12
- package/src/decorators/orm/BeforeInsert.cjs +17 -7
- package/src/decorators/orm/BeforeInsert.mjs +17 -7
- package/src/decorators/orm/BeforeRecover.cjs +17 -7
- package/src/decorators/orm/BeforeRecover.mjs +22 -12
- package/src/decorators/orm/BeforeRemove.cjs +17 -7
- package/src/decorators/orm/BeforeRemove.mjs +17 -7
- package/src/decorators/orm/BeforeSoftRemove.cjs +17 -7
- package/src/decorators/orm/BeforeSoftRemove.mjs +23 -13
- package/src/decorators/orm/BeforeUpdate.cjs +17 -7
- package/src/decorators/orm/BeforeUpdate.mjs +22 -12
- package/src/decorators/orm/Check.cjs +18 -8
- package/src/decorators/orm/Check.mjs +13 -3
- package/src/decorators/orm/ChildEntity.cjs +13 -3
- package/src/decorators/orm/ChildEntity.mjs +13 -3
- package/src/decorators/orm/Column.cjs +29 -19
- package/src/decorators/orm/Column.mjs +23 -13
- package/src/decorators/orm/CreateDateColumn.cjs +19 -9
- package/src/decorators/orm/CreateDateColumn.mjs +24 -14
- package/src/decorators/orm/DeleteDateColumn.cjs +19 -9
- package/src/decorators/orm/DeleteDateColumn.mjs +23 -13
- package/src/decorators/orm/Entity.cjs +26 -16
- package/src/decorators/orm/Entity.mjs +32 -22
- package/src/decorators/orm/EventSubscriber.cjs +13 -3
- package/src/decorators/orm/EventSubscriber.mjs +18 -8
- package/src/decorators/orm/Exclusion.cjs +21 -11
- package/src/decorators/orm/Exclusion.mjs +21 -11
- package/src/decorators/orm/Generated.cjs +13 -3
- package/src/decorators/orm/Generated.mjs +13 -3
- package/src/decorators/orm/Index.cjs +22 -12
- package/src/decorators/orm/Index.mjs +27 -17
- package/src/decorators/orm/JoinColumn.cjs +19 -9
- package/src/decorators/orm/JoinColumn.mjs +27 -17
- package/src/decorators/orm/JoinTable.cjs +13 -3
- package/src/decorators/orm/JoinTable.mjs +29 -19
- package/src/decorators/orm/ManyToMany.cjs +25 -15
- package/src/decorators/orm/ManyToMany.mjs +26 -16
- package/src/decorators/orm/ManyToOne.cjs +25 -15
- package/src/decorators/orm/ManyToOne.mjs +26 -16
- package/src/decorators/orm/ObjectIdColumn.cjs +13 -3
- package/src/decorators/orm/ObjectIdColumn.mjs +26 -16
- package/src/decorators/orm/OneToMany.cjs +21 -11
- package/src/decorators/orm/OneToMany.mjs +22 -12
- package/src/decorators/orm/OneToOne.cjs +16 -6
- package/src/decorators/orm/OneToOne.mjs +36 -26
- package/src/decorators/orm/PrimaryColumn.cjs +22 -12
- package/src/decorators/orm/PrimaryColumn.mjs +24 -14
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +32 -22
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +18 -8
- package/src/decorators/orm/RelationId.cjs +19 -9
- package/src/decorators/orm/RelationId.mjs +18 -8
- package/src/decorators/orm/TableInheritance.cjs +17 -7
- package/src/decorators/orm/TableInheritance.mjs +26 -16
- package/src/decorators/orm/Tree.cjs +13 -3
- package/src/decorators/orm/Tree.mjs +26 -16
- package/src/decorators/orm/TreeChildren.cjs +15 -5
- package/src/decorators/orm/TreeChildren.mjs +18 -8
- package/src/decorators/orm/TreeLevelColumn.cjs +13 -3
- package/src/decorators/orm/TreeLevelColumn.mjs +20 -10
- package/src/decorators/orm/TreeParent.cjs +19 -9
- package/src/decorators/orm/TreeParent.mjs +13 -3
- package/src/decorators/orm/Unique.cjs +29 -19
- package/src/decorators/orm/Unique.mjs +30 -20
- package/src/decorators/orm/UpdateDateColumn.cjs +19 -9
- package/src/decorators/orm/UpdateDateColumn.mjs +25 -15
- package/src/decorators/orm/VersionColumn.cjs +13 -3
- package/src/decorators/orm/VersionColumn.mjs +26 -16
- package/src/decorators/orm/ViewColumn.cjs +13 -3
- package/src/decorators/orm/ViewColumn.mjs +26 -16
- package/src/decorators/orm/ViewEntity.cjs +27 -17
- package/src/decorators/orm/ViewEntity.mjs +19 -9
- package/src/decorators/orm/VirtualColumn.cjs +18 -8
- package/src/decorators/orm/VirtualColumn.mjs +30 -20
- package/src/lib/base/internal/PatternManager.cjs +2 -2
- package/src/lib/base/internal/PatternManager.mjs +2 -2
- package/src/lib/core/Application.cjs +2 -2
- package/src/lib/core/Application.mjs +2 -2
- package/src/lib/helpers/Glob.cjs +1220 -1149
- package/src/lib/helpers/Glob.mjs +769 -700
- package/src/lib/helpers/IsXML.cjs +863 -801
- package/src/lib/helpers/IsXML.mjs +862 -800
- package/src/lib/ioc/ListModules.cjs +967 -909
- package/src/lib/ioc/ListModules.mjs +849 -791
- package/src/lib/validation/VLD.cjs +20 -10
- package/src/lib/validation/VLD.mjs +20 -10
- package/vendor/Package.1.cjs +170 -129
- package/vendor/Package.1.mjs +169 -128
- package/vendor/Package.13.cjs +0 -2
- package/vendor/Package.13.mjs +0 -2
- package/vendor/Package.14.cjs +8748 -8652
- package/vendor/Package.14.mjs +8665 -8581
- package/vendor/Package.16.cjs +36855 -15590
- package/vendor/Package.16.mjs +36893 -15633
- package/vendor/Package.2.cjs +2442 -2440
- package/vendor/Package.2.mjs +444 -442
- package/vendor/Package.4.cjs +325 -319
- package/vendor/Package.4.mjs +326 -320
- package/vendor/Package.7.cjs +299 -299
- package/vendor/Package.7.mjs +299 -299
- package/vendor/TypeDef.5.d.ts +6 -0
|
@@ -189,21 +189,21 @@ let T = class DirentFromStats {
|
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
191
|
|
|
192
|
-
function
|
|
192
|
+
function O(t, e) {
|
|
193
193
|
return new T(t, e);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
w = C.createDirentFromStats =
|
|
196
|
+
w = C.createDirentFromStats = O;
|
|
197
197
|
|
|
198
|
-
var
|
|
198
|
+
var k = {};
|
|
199
199
|
|
|
200
200
|
"use strict";
|
|
201
201
|
|
|
202
|
-
Object.defineProperty(
|
|
202
|
+
Object.defineProperty(k, "__esModule", {
|
|
203
203
|
value: true
|
|
204
204
|
});
|
|
205
205
|
|
|
206
|
-
var L =
|
|
206
|
+
var L = k.convertPosixPathToPattern = tt = k.convertWindowsPathToPattern = z = k.convertPathToPattern = Z = k.escapePosixPath = X = k.escapeWindowsPath = V = k.escape = K = k.removeLeadingDotSegment = U = k.makeAbsolute = G = k.unixify = void 0;
|
|
207
207
|
|
|
208
208
|
const H = f.default;
|
|
209
209
|
|
|
@@ -211,9 +211,9 @@ const D = p.default;
|
|
|
211
211
|
|
|
212
212
|
const F = H.platform() === "win32";
|
|
213
213
|
|
|
214
|
-
const
|
|
214
|
+
const M = 2;
|
|
215
215
|
|
|
216
|
-
const
|
|
216
|
+
const $ = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
217
217
|
|
|
218
218
|
const j = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
219
219
|
|
|
@@ -225,53 +225,53 @@ function B(t) {
|
|
|
225
225
|
return t.replace(/\\/g, "/");
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
var G =
|
|
228
|
+
var G = k.unixify = B;
|
|
229
229
|
|
|
230
230
|
function q(t, e) {
|
|
231
231
|
return D.resolve(t, e);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
var U =
|
|
234
|
+
var U = k.makeAbsolute = q;
|
|
235
235
|
|
|
236
236
|
function W(t) {
|
|
237
237
|
if (t.charAt(0) === ".") {
|
|
238
238
|
const e = t.charAt(1);
|
|
239
239
|
if (e === "/" || e === "\\") {
|
|
240
|
-
return t.slice(
|
|
240
|
+
return t.slice(M);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
return t;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
var K =
|
|
246
|
+
var K = k.removeLeadingDotSegment = W;
|
|
247
247
|
|
|
248
|
-
var V =
|
|
248
|
+
var V = k.escape = F ? Q : Y;
|
|
249
249
|
|
|
250
250
|
function Q(t) {
|
|
251
251
|
return t.replace(j, "\\$2");
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
var X =
|
|
254
|
+
var X = k.escapeWindowsPath = Q;
|
|
255
255
|
|
|
256
256
|
function Y(t) {
|
|
257
|
-
return t.replace(
|
|
257
|
+
return t.replace($, "\\$2");
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
var Z =
|
|
260
|
+
var Z = k.escapePosixPath = Y;
|
|
261
261
|
|
|
262
|
-
var z =
|
|
262
|
+
var z = k.convertPathToPattern = F ? J : et;
|
|
263
263
|
|
|
264
264
|
function J(t) {
|
|
265
265
|
return Q(t).replace(I, "//$1").replace(N, "/");
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
var tt =
|
|
268
|
+
var tt = k.convertWindowsPathToPattern = J;
|
|
269
269
|
|
|
270
270
|
function et(t) {
|
|
271
271
|
return Y(t);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
L =
|
|
274
|
+
L = k.convertPosixPathToPattern = et;
|
|
275
275
|
|
|
276
276
|
var rt = {};
|
|
277
277
|
|
|
@@ -332,7 +332,7 @@ var ht = {};
|
|
|
332
332
|
return (Number(r) - Number(e)) / Number(n) >= s;
|
|
333
333
|
};
|
|
334
334
|
t.escapeNode = (t, e = 0, r) => {
|
|
335
|
-
|
|
335
|
+
const n = t.nodes[e];
|
|
336
336
|
if (!n) return;
|
|
337
337
|
if (r && n.type === r || n.type === "open" || n.type === "close") {
|
|
338
338
|
if (n.escaped !== true) {
|
|
@@ -377,8 +377,14 @@ var ht = {};
|
|
|
377
377
|
const e = [];
|
|
378
378
|
const r = t => {
|
|
379
379
|
for (let n = 0; n < t.length; n++) {
|
|
380
|
-
|
|
381
|
-
Array.isArray(s)
|
|
380
|
+
const s = t[n];
|
|
381
|
+
if (Array.isArray(s)) {
|
|
382
|
+
r(s);
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
if (s !== undefined) {
|
|
386
|
+
e.push(s);
|
|
387
|
+
}
|
|
382
388
|
}
|
|
383
389
|
return e;
|
|
384
390
|
};
|
|
@@ -394,9 +400,9 @@ const dt = t.getDefaultExportFromCjs(ht);
|
|
|
394
400
|
const _t = ht;
|
|
395
401
|
|
|
396
402
|
var gt = (t, e = {}) => {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
403
|
+
const r = (t, n = {}) => {
|
|
404
|
+
const s = e.escapeInvalid && _t.isInvalidBrace(n);
|
|
405
|
+
const i = t.invalid === true && e.escapeInvalid === true;
|
|
400
406
|
let o = "";
|
|
401
407
|
if (t.value) {
|
|
402
408
|
if ((s || i) && _t.isOpenOrClose(t)) {
|
|
@@ -408,7 +414,7 @@ var gt = (t, e = {}) => {
|
|
|
408
414
|
return t.value;
|
|
409
415
|
}
|
|
410
416
|
if (t.nodes) {
|
|
411
|
-
for (
|
|
417
|
+
for (const e of t.nodes) {
|
|
412
418
|
o += r(e);
|
|
413
419
|
}
|
|
414
420
|
}
|
|
@@ -518,18 +524,18 @@ function At(t, e, r) {
|
|
|
518
524
|
function bt(t, e) {
|
|
519
525
|
let r = 1;
|
|
520
526
|
let n = 1;
|
|
521
|
-
let s =
|
|
527
|
+
let s = Ot(t, r);
|
|
522
528
|
let i = new Set([ e ]);
|
|
523
529
|
while (t <= s && s <= e) {
|
|
524
530
|
i.add(s);
|
|
525
531
|
r += 1;
|
|
526
|
-
s =
|
|
532
|
+
s = Ot(t, r);
|
|
527
533
|
}
|
|
528
|
-
s =
|
|
534
|
+
s = kt(e + 1, n) - 1;
|
|
529
535
|
while (t < s && s <= e) {
|
|
530
536
|
i.add(s);
|
|
531
537
|
n += 1;
|
|
532
|
-
s =
|
|
538
|
+
s = kt(e + 1, n) - 1;
|
|
533
539
|
}
|
|
534
540
|
i = [ ...i ];
|
|
535
541
|
i.sort(wt);
|
|
@@ -625,11 +631,11 @@ function Tt(t, e, r) {
|
|
|
625
631
|
return t.some((t => t[e] === r));
|
|
626
632
|
}
|
|
627
633
|
|
|
628
|
-
function
|
|
634
|
+
function Ot(t, e) {
|
|
629
635
|
return Number(String(t).slice(0, -e) + "9".repeat(e));
|
|
630
636
|
}
|
|
631
637
|
|
|
632
|
-
function
|
|
638
|
+
function kt(t, e) {
|
|
633
639
|
return t - t % Math.pow(10, e);
|
|
634
640
|
}
|
|
635
641
|
|
|
@@ -676,15 +682,15 @@ Et.cache = {};
|
|
|
676
682
|
|
|
677
683
|
Et.clearCache = () => Et.cache = {};
|
|
678
684
|
|
|
679
|
-
var
|
|
685
|
+
var Mt = Et;
|
|
680
686
|
|
|
681
|
-
const
|
|
687
|
+
const $t = t.getDefaultExportFromCjs(Mt);
|
|
682
688
|
|
|
683
689
|
"use strict";
|
|
684
690
|
|
|
685
691
|
const jt = h.default;
|
|
686
692
|
|
|
687
|
-
const It =
|
|
693
|
+
const It = Mt;
|
|
688
694
|
|
|
689
695
|
const Nt = t => t !== null && typeof t === "object" && !Array.isArray(t);
|
|
690
696
|
|
|
@@ -732,28 +738,28 @@ const Vt = (t, e) => {
|
|
|
732
738
|
return r ? "-" + t : t;
|
|
733
739
|
};
|
|
734
740
|
|
|
735
|
-
const Qt = (t, e) => {
|
|
741
|
+
const Qt = (t, e, r) => {
|
|
736
742
|
t.negatives.sort(((t, e) => t < e ? -1 : t > e ? 1 : 0));
|
|
737
743
|
t.positives.sort(((t, e) => t < e ? -1 : t > e ? 1 : 0));
|
|
738
|
-
let
|
|
739
|
-
let n = "";
|
|
744
|
+
let n = e.capture ? "" : "?:";
|
|
740
745
|
let s = "";
|
|
741
|
-
let i;
|
|
746
|
+
let i = "";
|
|
747
|
+
let o;
|
|
742
748
|
if (t.positives.length) {
|
|
743
|
-
|
|
749
|
+
s = t.positives.map((t => Vt(String(t), r))).join("|");
|
|
744
750
|
}
|
|
745
751
|
if (t.negatives.length) {
|
|
746
|
-
|
|
752
|
+
i = `-(${n}${t.negatives.map((t => Vt(String(t), r))).join("|")})`;
|
|
747
753
|
}
|
|
748
|
-
if (
|
|
749
|
-
|
|
754
|
+
if (s && i) {
|
|
755
|
+
o = `${s}|${i}`;
|
|
750
756
|
} else {
|
|
751
|
-
|
|
757
|
+
o = s || i;
|
|
752
758
|
}
|
|
753
759
|
if (e.wrap) {
|
|
754
|
-
return `(${
|
|
760
|
+
return `(${n}${o})`;
|
|
755
761
|
}
|
|
756
|
-
return
|
|
762
|
+
return o;
|
|
757
763
|
};
|
|
758
764
|
|
|
759
765
|
const Xt = (t, e, r, n) => {
|
|
@@ -830,7 +836,7 @@ const te = (t, e, r = 1, n = {}) => {
|
|
|
830
836
|
y++;
|
|
831
837
|
}
|
|
832
838
|
if (n.toRegex === true) {
|
|
833
|
-
return r > 1 ? Qt(d, n) : Yt(g, null, {
|
|
839
|
+
return r > 1 ? Qt(d, n, f) : Yt(g, null, {
|
|
834
840
|
wrap: false,
|
|
835
841
|
...n
|
|
836
842
|
});
|
|
@@ -908,16 +914,17 @@ const ie = ne;
|
|
|
908
914
|
const oe = ht;
|
|
909
915
|
|
|
910
916
|
const ae = (t, e = {}) => {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
917
|
+
const r = (t, n = {}) => {
|
|
918
|
+
const s = oe.isInvalidBrace(n);
|
|
919
|
+
const i = t.invalid === true && e.escapeInvalid === true;
|
|
920
|
+
const o = s === true || i === true;
|
|
921
|
+
const a = e.escapeInvalid === true ? "\\" : "";
|
|
916
922
|
let u = "";
|
|
917
923
|
if (t.isOpen === true) {
|
|
918
924
|
return a + t.value;
|
|
919
925
|
}
|
|
920
926
|
if (t.isClose === true) {
|
|
927
|
+
console.log("node.isClose", a, t.value);
|
|
921
928
|
return a + t.value;
|
|
922
929
|
}
|
|
923
930
|
if (t.type === "open") {
|
|
@@ -933,18 +940,19 @@ const ae = (t, e = {}) => {
|
|
|
933
940
|
return t.value;
|
|
934
941
|
}
|
|
935
942
|
if (t.nodes && t.ranges > 0) {
|
|
936
|
-
|
|
937
|
-
|
|
943
|
+
const r = oe.reduce(t.nodes);
|
|
944
|
+
const n = ie(...r, {
|
|
938
945
|
...e,
|
|
939
946
|
wrap: false,
|
|
940
|
-
toRegex: true
|
|
947
|
+
toRegex: true,
|
|
948
|
+
strictZeros: true
|
|
941
949
|
});
|
|
942
950
|
if (n.length !== 0) {
|
|
943
951
|
return r.length > 1 && n.length > 1 ? `(${n})` : n;
|
|
944
952
|
}
|
|
945
953
|
}
|
|
946
954
|
if (t.nodes) {
|
|
947
|
-
for (
|
|
955
|
+
for (const e of t.nodes) {
|
|
948
956
|
u += r(e, t);
|
|
949
957
|
}
|
|
950
958
|
}
|
|
@@ -966,16 +974,16 @@ const fe = gt;
|
|
|
966
974
|
const pe = ht;
|
|
967
975
|
|
|
968
976
|
const he = (t = "", e = "", r = false) => {
|
|
969
|
-
|
|
977
|
+
const n = [];
|
|
970
978
|
t = [].concat(t);
|
|
971
979
|
e = [].concat(e);
|
|
972
980
|
if (!e.length) return t;
|
|
973
981
|
if (!t.length) {
|
|
974
982
|
return r ? pe.flatten(e).map((t => `{${t}}`)) : e;
|
|
975
983
|
}
|
|
976
|
-
for (
|
|
984
|
+
for (const s of t) {
|
|
977
985
|
if (Array.isArray(s)) {
|
|
978
|
-
for (
|
|
986
|
+
for (const t of s) {
|
|
979
987
|
n.push(he(t, e, r));
|
|
980
988
|
}
|
|
981
989
|
} else {
|
|
@@ -989,8 +997,8 @@ const he = (t = "", e = "", r = false) => {
|
|
|
989
997
|
};
|
|
990
998
|
|
|
991
999
|
const de = (t, e = {}) => {
|
|
992
|
-
|
|
993
|
-
|
|
1000
|
+
const r = e.rangeLimit === undefined ? 1e3 : e.rangeLimit;
|
|
1001
|
+
const n = (t, s = {}) => {
|
|
994
1002
|
t.queue = [];
|
|
995
1003
|
let i = s;
|
|
996
1004
|
let o = s.queue;
|
|
@@ -1007,7 +1015,7 @@ const de = (t, e = {}) => {
|
|
|
1007
1015
|
return;
|
|
1008
1016
|
}
|
|
1009
1017
|
if (t.nodes && t.ranges > 0) {
|
|
1010
|
-
|
|
1018
|
+
const n = pe.reduce(t.nodes);
|
|
1011
1019
|
if (pe.exceedsLimit(...n, e.step, r)) {
|
|
1012
1020
|
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
1013
1021
|
}
|
|
@@ -1019,7 +1027,7 @@ const de = (t, e = {}) => {
|
|
|
1019
1027
|
t.nodes = [];
|
|
1020
1028
|
return;
|
|
1021
1029
|
}
|
|
1022
|
-
|
|
1030
|
+
const a = pe.encloseBrace(t);
|
|
1023
1031
|
let u = t.queue;
|
|
1024
1032
|
let c = t;
|
|
1025
1033
|
while (c.type !== "brace" && c.type !== "root" && c.parent) {
|
|
@@ -1027,7 +1035,7 @@ const de = (t, e = {}) => {
|
|
|
1027
1035
|
u = c.queue;
|
|
1028
1036
|
}
|
|
1029
1037
|
for (let e = 0; e < t.nodes.length; e++) {
|
|
1030
|
-
|
|
1038
|
+
const r = t.nodes[e];
|
|
1031
1039
|
if (r.type === "comma" && t.type === "brace") {
|
|
1032
1040
|
if (e === 1) u.push("");
|
|
1033
1041
|
u.push("");
|
|
@@ -1057,7 +1065,7 @@ const ge = t.getDefaultExportFromCjs(_e);
|
|
|
1057
1065
|
"use strict";
|
|
1058
1066
|
|
|
1059
1067
|
var ye = {
|
|
1060
|
-
MAX_LENGTH:
|
|
1068
|
+
MAX_LENGTH: 1e4,
|
|
1061
1069
|
CHAR_0: "0",
|
|
1062
1070
|
CHAR_9: "9",
|
|
1063
1071
|
CHAR_UPPERCASE_A: "A",
|
|
@@ -1110,33 +1118,32 @@ const ve = t.getDefaultExportFromCjs(ye);
|
|
|
1110
1118
|
|
|
1111
1119
|
const me = gt;
|
|
1112
1120
|
|
|
1113
|
-
const {MAX_LENGTH: Se, CHAR_BACKSLASH: Ee, CHAR_BACKTICK: Ae, CHAR_COMMA: be, CHAR_DOT: Re, CHAR_LEFT_PARENTHESES: Pe, CHAR_RIGHT_PARENTHESES: xe, CHAR_LEFT_CURLY_BRACE: Ce, CHAR_RIGHT_CURLY_BRACE: we, CHAR_LEFT_SQUARE_BRACKET: Te, CHAR_RIGHT_SQUARE_BRACKET:
|
|
1121
|
+
const {MAX_LENGTH: Se, CHAR_BACKSLASH: Ee, CHAR_BACKTICK: Ae, CHAR_COMMA: be, CHAR_DOT: Re, CHAR_LEFT_PARENTHESES: Pe, CHAR_RIGHT_PARENTHESES: xe, CHAR_LEFT_CURLY_BRACE: Ce, CHAR_RIGHT_CURLY_BRACE: we, CHAR_LEFT_SQUARE_BRACKET: Te, CHAR_RIGHT_SQUARE_BRACKET: Oe, CHAR_DOUBLE_QUOTE: ke, CHAR_SINGLE_QUOTE: Le, CHAR_NO_BREAK_SPACE: He, CHAR_ZERO_WIDTH_NOBREAK_SPACE: De} = ye;
|
|
1114
1122
|
|
|
1115
1123
|
const Fe = (t, e = {}) => {
|
|
1116
1124
|
if (typeof t !== "string") {
|
|
1117
1125
|
throw new TypeError("Expected a string");
|
|
1118
1126
|
}
|
|
1119
|
-
|
|
1120
|
-
|
|
1127
|
+
const r = e || {};
|
|
1128
|
+
const n = typeof r.maxLength === "number" ? Math.min(Se, r.maxLength) : Se;
|
|
1121
1129
|
if (t.length > n) {
|
|
1122
1130
|
throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);
|
|
1123
1131
|
}
|
|
1124
|
-
|
|
1132
|
+
const s = {
|
|
1125
1133
|
type: "root",
|
|
1126
1134
|
input: t,
|
|
1127
1135
|
nodes: []
|
|
1128
1136
|
};
|
|
1129
|
-
|
|
1137
|
+
const i = [ s ];
|
|
1130
1138
|
let o = s;
|
|
1131
1139
|
let a = s;
|
|
1132
1140
|
let u = 0;
|
|
1133
|
-
|
|
1141
|
+
const c = t.length;
|
|
1134
1142
|
let l = 0;
|
|
1135
1143
|
let f = 0;
|
|
1136
1144
|
let p;
|
|
1137
|
-
|
|
1138
|
-
const d =
|
|
1139
|
-
const _ = t => {
|
|
1145
|
+
const h = () => t[l++];
|
|
1146
|
+
const d = t => {
|
|
1140
1147
|
if (t.type === "text" && a.type === "dot") {
|
|
1141
1148
|
a.type = "text";
|
|
1142
1149
|
}
|
|
@@ -1150,24 +1157,24 @@ const Fe = (t, e = {}) => {
|
|
|
1150
1157
|
a = t;
|
|
1151
1158
|
return t;
|
|
1152
1159
|
};
|
|
1153
|
-
|
|
1160
|
+
d({
|
|
1154
1161
|
type: "bos"
|
|
1155
1162
|
});
|
|
1156
1163
|
while (l < c) {
|
|
1157
1164
|
o = i[i.length - 1];
|
|
1158
|
-
p =
|
|
1165
|
+
p = h();
|
|
1159
1166
|
if (p === De || p === He) {
|
|
1160
1167
|
continue;
|
|
1161
1168
|
}
|
|
1162
1169
|
if (p === Ee) {
|
|
1163
|
-
|
|
1170
|
+
d({
|
|
1164
1171
|
type: "text",
|
|
1165
|
-
value: (e.keepEscaping ? p : "") +
|
|
1172
|
+
value: (e.keepEscaping ? p : "") + h()
|
|
1166
1173
|
});
|
|
1167
1174
|
continue;
|
|
1168
1175
|
}
|
|
1169
|
-
if (p ===
|
|
1170
|
-
|
|
1176
|
+
if (p === Oe) {
|
|
1177
|
+
d({
|
|
1171
1178
|
type: "text",
|
|
1172
1179
|
value: "\\" + p
|
|
1173
1180
|
});
|
|
@@ -1175,38 +1182,37 @@ const Fe = (t, e = {}) => {
|
|
|
1175
1182
|
}
|
|
1176
1183
|
if (p === Te) {
|
|
1177
1184
|
u++;
|
|
1178
|
-
let t
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
if (e === Te) {
|
|
1185
|
+
let t;
|
|
1186
|
+
while (l < c && (t = h())) {
|
|
1187
|
+
p += t;
|
|
1188
|
+
if (t === Te) {
|
|
1183
1189
|
u++;
|
|
1184
1190
|
continue;
|
|
1185
1191
|
}
|
|
1186
|
-
if (
|
|
1187
|
-
p +=
|
|
1192
|
+
if (t === Ee) {
|
|
1193
|
+
p += h();
|
|
1188
1194
|
continue;
|
|
1189
1195
|
}
|
|
1190
|
-
if (
|
|
1196
|
+
if (t === Oe) {
|
|
1191
1197
|
u--;
|
|
1192
1198
|
if (u === 0) {
|
|
1193
1199
|
break;
|
|
1194
1200
|
}
|
|
1195
1201
|
}
|
|
1196
1202
|
}
|
|
1197
|
-
|
|
1203
|
+
d({
|
|
1198
1204
|
type: "text",
|
|
1199
1205
|
value: p
|
|
1200
1206
|
});
|
|
1201
1207
|
continue;
|
|
1202
1208
|
}
|
|
1203
1209
|
if (p === Pe) {
|
|
1204
|
-
o =
|
|
1210
|
+
o = d({
|
|
1205
1211
|
type: "paren",
|
|
1206
1212
|
nodes: []
|
|
1207
1213
|
});
|
|
1208
1214
|
i.push(o);
|
|
1209
|
-
|
|
1215
|
+
d({
|
|
1210
1216
|
type: "text",
|
|
1211
1217
|
value: p
|
|
1212
1218
|
});
|
|
@@ -1214,29 +1220,29 @@ const Fe = (t, e = {}) => {
|
|
|
1214
1220
|
}
|
|
1215
1221
|
if (p === xe) {
|
|
1216
1222
|
if (o.type !== "paren") {
|
|
1217
|
-
|
|
1223
|
+
d({
|
|
1218
1224
|
type: "text",
|
|
1219
1225
|
value: p
|
|
1220
1226
|
});
|
|
1221
1227
|
continue;
|
|
1222
1228
|
}
|
|
1223
1229
|
o = i.pop();
|
|
1224
|
-
|
|
1230
|
+
d({
|
|
1225
1231
|
type: "text",
|
|
1226
1232
|
value: p
|
|
1227
1233
|
});
|
|
1228
1234
|
o = i[i.length - 1];
|
|
1229
1235
|
continue;
|
|
1230
1236
|
}
|
|
1231
|
-
if (p ===
|
|
1232
|
-
|
|
1237
|
+
if (p === ke || p === Le || p === Ae) {
|
|
1238
|
+
const t = p;
|
|
1233
1239
|
let r;
|
|
1234
1240
|
if (e.keepQuotes !== true) {
|
|
1235
1241
|
p = "";
|
|
1236
1242
|
}
|
|
1237
|
-
while (l < c && (r =
|
|
1243
|
+
while (l < c && (r = h())) {
|
|
1238
1244
|
if (r === Ee) {
|
|
1239
|
-
p += r +
|
|
1245
|
+
p += r + h();
|
|
1240
1246
|
continue;
|
|
1241
1247
|
}
|
|
1242
1248
|
if (r === t) {
|
|
@@ -1245,7 +1251,7 @@ const Fe = (t, e = {}) => {
|
|
|
1245
1251
|
}
|
|
1246
1252
|
p += r;
|
|
1247
1253
|
}
|
|
1248
|
-
|
|
1254
|
+
d({
|
|
1249
1255
|
type: "text",
|
|
1250
1256
|
value: p
|
|
1251
1257
|
});
|
|
@@ -1253,8 +1259,8 @@ const Fe = (t, e = {}) => {
|
|
|
1253
1259
|
}
|
|
1254
1260
|
if (p === Ce) {
|
|
1255
1261
|
f++;
|
|
1256
|
-
|
|
1257
|
-
|
|
1262
|
+
const t = a.value && a.value.slice(-1) === "$" || o.dollar === true;
|
|
1263
|
+
const e = {
|
|
1258
1264
|
type: "brace",
|
|
1259
1265
|
open: true,
|
|
1260
1266
|
close: false,
|
|
@@ -1264,9 +1270,9 @@ const Fe = (t, e = {}) => {
|
|
|
1264
1270
|
ranges: 0,
|
|
1265
1271
|
nodes: []
|
|
1266
1272
|
};
|
|
1267
|
-
o =
|
|
1273
|
+
o = d(e);
|
|
1268
1274
|
i.push(o);
|
|
1269
|
-
|
|
1275
|
+
d({
|
|
1270
1276
|
type: "open",
|
|
1271
1277
|
value: p
|
|
1272
1278
|
});
|
|
@@ -1274,16 +1280,16 @@ const Fe = (t, e = {}) => {
|
|
|
1274
1280
|
}
|
|
1275
1281
|
if (p === we) {
|
|
1276
1282
|
if (o.type !== "brace") {
|
|
1277
|
-
|
|
1283
|
+
d({
|
|
1278
1284
|
type: "text",
|
|
1279
1285
|
value: p
|
|
1280
1286
|
});
|
|
1281
1287
|
continue;
|
|
1282
1288
|
}
|
|
1283
|
-
|
|
1289
|
+
const t = "close";
|
|
1284
1290
|
o = i.pop();
|
|
1285
1291
|
o.close = true;
|
|
1286
|
-
|
|
1292
|
+
d({
|
|
1287
1293
|
type: t,
|
|
1288
1294
|
value: p
|
|
1289
1295
|
});
|
|
@@ -1294,13 +1300,13 @@ const Fe = (t, e = {}) => {
|
|
|
1294
1300
|
if (p === be && f > 0) {
|
|
1295
1301
|
if (o.ranges > 0) {
|
|
1296
1302
|
o.ranges = 0;
|
|
1297
|
-
|
|
1303
|
+
const t = o.nodes.shift();
|
|
1298
1304
|
o.nodes = [ t, {
|
|
1299
1305
|
type: "text",
|
|
1300
1306
|
value: me(o)
|
|
1301
1307
|
} ];
|
|
1302
1308
|
}
|
|
1303
|
-
|
|
1309
|
+
d({
|
|
1304
1310
|
type: "comma",
|
|
1305
1311
|
value: p
|
|
1306
1312
|
});
|
|
@@ -1308,9 +1314,9 @@ const Fe = (t, e = {}) => {
|
|
|
1308
1314
|
continue;
|
|
1309
1315
|
}
|
|
1310
1316
|
if (p === Re && f > 0 && o.commas === 0) {
|
|
1311
|
-
|
|
1317
|
+
const t = o.nodes;
|
|
1312
1318
|
if (f === 0 || t.length === 0) {
|
|
1313
|
-
|
|
1319
|
+
d({
|
|
1314
1320
|
type: "text",
|
|
1315
1321
|
value: p
|
|
1316
1322
|
});
|
|
@@ -1332,19 +1338,19 @@ const Fe = (t, e = {}) => {
|
|
|
1332
1338
|
}
|
|
1333
1339
|
if (a.type === "range") {
|
|
1334
1340
|
t.pop();
|
|
1335
|
-
|
|
1341
|
+
const e = t[t.length - 1];
|
|
1336
1342
|
e.value += a.value + p;
|
|
1337
1343
|
a = e;
|
|
1338
1344
|
o.ranges--;
|
|
1339
1345
|
continue;
|
|
1340
1346
|
}
|
|
1341
|
-
|
|
1347
|
+
d({
|
|
1342
1348
|
type: "dot",
|
|
1343
1349
|
value: p
|
|
1344
1350
|
});
|
|
1345
1351
|
continue;
|
|
1346
1352
|
}
|
|
1347
|
-
|
|
1353
|
+
d({
|
|
1348
1354
|
type: "text",
|
|
1349
1355
|
value: p
|
|
1350
1356
|
});
|
|
@@ -1360,20 +1366,20 @@ const Fe = (t, e = {}) => {
|
|
|
1360
1366
|
t.invalid = true;
|
|
1361
1367
|
}
|
|
1362
1368
|
}));
|
|
1363
|
-
|
|
1364
|
-
|
|
1369
|
+
const t = i[i.length - 1];
|
|
1370
|
+
const e = t.nodes.indexOf(o);
|
|
1365
1371
|
t.nodes.splice(e, 1, ...o.nodes);
|
|
1366
1372
|
}
|
|
1367
1373
|
} while (i.length > 0);
|
|
1368
|
-
|
|
1374
|
+
d({
|
|
1369
1375
|
type: "eos"
|
|
1370
1376
|
});
|
|
1371
1377
|
return s;
|
|
1372
1378
|
};
|
|
1373
1379
|
|
|
1374
|
-
var
|
|
1380
|
+
var Me = Fe;
|
|
1375
1381
|
|
|
1376
|
-
const
|
|
1382
|
+
const $e = t.getDefaultExportFromCjs(Me);
|
|
1377
1383
|
|
|
1378
1384
|
"use strict";
|
|
1379
1385
|
|
|
@@ -1383,13 +1389,13 @@ const Ie = ue;
|
|
|
1383
1389
|
|
|
1384
1390
|
const Ne = _e;
|
|
1385
1391
|
|
|
1386
|
-
const Be =
|
|
1392
|
+
const Be = Me;
|
|
1387
1393
|
|
|
1388
1394
|
const Ge = (t, e = {}) => {
|
|
1389
1395
|
let r = [];
|
|
1390
1396
|
if (Array.isArray(t)) {
|
|
1391
|
-
for (
|
|
1392
|
-
|
|
1397
|
+
for (const n of t) {
|
|
1398
|
+
const t = Ge.create(n, e);
|
|
1393
1399
|
if (Array.isArray(t)) {
|
|
1394
1400
|
r.push(...t);
|
|
1395
1401
|
} else {
|
|
@@ -1685,7 +1691,7 @@ const _r = t.getDefaultExportFromCjs(We);
|
|
|
1685
1691
|
|
|
1686
1692
|
const gr = We;
|
|
1687
1693
|
|
|
1688
|
-
const {CHAR_ASTERISK: yr, CHAR_AT: vr, CHAR_BACKWARD_SLASH: mr, CHAR_COMMA: Sr, CHAR_DOT: Er, CHAR_EXCLAMATION_MARK: Ar, CHAR_FORWARD_SLASH: br, CHAR_LEFT_CURLY_BRACE: Rr, CHAR_LEFT_PARENTHESES: Pr, CHAR_LEFT_SQUARE_BRACKET: xr, CHAR_PLUS: Cr, CHAR_QUESTION_MARK: wr, CHAR_RIGHT_CURLY_BRACE: Tr, CHAR_RIGHT_PARENTHESES:
|
|
1694
|
+
const {CHAR_ASTERISK: yr, CHAR_AT: vr, CHAR_BACKWARD_SLASH: mr, CHAR_COMMA: Sr, CHAR_DOT: Er, CHAR_EXCLAMATION_MARK: Ar, CHAR_FORWARD_SLASH: br, CHAR_LEFT_CURLY_BRACE: Rr, CHAR_LEFT_PARENTHESES: Pr, CHAR_LEFT_SQUARE_BRACKET: xr, CHAR_PLUS: Cr, CHAR_QUESTION_MARK: wr, CHAR_RIGHT_CURLY_BRACE: Tr, CHAR_RIGHT_PARENTHESES: Or, CHAR_RIGHT_SQUARE_BRACKET: kr} = hr;
|
|
1689
1695
|
|
|
1690
1696
|
const Lr = t => t === br || t === mr;
|
|
1691
1697
|
|
|
@@ -1818,7 +1824,7 @@ const Dr = (t, e) => {
|
|
|
1818
1824
|
R = w();
|
|
1819
1825
|
continue;
|
|
1820
1826
|
}
|
|
1821
|
-
if (R ===
|
|
1827
|
+
if (R === Or) {
|
|
1822
1828
|
d = P.isGlob = true;
|
|
1823
1829
|
E = true;
|
|
1824
1830
|
break;
|
|
@@ -1853,7 +1859,7 @@ const Dr = (t, e) => {
|
|
|
1853
1859
|
w();
|
|
1854
1860
|
continue;
|
|
1855
1861
|
}
|
|
1856
|
-
if (t ===
|
|
1862
|
+
if (t === kr) {
|
|
1857
1863
|
h = P.isBracket = true;
|
|
1858
1864
|
d = P.isGlob = true;
|
|
1859
1865
|
E = true;
|
|
@@ -1879,7 +1885,7 @@ const Dr = (t, e) => {
|
|
|
1879
1885
|
R = w();
|
|
1880
1886
|
continue;
|
|
1881
1887
|
}
|
|
1882
|
-
if (R ===
|
|
1888
|
+
if (R === Or) {
|
|
1883
1889
|
E = true;
|
|
1884
1890
|
break;
|
|
1885
1891
|
}
|
|
@@ -1901,19 +1907,19 @@ const Dr = (t, e) => {
|
|
|
1901
1907
|
d = false;
|
|
1902
1908
|
}
|
|
1903
1909
|
let T = u;
|
|
1904
|
-
let k = "";
|
|
1905
1910
|
let O = "";
|
|
1911
|
+
let k = "";
|
|
1906
1912
|
if (l > 0) {
|
|
1907
|
-
|
|
1913
|
+
O = u.slice(0, l);
|
|
1908
1914
|
u = u.slice(l);
|
|
1909
1915
|
f -= l;
|
|
1910
1916
|
}
|
|
1911
1917
|
if (T && d === true && f > 0) {
|
|
1912
1918
|
T = u.slice(0, f);
|
|
1913
|
-
|
|
1919
|
+
k = u.slice(f);
|
|
1914
1920
|
} else if (d === true) {
|
|
1915
1921
|
T = "";
|
|
1916
|
-
|
|
1922
|
+
k = u;
|
|
1917
1923
|
} else {
|
|
1918
1924
|
T = u;
|
|
1919
1925
|
}
|
|
@@ -1923,17 +1929,17 @@ const Dr = (t, e) => {
|
|
|
1923
1929
|
}
|
|
1924
1930
|
}
|
|
1925
1931
|
if (r.unescape === true) {
|
|
1926
|
-
if (
|
|
1932
|
+
if (k) k = gr.removeBackslashes(k);
|
|
1927
1933
|
if (T && v === true) {
|
|
1928
1934
|
T = gr.removeBackslashes(T);
|
|
1929
1935
|
}
|
|
1930
1936
|
}
|
|
1931
1937
|
const L = {
|
|
1932
|
-
prefix:
|
|
1938
|
+
prefix: O,
|
|
1933
1939
|
input: t,
|
|
1934
1940
|
start: l,
|
|
1935
1941
|
base: T,
|
|
1936
|
-
glob:
|
|
1942
|
+
glob: k,
|
|
1937
1943
|
isBrace: p,
|
|
1938
1944
|
isBracket: h,
|
|
1939
1945
|
isGlob: d,
|
|
@@ -1958,7 +1964,7 @@ const Dr = (t, e) => {
|
|
|
1958
1964
|
if (r.tokens) {
|
|
1959
1965
|
if (n === 0 && l !== 0) {
|
|
1960
1966
|
o[n].isPrefix = true;
|
|
1961
|
-
o[n].value =
|
|
1967
|
+
o[n].value = O;
|
|
1962
1968
|
} else {
|
|
1963
1969
|
o[n].value = c;
|
|
1964
1970
|
}
|
|
@@ -1987,15 +1993,15 @@ const Dr = (t, e) => {
|
|
|
1987
1993
|
|
|
1988
1994
|
var Fr = Dr;
|
|
1989
1995
|
|
|
1990
|
-
const
|
|
1996
|
+
const Mr = t.getDefaultExportFromCjs(Fr);
|
|
1991
1997
|
|
|
1992
1998
|
"use strict";
|
|
1993
1999
|
|
|
1994
|
-
const
|
|
2000
|
+
const $r = hr;
|
|
1995
2001
|
|
|
1996
2002
|
const jr = We;
|
|
1997
2003
|
|
|
1998
|
-
const {MAX_LENGTH: Ir, POSIX_REGEX_SOURCE: Nr, REGEX_NON_SPECIAL_CHARS: Br, REGEX_SPECIAL_CHARS_BACKREF: Gr, REPLACEMENTS: qr} =
|
|
2004
|
+
const {MAX_LENGTH: Ir, POSIX_REGEX_SOURCE: Nr, REGEX_NON_SPECIAL_CHARS: Br, REGEX_SPECIAL_CHARS_BACKREF: Gr, REPLACEMENTS: qr} = $r;
|
|
1999
2005
|
|
|
2000
2006
|
const Ur = (t, e) => {
|
|
2001
2007
|
if (typeof e.expandRange === "function") {
|
|
@@ -2034,8 +2040,8 @@ const Kr = (t, e) => {
|
|
|
2034
2040
|
const o = [ i ];
|
|
2035
2041
|
const a = r.capture ? "" : "?:";
|
|
2036
2042
|
const u = jr.isWindows(e);
|
|
2037
|
-
const c =
|
|
2038
|
-
const l =
|
|
2043
|
+
const c = $r.globChars(u);
|
|
2044
|
+
const l = $r.extglobChars(c);
|
|
2039
2045
|
const {DOT_LITERAL: f, PLUS_LITERAL: p, SLASH_LITERAL: h, ONE_CHAR: d, DOTS_SLASH: _, NO_DOT: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: v, QMARK: m, QMARK_NO_DOT: S, STAR: E, START_ANCHOR: A} = c;
|
|
2040
2046
|
const b = t => `(${a}(?:(?!${A}${t.dot ? _ : f}).)*?)`;
|
|
2041
2047
|
const R = r.dot ? "" : g;
|
|
@@ -2068,20 +2074,20 @@ const Kr = (t, e) => {
|
|
|
2068
2074
|
s = t.length;
|
|
2069
2075
|
const w = [];
|
|
2070
2076
|
const T = [];
|
|
2071
|
-
const
|
|
2072
|
-
let
|
|
2077
|
+
const O = [];
|
|
2078
|
+
let k = i;
|
|
2073
2079
|
let L;
|
|
2074
2080
|
const H = () => C.index === s - 1;
|
|
2075
2081
|
const D = C.peek = (e = 1) => t[C.index + e];
|
|
2076
2082
|
const F = C.advance = () => t[++C.index] || "";
|
|
2077
|
-
const
|
|
2078
|
-
const
|
|
2083
|
+
const M = () => t.slice(C.index + 1);
|
|
2084
|
+
const $ = (t = "", e = 0) => {
|
|
2079
2085
|
C.consumed += t;
|
|
2080
2086
|
C.index += e;
|
|
2081
2087
|
};
|
|
2082
2088
|
const j = t => {
|
|
2083
2089
|
C.output += t.output != null ? t.output : t.value;
|
|
2084
|
-
|
|
2090
|
+
$(t.value);
|
|
2085
2091
|
};
|
|
2086
2092
|
const I = () => {
|
|
2087
2093
|
let t = 1;
|
|
@@ -2099,36 +2105,36 @@ const Kr = (t, e) => {
|
|
|
2099
2105
|
};
|
|
2100
2106
|
const N = t => {
|
|
2101
2107
|
C[t]++;
|
|
2102
|
-
|
|
2108
|
+
O.push(t);
|
|
2103
2109
|
};
|
|
2104
2110
|
const B = t => {
|
|
2105
2111
|
C[t]--;
|
|
2106
|
-
|
|
2112
|
+
O.pop();
|
|
2107
2113
|
};
|
|
2108
2114
|
const G = t => {
|
|
2109
|
-
if (
|
|
2115
|
+
if (k.type === "globstar") {
|
|
2110
2116
|
const e = C.braces > 0 && (t.type === "comma" || t.type === "brace");
|
|
2111
2117
|
const r = t.extglob === true || w.length && (t.type === "pipe" || t.type === "paren");
|
|
2112
2118
|
if (t.type !== "slash" && t.type !== "paren" && !e && !r) {
|
|
2113
|
-
C.output = C.output.slice(0, -
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
C.output +=
|
|
2119
|
+
C.output = C.output.slice(0, -k.output.length);
|
|
2120
|
+
k.type = "star";
|
|
2121
|
+
k.value = "*";
|
|
2122
|
+
k.output = x;
|
|
2123
|
+
C.output += k.output;
|
|
2118
2124
|
}
|
|
2119
2125
|
}
|
|
2120
2126
|
if (w.length && t.type !== "paren") {
|
|
2121
2127
|
w[w.length - 1].inner += t.value;
|
|
2122
2128
|
}
|
|
2123
2129
|
if (t.value || t.output) j(t);
|
|
2124
|
-
if (
|
|
2125
|
-
|
|
2126
|
-
|
|
2130
|
+
if (k && k.type === "text" && t.type === "text") {
|
|
2131
|
+
k.value += t.value;
|
|
2132
|
+
k.output = (k.output || "") + t.value;
|
|
2127
2133
|
return;
|
|
2128
2134
|
}
|
|
2129
|
-
t.prev =
|
|
2135
|
+
t.prev = k;
|
|
2130
2136
|
o.push(t);
|
|
2131
|
-
|
|
2137
|
+
k = t;
|
|
2132
2138
|
};
|
|
2133
2139
|
const q = (t, e) => {
|
|
2134
2140
|
const n = {
|
|
@@ -2136,7 +2142,7 @@ const Kr = (t, e) => {
|
|
|
2136
2142
|
conditions: 1,
|
|
2137
2143
|
inner: ""
|
|
2138
2144
|
};
|
|
2139
|
-
n.prev =
|
|
2145
|
+
n.prev = k;
|
|
2140
2146
|
n.parens = C.parens;
|
|
2141
2147
|
n.output = C.output;
|
|
2142
2148
|
const s = (r.capture ? "(" : "") + n.open;
|
|
@@ -2162,10 +2168,10 @@ const Kr = (t, e) => {
|
|
|
2162
2168
|
if (t.inner && t.inner.length > 1 && t.inner.includes("/")) {
|
|
2163
2169
|
i = b(r);
|
|
2164
2170
|
}
|
|
2165
|
-
if (i !== x || H() || /^\)+$/.test(
|
|
2171
|
+
if (i !== x || H() || /^\)+$/.test(M())) {
|
|
2166
2172
|
n = t.close = `)$))${i}`;
|
|
2167
2173
|
}
|
|
2168
|
-
if (t.inner.includes("*") && (s =
|
|
2174
|
+
if (t.inner.includes("*") && (s = M()) && /^\.[^\\/.]+$/.test(s)) {
|
|
2169
2175
|
const r = Kr(s, {
|
|
2170
2176
|
...e,
|
|
2171
2177
|
fastpaths: false
|
|
@@ -2246,7 +2252,7 @@ const Kr = (t, e) => {
|
|
|
2246
2252
|
});
|
|
2247
2253
|
continue;
|
|
2248
2254
|
}
|
|
2249
|
-
const e = /^\\+/.exec(
|
|
2255
|
+
const e = /^\\+/.exec(M());
|
|
2250
2256
|
let n = 0;
|
|
2251
2257
|
if (e && e[0].length > 2) {
|
|
2252
2258
|
n = e[0].length;
|
|
@@ -2268,21 +2274,21 @@ const Kr = (t, e) => {
|
|
|
2268
2274
|
continue;
|
|
2269
2275
|
}
|
|
2270
2276
|
}
|
|
2271
|
-
if (C.brackets > 0 && (L !== "]" ||
|
|
2277
|
+
if (C.brackets > 0 && (L !== "]" || k.value === "[" || k.value === "[^")) {
|
|
2272
2278
|
if (r.posix !== false && L === ":") {
|
|
2273
|
-
const t =
|
|
2279
|
+
const t = k.value.slice(1);
|
|
2274
2280
|
if (t.includes("[")) {
|
|
2275
|
-
|
|
2281
|
+
k.posix = true;
|
|
2276
2282
|
if (t.includes(":")) {
|
|
2277
|
-
const t =
|
|
2278
|
-
const e =
|
|
2279
|
-
const r =
|
|
2283
|
+
const t = k.value.lastIndexOf("[");
|
|
2284
|
+
const e = k.value.slice(0, t);
|
|
2285
|
+
const r = k.value.slice(t + 2);
|
|
2280
2286
|
const n = Nr[r];
|
|
2281
2287
|
if (n) {
|
|
2282
|
-
|
|
2288
|
+
k.value = e + n;
|
|
2283
2289
|
C.backtrack = true;
|
|
2284
2290
|
F();
|
|
2285
|
-
if (!i.output && o.indexOf(
|
|
2291
|
+
if (!i.output && o.indexOf(k) === 1) {
|
|
2286
2292
|
i.output = d;
|
|
2287
2293
|
}
|
|
2288
2294
|
continue;
|
|
@@ -2293,13 +2299,13 @@ const Kr = (t, e) => {
|
|
|
2293
2299
|
if (L === "[" && D() !== ":" || L === "-" && D() === "]") {
|
|
2294
2300
|
L = `\\${L}`;
|
|
2295
2301
|
}
|
|
2296
|
-
if (L === "]" && (
|
|
2302
|
+
if (L === "]" && (k.value === "[" || k.value === "[^")) {
|
|
2297
2303
|
L = `\\${L}`;
|
|
2298
2304
|
}
|
|
2299
|
-
if (r.posix === true && L === "!" &&
|
|
2305
|
+
if (r.posix === true && L === "!" && k.value === "[") {
|
|
2300
2306
|
L = "^";
|
|
2301
2307
|
}
|
|
2302
|
-
|
|
2308
|
+
k.value += L;
|
|
2303
2309
|
j({
|
|
2304
2310
|
value: L
|
|
2305
2311
|
});
|
|
@@ -2307,7 +2313,7 @@ const Kr = (t, e) => {
|
|
|
2307
2313
|
}
|
|
2308
2314
|
if (C.quotes === 1 && L !== '"') {
|
|
2309
2315
|
L = jr.escapeRegex(L);
|
|
2310
|
-
|
|
2316
|
+
k.value += L;
|
|
2311
2317
|
j({
|
|
2312
2318
|
value: L
|
|
2313
2319
|
});
|
|
@@ -2349,7 +2355,7 @@ const Kr = (t, e) => {
|
|
|
2349
2355
|
continue;
|
|
2350
2356
|
}
|
|
2351
2357
|
if (L === "[") {
|
|
2352
|
-
if (r.nobracket === true ||
|
|
2358
|
+
if (r.nobracket === true || !M().includes("]")) {
|
|
2353
2359
|
if (r.nobracket !== true && r.strictBrackets === true) {
|
|
2354
2360
|
throw new SyntaxError(Wr("closing", "]"));
|
|
2355
2361
|
}
|
|
@@ -2364,7 +2370,7 @@ const Kr = (t, e) => {
|
|
|
2364
2370
|
continue;
|
|
2365
2371
|
}
|
|
2366
2372
|
if (L === "]") {
|
|
2367
|
-
if (r.nobracket === true ||
|
|
2373
|
+
if (r.nobracket === true || k && k.type === "bracket" && k.value.length === 1) {
|
|
2368
2374
|
G({
|
|
2369
2375
|
type: "text",
|
|
2370
2376
|
value: L,
|
|
@@ -2384,26 +2390,26 @@ const Kr = (t, e) => {
|
|
|
2384
2390
|
continue;
|
|
2385
2391
|
}
|
|
2386
2392
|
B("brackets");
|
|
2387
|
-
const t =
|
|
2388
|
-
if (
|
|
2393
|
+
const t = k.value.slice(1);
|
|
2394
|
+
if (k.posix !== true && t[0] === "^" && !t.includes("/")) {
|
|
2389
2395
|
L = `/${L}`;
|
|
2390
2396
|
}
|
|
2391
|
-
|
|
2397
|
+
k.value += L;
|
|
2392
2398
|
j({
|
|
2393
2399
|
value: L
|
|
2394
2400
|
});
|
|
2395
2401
|
if (r.literalBrackets === false || jr.hasRegexChars(t)) {
|
|
2396
2402
|
continue;
|
|
2397
2403
|
}
|
|
2398
|
-
const e = jr.escapeRegex(
|
|
2399
|
-
C.output = C.output.slice(0, -
|
|
2404
|
+
const e = jr.escapeRegex(k.value);
|
|
2405
|
+
C.output = C.output.slice(0, -k.value.length);
|
|
2400
2406
|
if (r.literalBrackets === true) {
|
|
2401
2407
|
C.output += e;
|
|
2402
|
-
|
|
2408
|
+
k.value = e;
|
|
2403
2409
|
continue;
|
|
2404
2410
|
}
|
|
2405
|
-
|
|
2406
|
-
C.output +=
|
|
2411
|
+
k.value = `(${a}${e}|${k.value})`;
|
|
2412
|
+
C.output += k.value;
|
|
2407
2413
|
continue;
|
|
2408
2414
|
}
|
|
2409
2415
|
if (L === "{" && r.nobrace !== true) {
|
|
@@ -2477,7 +2483,7 @@ const Kr = (t, e) => {
|
|
|
2477
2483
|
if (L === ",") {
|
|
2478
2484
|
let t = L;
|
|
2479
2485
|
const e = T[T.length - 1];
|
|
2480
|
-
if (e &&
|
|
2486
|
+
if (e && O[O.length - 1] === "braces") {
|
|
2481
2487
|
e.comma = true;
|
|
2482
2488
|
t = "|";
|
|
2483
2489
|
}
|
|
@@ -2489,12 +2495,12 @@ const Kr = (t, e) => {
|
|
|
2489
2495
|
continue;
|
|
2490
2496
|
}
|
|
2491
2497
|
if (L === "/") {
|
|
2492
|
-
if (
|
|
2498
|
+
if (k.type === "dot" && C.index === C.start + 1) {
|
|
2493
2499
|
C.start = C.index + 1;
|
|
2494
2500
|
C.consumed = "";
|
|
2495
2501
|
C.output = "";
|
|
2496
2502
|
o.pop();
|
|
2497
|
-
|
|
2503
|
+
k = i;
|
|
2498
2504
|
continue;
|
|
2499
2505
|
}
|
|
2500
2506
|
G({
|
|
@@ -2505,16 +2511,16 @@ const Kr = (t, e) => {
|
|
|
2505
2511
|
continue;
|
|
2506
2512
|
}
|
|
2507
2513
|
if (L === ".") {
|
|
2508
|
-
if (C.braces > 0 &&
|
|
2509
|
-
if (
|
|
2514
|
+
if (C.braces > 0 && k.type === "dot") {
|
|
2515
|
+
if (k.value === ".") k.output = f;
|
|
2510
2516
|
const t = T[T.length - 1];
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2517
|
+
k.type = "dots";
|
|
2518
|
+
k.output += L;
|
|
2519
|
+
k.value += L;
|
|
2514
2520
|
t.dots = true;
|
|
2515
2521
|
continue;
|
|
2516
2522
|
}
|
|
2517
|
-
if (C.braces + C.parens === 0 &&
|
|
2523
|
+
if (C.braces + C.parens === 0 && k.type !== "bos" && k.type !== "slash") {
|
|
2518
2524
|
G({
|
|
2519
2525
|
type: "text",
|
|
2520
2526
|
value: L,
|
|
@@ -2530,18 +2536,18 @@ const Kr = (t, e) => {
|
|
|
2530
2536
|
continue;
|
|
2531
2537
|
}
|
|
2532
2538
|
if (L === "?") {
|
|
2533
|
-
const t =
|
|
2539
|
+
const t = k && k.value === "(";
|
|
2534
2540
|
if (!t && r.noextglob !== true && D() === "(" && D(2) !== "?") {
|
|
2535
2541
|
q("qmark", L);
|
|
2536
2542
|
continue;
|
|
2537
2543
|
}
|
|
2538
|
-
if (
|
|
2544
|
+
if (k && k.type === "paren") {
|
|
2539
2545
|
const t = D();
|
|
2540
2546
|
let e = L;
|
|
2541
2547
|
if (t === "<" && !jr.supportsLookbehinds()) {
|
|
2542
2548
|
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
2543
2549
|
}
|
|
2544
|
-
if (
|
|
2550
|
+
if (k.value === "(" && !/[!=<:]/.test(t) || t === "<" && !/<([!=]|\w+>)/.test(M())) {
|
|
2545
2551
|
e = `\\${L}`;
|
|
2546
2552
|
}
|
|
2547
2553
|
G({
|
|
@@ -2551,7 +2557,7 @@ const Kr = (t, e) => {
|
|
|
2551
2557
|
});
|
|
2552
2558
|
continue;
|
|
2553
2559
|
}
|
|
2554
|
-
if (r.dot !== true && (
|
|
2560
|
+
if (r.dot !== true && (k.type === "slash" || k.type === "bos")) {
|
|
2555
2561
|
G({
|
|
2556
2562
|
type: "qmark",
|
|
2557
2563
|
value: L,
|
|
@@ -2583,7 +2589,7 @@ const Kr = (t, e) => {
|
|
|
2583
2589
|
q("plus", L);
|
|
2584
2590
|
continue;
|
|
2585
2591
|
}
|
|
2586
|
-
if (
|
|
2592
|
+
if (k && k.value === "(" || r.regex === false) {
|
|
2587
2593
|
G({
|
|
2588
2594
|
type: "plus",
|
|
2589
2595
|
value: L,
|
|
@@ -2591,7 +2597,7 @@ const Kr = (t, e) => {
|
|
|
2591
2597
|
});
|
|
2592
2598
|
continue;
|
|
2593
2599
|
}
|
|
2594
|
-
if (
|
|
2600
|
+
if (k && (k.type === "bracket" || k.type === "paren" || k.type === "brace") || C.parens > 0) {
|
|
2595
2601
|
G({
|
|
2596
2602
|
type: "plus",
|
|
2597
2603
|
value: L
|
|
@@ -2624,7 +2630,7 @@ const Kr = (t, e) => {
|
|
|
2624
2630
|
if (L === "$" || L === "^") {
|
|
2625
2631
|
L = `\\${L}`;
|
|
2626
2632
|
}
|
|
2627
|
-
const t = Br.exec(
|
|
2633
|
+
const t = Br.exec(M());
|
|
2628
2634
|
if (t) {
|
|
2629
2635
|
L += t[0];
|
|
2630
2636
|
C.index += t[0].length;
|
|
@@ -2635,27 +2641,27 @@ const Kr = (t, e) => {
|
|
|
2635
2641
|
});
|
|
2636
2642
|
continue;
|
|
2637
2643
|
}
|
|
2638
|
-
if (
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2644
|
+
if (k && (k.type === "globstar" || k.star === true)) {
|
|
2645
|
+
k.type = "star";
|
|
2646
|
+
k.star = true;
|
|
2647
|
+
k.value += L;
|
|
2648
|
+
k.output = x;
|
|
2643
2649
|
C.backtrack = true;
|
|
2644
2650
|
C.globstar = true;
|
|
2645
|
-
|
|
2651
|
+
$(L);
|
|
2646
2652
|
continue;
|
|
2647
2653
|
}
|
|
2648
|
-
let e =
|
|
2654
|
+
let e = M();
|
|
2649
2655
|
if (r.noextglob !== true && /^\([^?]/.test(e)) {
|
|
2650
2656
|
q("star", L);
|
|
2651
2657
|
continue;
|
|
2652
2658
|
}
|
|
2653
|
-
if (
|
|
2659
|
+
if (k.type === "star") {
|
|
2654
2660
|
if (r.noglobstar === true) {
|
|
2655
|
-
|
|
2661
|
+
$(L);
|
|
2656
2662
|
continue;
|
|
2657
2663
|
}
|
|
2658
|
-
const n =
|
|
2664
|
+
const n = k.prev;
|
|
2659
2665
|
const s = n.prev;
|
|
2660
2666
|
const i = n.type === "slash" || n.type === "bos";
|
|
2661
2667
|
const o = s && (s.type === "star" || s.type === "globstar");
|
|
@@ -2683,38 +2689,38 @@ const Kr = (t, e) => {
|
|
|
2683
2689
|
break;
|
|
2684
2690
|
}
|
|
2685
2691
|
e = e.slice(3);
|
|
2686
|
-
|
|
2692
|
+
$("/**", 3);
|
|
2687
2693
|
}
|
|
2688
2694
|
if (n.type === "bos" && H()) {
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
C.output =
|
|
2695
|
+
k.type = "globstar";
|
|
2696
|
+
k.value += L;
|
|
2697
|
+
k.output = b(r);
|
|
2698
|
+
C.output = k.output;
|
|
2693
2699
|
C.globstar = true;
|
|
2694
|
-
|
|
2700
|
+
$(L);
|
|
2695
2701
|
continue;
|
|
2696
2702
|
}
|
|
2697
2703
|
if (n.type === "slash" && n.prev.type !== "bos" && !o && H()) {
|
|
2698
|
-
C.output = C.output.slice(0, -(n.output +
|
|
2704
|
+
C.output = C.output.slice(0, -(n.output + k.output).length);
|
|
2699
2705
|
n.output = `(?:${n.output}`;
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2706
|
+
k.type = "globstar";
|
|
2707
|
+
k.output = b(r) + (r.strictSlashes ? ")" : "|$)");
|
|
2708
|
+
k.value += L;
|
|
2703
2709
|
C.globstar = true;
|
|
2704
|
-
C.output += n.output +
|
|
2705
|
-
|
|
2710
|
+
C.output += n.output + k.output;
|
|
2711
|
+
$(L);
|
|
2706
2712
|
continue;
|
|
2707
2713
|
}
|
|
2708
2714
|
if (n.type === "slash" && n.prev.type !== "bos" && e[0] === "/") {
|
|
2709
2715
|
const t = e[1] !== void 0 ? "|$" : "";
|
|
2710
|
-
C.output = C.output.slice(0, -(n.output +
|
|
2716
|
+
C.output = C.output.slice(0, -(n.output + k.output).length);
|
|
2711
2717
|
n.output = `(?:${n.output}`;
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
C.output += n.output +
|
|
2718
|
+
k.type = "globstar";
|
|
2719
|
+
k.output = `${b(r)}${h}|${h}${t})`;
|
|
2720
|
+
k.value += L;
|
|
2721
|
+
C.output += n.output + k.output;
|
|
2716
2722
|
C.globstar = true;
|
|
2717
|
-
|
|
2723
|
+
$(L + F());
|
|
2718
2724
|
G({
|
|
2719
2725
|
type: "slash",
|
|
2720
2726
|
value: "/",
|
|
@@ -2723,12 +2729,12 @@ const Kr = (t, e) => {
|
|
|
2723
2729
|
continue;
|
|
2724
2730
|
}
|
|
2725
2731
|
if (n.type === "bos" && e[0] === "/") {
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
C.output =
|
|
2732
|
+
k.type = "globstar";
|
|
2733
|
+
k.value += L;
|
|
2734
|
+
k.output = `(?:^|${h}|${b(r)}${h})`;
|
|
2735
|
+
C.output = k.output;
|
|
2730
2736
|
C.globstar = true;
|
|
2731
|
-
|
|
2737
|
+
$(L + F());
|
|
2732
2738
|
G({
|
|
2733
2739
|
type: "slash",
|
|
2734
2740
|
value: "/",
|
|
@@ -2736,13 +2742,13 @@ const Kr = (t, e) => {
|
|
|
2736
2742
|
});
|
|
2737
2743
|
continue;
|
|
2738
2744
|
}
|
|
2739
|
-
C.output = C.output.slice(0, -
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
C.output +=
|
|
2745
|
+
C.output = C.output.slice(0, -k.output.length);
|
|
2746
|
+
k.type = "globstar";
|
|
2747
|
+
k.output = b(r);
|
|
2748
|
+
k.value += L;
|
|
2749
|
+
C.output += k.output;
|
|
2744
2750
|
C.globstar = true;
|
|
2745
|
-
|
|
2751
|
+
$(L);
|
|
2746
2752
|
continue;
|
|
2747
2753
|
}
|
|
2748
2754
|
const n = {
|
|
@@ -2752,31 +2758,31 @@ const Kr = (t, e) => {
|
|
|
2752
2758
|
};
|
|
2753
2759
|
if (r.bash === true) {
|
|
2754
2760
|
n.output = ".*?";
|
|
2755
|
-
if (
|
|
2761
|
+
if (k.type === "bos" || k.type === "slash") {
|
|
2756
2762
|
n.output = R + n.output;
|
|
2757
2763
|
}
|
|
2758
2764
|
G(n);
|
|
2759
2765
|
continue;
|
|
2760
2766
|
}
|
|
2761
|
-
if (
|
|
2767
|
+
if (k && (k.type === "bracket" || k.type === "paren") && r.regex === true) {
|
|
2762
2768
|
n.output = L;
|
|
2763
2769
|
G(n);
|
|
2764
2770
|
continue;
|
|
2765
2771
|
}
|
|
2766
|
-
if (C.index === C.start ||
|
|
2767
|
-
if (
|
|
2772
|
+
if (C.index === C.start || k.type === "slash" || k.type === "dot") {
|
|
2773
|
+
if (k.type === "dot") {
|
|
2768
2774
|
C.output += y;
|
|
2769
|
-
|
|
2775
|
+
k.output += y;
|
|
2770
2776
|
} else if (r.dot === true) {
|
|
2771
2777
|
C.output += v;
|
|
2772
|
-
|
|
2778
|
+
k.output += v;
|
|
2773
2779
|
} else {
|
|
2774
2780
|
C.output += R;
|
|
2775
|
-
|
|
2781
|
+
k.output += R;
|
|
2776
2782
|
}
|
|
2777
2783
|
if (D() !== "*") {
|
|
2778
2784
|
C.output += d;
|
|
2779
|
-
|
|
2785
|
+
k.output += d;
|
|
2780
2786
|
}
|
|
2781
2787
|
}
|
|
2782
2788
|
G(n);
|
|
@@ -2796,7 +2802,7 @@ const Kr = (t, e) => {
|
|
|
2796
2802
|
C.output = jr.escapeLast(C.output, "{");
|
|
2797
2803
|
B("braces");
|
|
2798
2804
|
}
|
|
2799
|
-
if (r.strictSlashes !== true && (
|
|
2805
|
+
if (r.strictSlashes !== true && (k.type === "star" || k.type === "bracket")) {
|
|
2800
2806
|
G({
|
|
2801
2807
|
type: "maybe_slash",
|
|
2802
2808
|
value: "",
|
|
@@ -2826,7 +2832,7 @@ Kr.fastpaths = (t, e) => {
|
|
|
2826
2832
|
}
|
|
2827
2833
|
t = qr[t] || t;
|
|
2828
2834
|
const i = jr.isWindows(e);
|
|
2829
|
-
const {DOT_LITERAL: o, SLASH_LITERAL: a, ONE_CHAR: u, DOTS_SLASH: c, NO_DOT: l, NO_DOTS: f, NO_DOTS_SLASH: p, STAR: h, START_ANCHOR: d} =
|
|
2835
|
+
const {DOT_LITERAL: o, SLASH_LITERAL: a, ONE_CHAR: u, DOTS_SLASH: c, NO_DOT: l, NO_DOTS: f, NO_DOTS_SLASH: p, STAR: h, START_ANCHOR: d} = $r.globChars(i);
|
|
2830
2836
|
const _ = r.dot ? f : l;
|
|
2831
2837
|
const g = r.dot ? p : l;
|
|
2832
2838
|
const y = r.capture ? "" : "?:";
|
|
@@ -3093,7 +3099,12 @@ const ln = We;
|
|
|
3093
3099
|
|
|
3094
3100
|
const fn = t => t === "" || t === "./";
|
|
3095
3101
|
|
|
3096
|
-
const pn =
|
|
3102
|
+
const pn = t => {
|
|
3103
|
+
const e = t.indexOf("{");
|
|
3104
|
+
return e > -1 && t.indexOf("}", e) > -1;
|
|
3105
|
+
};
|
|
3106
|
+
|
|
3107
|
+
const hn = (t, e, r) => {
|
|
3097
3108
|
e = [].concat(e);
|
|
3098
3109
|
t = [].concat(t);
|
|
3099
3110
|
let n = new Set;
|
|
@@ -3138,15 +3149,15 @@ const pn = (t, e, r) => {
|
|
|
3138
3149
|
return c;
|
|
3139
3150
|
};
|
|
3140
3151
|
|
|
3141
|
-
|
|
3152
|
+
hn.match = hn;
|
|
3142
3153
|
|
|
3143
|
-
|
|
3154
|
+
hn.matcher = (t, e) => cn(t, e);
|
|
3144
3155
|
|
|
3145
|
-
|
|
3156
|
+
hn.isMatch = (t, e, r) => cn(e, r)(t);
|
|
3146
3157
|
|
|
3147
|
-
|
|
3158
|
+
hn.any = hn.isMatch;
|
|
3148
3159
|
|
|
3149
|
-
|
|
3160
|
+
hn.not = (t, e, r = {}) => {
|
|
3150
3161
|
e = [].concat(e).map(String);
|
|
3151
3162
|
let n = new Set;
|
|
3152
3163
|
let s = [];
|
|
@@ -3154,7 +3165,7 @@ pn.not = (t, e, r = {}) => {
|
|
|
3154
3165
|
if (r.onResult) r.onResult(t);
|
|
3155
3166
|
s.push(t.output);
|
|
3156
3167
|
};
|
|
3157
|
-
let o = new Set(
|
|
3168
|
+
let o = new Set(hn(t, e, {
|
|
3158
3169
|
...r,
|
|
3159
3170
|
onResult: i
|
|
3160
3171
|
}));
|
|
@@ -3166,12 +3177,12 @@ pn.not = (t, e, r = {}) => {
|
|
|
3166
3177
|
return [ ...n ];
|
|
3167
3178
|
};
|
|
3168
3179
|
|
|
3169
|
-
|
|
3180
|
+
hn.contains = (t, e, r) => {
|
|
3170
3181
|
if (typeof t !== "string") {
|
|
3171
3182
|
throw new TypeError(`Expected a string: "${an.inspect(t)}"`);
|
|
3172
3183
|
}
|
|
3173
3184
|
if (Array.isArray(e)) {
|
|
3174
|
-
return e.some((e =>
|
|
3185
|
+
return e.some((e => hn.contains(t, e, r)));
|
|
3175
3186
|
}
|
|
3176
3187
|
if (typeof e === "string") {
|
|
3177
3188
|
if (fn(t) || fn(e)) {
|
|
@@ -3181,23 +3192,23 @@ pn.contains = (t, e, r) => {
|
|
|
3181
3192
|
return true;
|
|
3182
3193
|
}
|
|
3183
3194
|
}
|
|
3184
|
-
return
|
|
3195
|
+
return hn.isMatch(t, e, {
|
|
3185
3196
|
...r,
|
|
3186
3197
|
contains: true
|
|
3187
3198
|
});
|
|
3188
3199
|
};
|
|
3189
3200
|
|
|
3190
|
-
|
|
3201
|
+
hn.matchKeys = (t, e, r) => {
|
|
3191
3202
|
if (!ln.isObject(t)) {
|
|
3192
3203
|
throw new TypeError("Expected the first argument to be an object");
|
|
3193
3204
|
}
|
|
3194
|
-
let n =
|
|
3205
|
+
let n = hn(Object.keys(t), e, r);
|
|
3195
3206
|
let s = {};
|
|
3196
3207
|
for (let e of n) s[e] = t[e];
|
|
3197
3208
|
return s;
|
|
3198
3209
|
};
|
|
3199
3210
|
|
|
3200
|
-
|
|
3211
|
+
hn.some = (t, e, r) => {
|
|
3201
3212
|
let n = [].concat(t);
|
|
3202
3213
|
for (let t of [].concat(e)) {
|
|
3203
3214
|
let e = cn(String(t), r);
|
|
@@ -3208,7 +3219,7 @@ pn.some = (t, e, r) => {
|
|
|
3208
3219
|
return false;
|
|
3209
3220
|
};
|
|
3210
3221
|
|
|
3211
|
-
|
|
3222
|
+
hn.every = (t, e, r) => {
|
|
3212
3223
|
let n = [].concat(t);
|
|
3213
3224
|
for (let t of [].concat(e)) {
|
|
3214
3225
|
let e = cn(String(t), r);
|
|
@@ -3219,14 +3230,14 @@ pn.every = (t, e, r) => {
|
|
|
3219
3230
|
return true;
|
|
3220
3231
|
};
|
|
3221
3232
|
|
|
3222
|
-
|
|
3233
|
+
hn.all = (t, e, r) => {
|
|
3223
3234
|
if (typeof t !== "string") {
|
|
3224
3235
|
throw new TypeError(`Expected a string: "${an.inspect(t)}"`);
|
|
3225
3236
|
}
|
|
3226
3237
|
return [].concat(e).every((e => cn(e, r)(t)));
|
|
3227
3238
|
};
|
|
3228
3239
|
|
|
3229
|
-
|
|
3240
|
+
hn.capture = (t, e, r) => {
|
|
3230
3241
|
let n = ln.isWindows(r);
|
|
3231
3242
|
let s = cn.makeRe(String(t), {
|
|
3232
3243
|
...r,
|
|
@@ -3238,11 +3249,11 @@ pn.capture = (t, e, r) => {
|
|
|
3238
3249
|
}
|
|
3239
3250
|
};
|
|
3240
3251
|
|
|
3241
|
-
|
|
3252
|
+
hn.makeRe = (...t) => cn.makeRe(...t);
|
|
3242
3253
|
|
|
3243
|
-
|
|
3254
|
+
hn.scan = (...t) => cn.scan(...t);
|
|
3244
3255
|
|
|
3245
|
-
|
|
3256
|
+
hn.parse = (t, e) => {
|
|
3246
3257
|
let r = [];
|
|
3247
3258
|
for (let n of [].concat(t || [])) {
|
|
3248
3259
|
for (let t of un(String(n), e)) {
|
|
@@ -3252,25 +3263,27 @@ pn.parse = (t, e) => {
|
|
|
3252
3263
|
return r;
|
|
3253
3264
|
};
|
|
3254
3265
|
|
|
3255
|
-
|
|
3266
|
+
hn.braces = (t, e) => {
|
|
3256
3267
|
if (typeof t !== "string") throw new TypeError("Expected a string");
|
|
3257
|
-
if (e && e.nobrace === true ||
|
|
3268
|
+
if (e && e.nobrace === true || !pn(t)) {
|
|
3258
3269
|
return [ t ];
|
|
3259
3270
|
}
|
|
3260
3271
|
return un(t, e);
|
|
3261
3272
|
};
|
|
3262
3273
|
|
|
3263
|
-
|
|
3274
|
+
hn.braceExpand = (t, e) => {
|
|
3264
3275
|
if (typeof t !== "string") throw new TypeError("Expected a string");
|
|
3265
|
-
return
|
|
3276
|
+
return hn.braces(t, {
|
|
3266
3277
|
...e,
|
|
3267
3278
|
expand: true
|
|
3268
3279
|
});
|
|
3269
3280
|
};
|
|
3270
3281
|
|
|
3271
|
-
|
|
3282
|
+
hn.hasBraces = pn;
|
|
3283
|
+
|
|
3284
|
+
var dn = hn;
|
|
3272
3285
|
|
|
3273
|
-
const
|
|
3286
|
+
const _n = t.getDefaultExportFromCjs(dn);
|
|
3274
3287
|
|
|
3275
3288
|
"use strict";
|
|
3276
3289
|
|
|
@@ -3278,58 +3291,58 @@ Object.defineProperty(rt, "__esModule", {
|
|
|
3278
3291
|
value: true
|
|
3279
3292
|
});
|
|
3280
3293
|
|
|
3281
|
-
var
|
|
3294
|
+
var gn = rt.isAbsolute = Ss = rt.partitionAbsoluteAndRelative = vs = rt.removeDuplicateSlashes = gs = rt.matchAny = ds = rt.convertPatternsToRe = ps = rt.makeRe = ls = rt.getPatternParts = us = rt.expandBraceExpansion = os = rt.expandPatternsWithBraceExpansion = ss = rt.isAffectDepthOfReadingPattern = rs = rt.endsWithSlashGlobStar = ts = rt.hasGlobStar = zn = rt.getBaseDirectory = Yn = rt.isPatternRelatedToParentDirectory = Qn = rt.getPatternsOutsideCurrentDirectory = Kn = rt.getPatternsInsideCurrentDirectory = Un = rt.getPositivePatterns = Gn = rt.getNegativePatterns = Nn = rt.isPositivePattern = jn = rt.isNegativePattern = Mn = rt.convertToNegativePattern = Dn = rt.convertToPositivePattern = kn = rt.isDynamicPattern = Tn = rt.isStaticPattern = void 0;
|
|
3282
3295
|
|
|
3283
|
-
const
|
|
3296
|
+
const yn = p.default;
|
|
3284
3297
|
|
|
3285
|
-
const
|
|
3298
|
+
const vn = ft;
|
|
3286
3299
|
|
|
3287
|
-
const
|
|
3300
|
+
const mn = dn;
|
|
3288
3301
|
|
|
3289
|
-
const
|
|
3302
|
+
const Sn = "**";
|
|
3290
3303
|
|
|
3291
|
-
const
|
|
3304
|
+
const En = "\\";
|
|
3292
3305
|
|
|
3293
|
-
const
|
|
3306
|
+
const An = /[*?]|^!/;
|
|
3294
3307
|
|
|
3295
|
-
const
|
|
3308
|
+
const bn = /\[[^[]*]/;
|
|
3296
3309
|
|
|
3297
|
-
const
|
|
3310
|
+
const Rn = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
|
|
3298
3311
|
|
|
3299
|
-
const
|
|
3312
|
+
const Pn = /[!*+?@]\([^(]*\)/;
|
|
3300
3313
|
|
|
3301
|
-
const
|
|
3314
|
+
const xn = /,|\.\./;
|
|
3302
3315
|
|
|
3303
|
-
const
|
|
3316
|
+
const Cn = /(?!^)\/{2,}/g;
|
|
3304
3317
|
|
|
3305
|
-
function
|
|
3306
|
-
return !
|
|
3318
|
+
function wn(t, e = {}) {
|
|
3319
|
+
return !On(t, e);
|
|
3307
3320
|
}
|
|
3308
3321
|
|
|
3309
|
-
var
|
|
3322
|
+
var Tn = rt.isStaticPattern = wn;
|
|
3310
3323
|
|
|
3311
|
-
function
|
|
3324
|
+
function On(t, e = {}) {
|
|
3312
3325
|
if (t === "") {
|
|
3313
3326
|
return false;
|
|
3314
3327
|
}
|
|
3315
|
-
if (e.caseSensitiveMatch === false || t.includes(
|
|
3328
|
+
if (e.caseSensitiveMatch === false || t.includes(En)) {
|
|
3316
3329
|
return true;
|
|
3317
3330
|
}
|
|
3318
|
-
if (
|
|
3331
|
+
if (An.test(t) || bn.test(t) || Rn.test(t)) {
|
|
3319
3332
|
return true;
|
|
3320
3333
|
}
|
|
3321
|
-
if (e.extglob !== false &&
|
|
3334
|
+
if (e.extglob !== false && Pn.test(t)) {
|
|
3322
3335
|
return true;
|
|
3323
3336
|
}
|
|
3324
|
-
if (e.braceExpansion !== false &&
|
|
3337
|
+
if (e.braceExpansion !== false && Ln(t)) {
|
|
3325
3338
|
return true;
|
|
3326
3339
|
}
|
|
3327
3340
|
return false;
|
|
3328
3341
|
}
|
|
3329
3342
|
|
|
3330
|
-
var kn = rt.isDynamicPattern =
|
|
3343
|
+
var kn = rt.isDynamicPattern = On;
|
|
3331
3344
|
|
|
3332
|
-
function
|
|
3345
|
+
function Ln(t) {
|
|
3333
3346
|
const e = t.indexOf("{");
|
|
3334
3347
|
if (e === -1) {
|
|
3335
3348
|
return false;
|
|
@@ -3339,98 +3352,98 @@ function On(t) {
|
|
|
3339
3352
|
return false;
|
|
3340
3353
|
}
|
|
3341
3354
|
const n = t.slice(e, r);
|
|
3342
|
-
return
|
|
3355
|
+
return xn.test(n);
|
|
3343
3356
|
}
|
|
3344
3357
|
|
|
3345
|
-
function
|
|
3358
|
+
function Hn(t) {
|
|
3346
3359
|
return $n(t) ? t.slice(1) : t;
|
|
3347
3360
|
}
|
|
3348
3361
|
|
|
3349
|
-
var
|
|
3362
|
+
var Dn = rt.convertToPositivePattern = Hn;
|
|
3350
3363
|
|
|
3351
|
-
function
|
|
3364
|
+
function Fn(t) {
|
|
3352
3365
|
return "!" + t;
|
|
3353
3366
|
}
|
|
3354
3367
|
|
|
3355
|
-
var
|
|
3368
|
+
var Mn = rt.convertToNegativePattern = Fn;
|
|
3356
3369
|
|
|
3357
3370
|
function $n(t) {
|
|
3358
3371
|
return t.startsWith("!") && t[1] !== "(";
|
|
3359
3372
|
}
|
|
3360
3373
|
|
|
3361
|
-
var
|
|
3374
|
+
var jn = rt.isNegativePattern = $n;
|
|
3362
3375
|
|
|
3363
|
-
function
|
|
3376
|
+
function In(t) {
|
|
3364
3377
|
return !$n(t);
|
|
3365
3378
|
}
|
|
3366
3379
|
|
|
3367
|
-
var
|
|
3380
|
+
var Nn = rt.isPositivePattern = In;
|
|
3368
3381
|
|
|
3369
|
-
function
|
|
3382
|
+
function Bn(t) {
|
|
3370
3383
|
return t.filter($n);
|
|
3371
3384
|
}
|
|
3372
3385
|
|
|
3373
|
-
var
|
|
3386
|
+
var Gn = rt.getNegativePatterns = Bn;
|
|
3374
3387
|
|
|
3375
|
-
function
|
|
3376
|
-
return t.filter(
|
|
3388
|
+
function qn(t) {
|
|
3389
|
+
return t.filter(In);
|
|
3377
3390
|
}
|
|
3378
3391
|
|
|
3379
|
-
var
|
|
3392
|
+
var Un = rt.getPositivePatterns = qn;
|
|
3380
3393
|
|
|
3381
|
-
function
|
|
3382
|
-
return t.filter((t => !
|
|
3394
|
+
function Wn(t) {
|
|
3395
|
+
return t.filter((t => !Xn(t)));
|
|
3383
3396
|
}
|
|
3384
3397
|
|
|
3385
|
-
var
|
|
3398
|
+
var Kn = rt.getPatternsInsideCurrentDirectory = Wn;
|
|
3386
3399
|
|
|
3387
|
-
function
|
|
3388
|
-
return t.filter(
|
|
3400
|
+
function Vn(t) {
|
|
3401
|
+
return t.filter(Xn);
|
|
3389
3402
|
}
|
|
3390
3403
|
|
|
3391
|
-
var
|
|
3404
|
+
var Qn = rt.getPatternsOutsideCurrentDirectory = Vn;
|
|
3392
3405
|
|
|
3393
|
-
function
|
|
3406
|
+
function Xn(t) {
|
|
3394
3407
|
return t.startsWith("..") || t.startsWith("./..");
|
|
3395
3408
|
}
|
|
3396
3409
|
|
|
3397
|
-
var
|
|
3410
|
+
var Yn = rt.isPatternRelatedToParentDirectory = Xn;
|
|
3398
3411
|
|
|
3399
|
-
function
|
|
3400
|
-
return
|
|
3412
|
+
function Zn(t) {
|
|
3413
|
+
return vn(t, {
|
|
3401
3414
|
flipBackslashes: false
|
|
3402
3415
|
});
|
|
3403
3416
|
}
|
|
3404
3417
|
|
|
3405
|
-
var
|
|
3418
|
+
var zn = rt.getBaseDirectory = Zn;
|
|
3406
3419
|
|
|
3407
|
-
function
|
|
3408
|
-
return t.includes(
|
|
3420
|
+
function Jn(t) {
|
|
3421
|
+
return t.includes(Sn);
|
|
3409
3422
|
}
|
|
3410
3423
|
|
|
3411
|
-
var
|
|
3424
|
+
var ts = rt.hasGlobStar = Jn;
|
|
3412
3425
|
|
|
3413
|
-
function
|
|
3414
|
-
return t.endsWith("/" +
|
|
3426
|
+
function es(t) {
|
|
3427
|
+
return t.endsWith("/" + Sn);
|
|
3415
3428
|
}
|
|
3416
3429
|
|
|
3417
|
-
var
|
|
3430
|
+
var rs = rt.endsWithSlashGlobStar = es;
|
|
3418
3431
|
|
|
3419
|
-
function
|
|
3420
|
-
const e =
|
|
3421
|
-
return
|
|
3432
|
+
function ns(t) {
|
|
3433
|
+
const e = yn.basename(t);
|
|
3434
|
+
return es(t) || wn(e);
|
|
3422
3435
|
}
|
|
3423
3436
|
|
|
3424
|
-
var
|
|
3437
|
+
var ss = rt.isAffectDepthOfReadingPattern = ns;
|
|
3425
3438
|
|
|
3426
|
-
function
|
|
3427
|
-
return t.reduce(((t, e) => t.concat(
|
|
3439
|
+
function is(t) {
|
|
3440
|
+
return t.reduce(((t, e) => t.concat(as(e))), []);
|
|
3428
3441
|
}
|
|
3429
3442
|
|
|
3430
|
-
var
|
|
3443
|
+
var os = rt.expandPatternsWithBraceExpansion = is;
|
|
3431
3444
|
|
|
3432
|
-
function
|
|
3433
|
-
const e =
|
|
3445
|
+
function as(t) {
|
|
3446
|
+
const e = mn.braces(t, {
|
|
3434
3447
|
expand: true,
|
|
3435
3448
|
nodupes: true,
|
|
3436
3449
|
keepEscaping: true
|
|
@@ -3439,10 +3452,10 @@ function os(t) {
|
|
|
3439
3452
|
return e.filter((t => t !== ""));
|
|
3440
3453
|
}
|
|
3441
3454
|
|
|
3442
|
-
var
|
|
3455
|
+
var us = rt.expandBraceExpansion = as;
|
|
3443
3456
|
|
|
3444
|
-
function
|
|
3445
|
-
let {parts: r} =
|
|
3457
|
+
function cs(t, e) {
|
|
3458
|
+
let {parts: r} = mn.scan(t, Object.assign(Object.assign({}, e), {
|
|
3446
3459
|
parts: true
|
|
3447
3460
|
}));
|
|
3448
3461
|
if (r.length === 0) {
|
|
@@ -3455,47 +3468,68 @@ function us(t, e) {
|
|
|
3455
3468
|
return r;
|
|
3456
3469
|
}
|
|
3457
3470
|
|
|
3458
|
-
var
|
|
3471
|
+
var ls = rt.getPatternParts = cs;
|
|
3459
3472
|
|
|
3460
|
-
function
|
|
3461
|
-
return
|
|
3473
|
+
function fs(t, e) {
|
|
3474
|
+
return mn.makeRe(t, e);
|
|
3462
3475
|
}
|
|
3463
3476
|
|
|
3464
|
-
var
|
|
3477
|
+
var ps = rt.makeRe = fs;
|
|
3465
3478
|
|
|
3466
|
-
function
|
|
3467
|
-
return t.map((t =>
|
|
3479
|
+
function hs(t, e) {
|
|
3480
|
+
return t.map((t => fs(t, e)));
|
|
3468
3481
|
}
|
|
3469
3482
|
|
|
3470
|
-
var
|
|
3483
|
+
var ds = rt.convertPatternsToRe = hs;
|
|
3471
3484
|
|
|
3472
|
-
function
|
|
3485
|
+
function _s(t, e) {
|
|
3473
3486
|
return e.some((e => e.test(t)));
|
|
3474
3487
|
}
|
|
3475
3488
|
|
|
3476
|
-
var
|
|
3489
|
+
var gs = rt.matchAny = _s;
|
|
3477
3490
|
|
|
3478
|
-
function
|
|
3479
|
-
return t.replace(
|
|
3491
|
+
function ys(t) {
|
|
3492
|
+
return t.replace(Cn, "/");
|
|
3480
3493
|
}
|
|
3481
3494
|
|
|
3482
|
-
|
|
3495
|
+
var vs = rt.removeDuplicateSlashes = ys;
|
|
3483
3496
|
|
|
3484
|
-
|
|
3497
|
+
function ms(t) {
|
|
3498
|
+
const e = [];
|
|
3499
|
+
const r = [];
|
|
3500
|
+
for (const n of t) {
|
|
3501
|
+
if (Es(n)) {
|
|
3502
|
+
e.push(n);
|
|
3503
|
+
} else {
|
|
3504
|
+
r.push(n);
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
return [ e, r ];
|
|
3508
|
+
}
|
|
3509
|
+
|
|
3510
|
+
var Ss = rt.partitionAbsoluteAndRelative = ms;
|
|
3511
|
+
|
|
3512
|
+
function Es(t) {
|
|
3513
|
+
return yn.isAbsolute(t);
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
gn = rt.isAbsolute = Es;
|
|
3517
|
+
|
|
3518
|
+
var As = {};
|
|
3485
3519
|
|
|
3486
3520
|
"use strict";
|
|
3487
3521
|
|
|
3488
|
-
const
|
|
3522
|
+
const bs = d.default;
|
|
3489
3523
|
|
|
3490
|
-
const
|
|
3524
|
+
const Rs = bs.PassThrough;
|
|
3491
3525
|
|
|
3492
|
-
const
|
|
3526
|
+
const Ps = Array.prototype.slice;
|
|
3493
3527
|
|
|
3494
|
-
var
|
|
3528
|
+
var xs = Cs;
|
|
3495
3529
|
|
|
3496
|
-
function
|
|
3530
|
+
function Cs() {
|
|
3497
3531
|
const t = [];
|
|
3498
|
-
const e =
|
|
3532
|
+
const e = Ps.call(arguments);
|
|
3499
3533
|
let r = false;
|
|
3500
3534
|
let n = e[e.length - 1];
|
|
3501
3535
|
if (n && !Array.isArray(n) && n.pipe == null) {
|
|
@@ -3511,10 +3545,10 @@ function As() {
|
|
|
3511
3545
|
if (n.highWaterMark == null) {
|
|
3512
3546
|
n.highWaterMark = 64 * 1024;
|
|
3513
3547
|
}
|
|
3514
|
-
const o =
|
|
3548
|
+
const o = Rs(n);
|
|
3515
3549
|
function a() {
|
|
3516
3550
|
for (let e = 0, r = arguments.length; e < r; e++) {
|
|
3517
|
-
t.push(
|
|
3551
|
+
t.push(ws(arguments[e], n));
|
|
3518
3552
|
}
|
|
3519
3553
|
u();
|
|
3520
3554
|
return this;
|
|
@@ -3588,10 +3622,10 @@ function As() {
|
|
|
3588
3622
|
return o;
|
|
3589
3623
|
}
|
|
3590
3624
|
|
|
3591
|
-
function
|
|
3625
|
+
function ws(t, e) {
|
|
3592
3626
|
if (!Array.isArray(t)) {
|
|
3593
3627
|
if (!t._readableState && t.pipe) {
|
|
3594
|
-
t = t.pipe(
|
|
3628
|
+
t = t.pipe(Rs(e));
|
|
3595
3629
|
}
|
|
3596
3630
|
if (!t._readableState || !t.pause || !t.pipe) {
|
|
3597
3631
|
throw new Error("Only readable stream can be merged.");
|
|
@@ -3599,61 +3633,61 @@ function bs(t, e) {
|
|
|
3599
3633
|
t.pause();
|
|
3600
3634
|
} else {
|
|
3601
3635
|
for (let r = 0, n = t.length; r < n; r++) {
|
|
3602
|
-
t[r] =
|
|
3636
|
+
t[r] = ws(t[r], e);
|
|
3603
3637
|
}
|
|
3604
3638
|
}
|
|
3605
3639
|
return t;
|
|
3606
3640
|
}
|
|
3607
3641
|
|
|
3608
|
-
const
|
|
3642
|
+
const Ts = t.getDefaultExportFromCjs(xs);
|
|
3609
3643
|
|
|
3610
3644
|
"use strict";
|
|
3611
3645
|
|
|
3612
|
-
Object.defineProperty(
|
|
3646
|
+
Object.defineProperty(As, "__esModule", {
|
|
3613
3647
|
value: true
|
|
3614
3648
|
});
|
|
3615
3649
|
|
|
3616
|
-
var
|
|
3650
|
+
var Os = As.merge = void 0;
|
|
3617
3651
|
|
|
3618
|
-
const
|
|
3652
|
+
const ks = xs;
|
|
3619
3653
|
|
|
3620
|
-
function
|
|
3621
|
-
const e =
|
|
3654
|
+
function Ls(t) {
|
|
3655
|
+
const e = ks(t);
|
|
3622
3656
|
t.forEach((t => {
|
|
3623
3657
|
t.once("error", (t => e.emit("error", t)));
|
|
3624
3658
|
}));
|
|
3625
|
-
e.once("close", (() =>
|
|
3626
|
-
e.once("end", (() =>
|
|
3659
|
+
e.once("close", (() => Hs(t)));
|
|
3660
|
+
e.once("end", (() => Hs(t)));
|
|
3627
3661
|
return e;
|
|
3628
3662
|
}
|
|
3629
3663
|
|
|
3630
|
-
|
|
3664
|
+
Os = As.merge = Ls;
|
|
3631
3665
|
|
|
3632
|
-
function
|
|
3666
|
+
function Hs(t) {
|
|
3633
3667
|
t.forEach((t => t.emit("close")));
|
|
3634
3668
|
}
|
|
3635
3669
|
|
|
3636
|
-
var
|
|
3670
|
+
var Ds = {};
|
|
3637
3671
|
|
|
3638
3672
|
"use strict";
|
|
3639
3673
|
|
|
3640
|
-
Object.defineProperty(
|
|
3674
|
+
Object.defineProperty(Ds, "__esModule", {
|
|
3641
3675
|
value: true
|
|
3642
3676
|
});
|
|
3643
3677
|
|
|
3644
|
-
var
|
|
3678
|
+
var Fs = Ds.isEmpty = $s = Ds.isString = void 0;
|
|
3645
3679
|
|
|
3646
|
-
function
|
|
3680
|
+
function Ms(t) {
|
|
3647
3681
|
return typeof t === "string";
|
|
3648
3682
|
}
|
|
3649
3683
|
|
|
3650
|
-
var
|
|
3684
|
+
var $s = Ds.isString = Ms;
|
|
3651
3685
|
|
|
3652
|
-
function
|
|
3686
|
+
function js(t) {
|
|
3653
3687
|
return t === "";
|
|
3654
3688
|
}
|
|
3655
3689
|
|
|
3656
|
-
|
|
3690
|
+
Fs = Ds.isEmpty = js;
|
|
3657
3691
|
|
|
3658
3692
|
"use strict";
|
|
3659
3693
|
|
|
@@ -3661,35 +3695,35 @@ Object.defineProperty(v, "__esModule", {
|
|
|
3661
3695
|
value: true
|
|
3662
3696
|
});
|
|
3663
3697
|
|
|
3664
|
-
var
|
|
3698
|
+
var Is = v.string = Zs = v.stream = Xs = v.pattern = Vs = v.path = Ws = v.fs = qs = v.errno = Bs = v.array = void 0;
|
|
3665
3699
|
|
|
3666
|
-
const
|
|
3700
|
+
const Ns = m;
|
|
3667
3701
|
|
|
3668
|
-
var
|
|
3702
|
+
var Bs = v.array = Ns;
|
|
3669
3703
|
|
|
3670
|
-
const
|
|
3704
|
+
const Gs = R;
|
|
3671
3705
|
|
|
3672
|
-
var
|
|
3706
|
+
var qs = v.errno = Gs;
|
|
3673
3707
|
|
|
3674
|
-
const
|
|
3708
|
+
const Us = C;
|
|
3675
3709
|
|
|
3676
|
-
var
|
|
3710
|
+
var Ws = v.fs = Us;
|
|
3677
3711
|
|
|
3678
|
-
const
|
|
3712
|
+
const Ks = k;
|
|
3679
3713
|
|
|
3680
|
-
var
|
|
3714
|
+
var Vs = v.path = Ks;
|
|
3681
3715
|
|
|
3682
|
-
const
|
|
3716
|
+
const Qs = rt;
|
|
3683
3717
|
|
|
3684
|
-
var
|
|
3718
|
+
var Xs = v.pattern = Qs;
|
|
3685
3719
|
|
|
3686
|
-
const
|
|
3720
|
+
const Ys = As;
|
|
3687
3721
|
|
|
3688
|
-
var
|
|
3722
|
+
var Zs = v.stream = Ys;
|
|
3689
3723
|
|
|
3690
|
-
const
|
|
3724
|
+
const zs = Ds;
|
|
3691
3725
|
|
|
3692
|
-
|
|
3726
|
+
Is = v.string = zs;
|
|
3693
3727
|
|
|
3694
3728
|
"use strict";
|
|
3695
3729
|
|
|
@@ -3697,70 +3731,70 @@ Object.defineProperty(y, "__esModule", {
|
|
|
3697
3731
|
value: true
|
|
3698
3732
|
});
|
|
3699
3733
|
|
|
3700
|
-
var
|
|
3734
|
+
var Js = y.convertPatternGroupToTask = hi = y.convertPatternGroupsToTasks = fi = y.groupPatternsByBaseDirectory = ci = y.getNegativePatternsAsPositive = ai = y.getPositivePatterns = ii = y.convertPatternsToTasks = ri = y.generate = void 0;
|
|
3701
3735
|
|
|
3702
|
-
const
|
|
3736
|
+
const ti = v;
|
|
3703
3737
|
|
|
3704
|
-
function
|
|
3705
|
-
const r =
|
|
3706
|
-
const n =
|
|
3707
|
-
const s =
|
|
3708
|
-
const i =
|
|
3709
|
-
const o = s.filter((t =>
|
|
3710
|
-
const a = s.filter((t =>
|
|
3711
|
-
const u =
|
|
3712
|
-
const c =
|
|
3738
|
+
function ei(t, e) {
|
|
3739
|
+
const r = ni(t, e);
|
|
3740
|
+
const n = ni(e.ignore, e);
|
|
3741
|
+
const s = oi(r);
|
|
3742
|
+
const i = ui(r, n);
|
|
3743
|
+
const o = s.filter((t => ti.pattern.isStaticPattern(t, e)));
|
|
3744
|
+
const a = s.filter((t => ti.pattern.isDynamicPattern(t, e)));
|
|
3745
|
+
const u = si(o, i, false);
|
|
3746
|
+
const c = si(a, i, true);
|
|
3713
3747
|
return u.concat(c);
|
|
3714
3748
|
}
|
|
3715
3749
|
|
|
3716
|
-
var
|
|
3750
|
+
var ri = y.generate = ei;
|
|
3717
3751
|
|
|
3718
|
-
function
|
|
3752
|
+
function ni(t, e) {
|
|
3719
3753
|
let r = t;
|
|
3720
3754
|
if (e.braceExpansion) {
|
|
3721
|
-
r =
|
|
3755
|
+
r = ti.pattern.expandPatternsWithBraceExpansion(r);
|
|
3722
3756
|
}
|
|
3723
3757
|
if (e.baseNameMatch) {
|
|
3724
3758
|
r = r.map((t => t.includes("/") ? t : `**/${t}`));
|
|
3725
3759
|
}
|
|
3726
|
-
return r.map((t =>
|
|
3760
|
+
return r.map((t => ti.pattern.removeDuplicateSlashes(t)));
|
|
3727
3761
|
}
|
|
3728
3762
|
|
|
3729
|
-
function
|
|
3763
|
+
function si(t, e, r) {
|
|
3730
3764
|
const n = [];
|
|
3731
|
-
const s =
|
|
3732
|
-
const i =
|
|
3733
|
-
const o =
|
|
3734
|
-
const a =
|
|
3735
|
-
n.push(...
|
|
3765
|
+
const s = ti.pattern.getPatternsOutsideCurrentDirectory(t);
|
|
3766
|
+
const i = ti.pattern.getPatternsInsideCurrentDirectory(t);
|
|
3767
|
+
const o = li(s);
|
|
3768
|
+
const a = li(i);
|
|
3769
|
+
n.push(...pi(o, e, r));
|
|
3736
3770
|
if ("." in a) {
|
|
3737
|
-
n.push(
|
|
3771
|
+
n.push(di(".", i, e, r));
|
|
3738
3772
|
} else {
|
|
3739
|
-
n.push(...
|
|
3773
|
+
n.push(...pi(a, e, r));
|
|
3740
3774
|
}
|
|
3741
3775
|
return n;
|
|
3742
3776
|
}
|
|
3743
3777
|
|
|
3744
|
-
var
|
|
3778
|
+
var ii = y.convertPatternsToTasks = si;
|
|
3745
3779
|
|
|
3746
|
-
function
|
|
3747
|
-
return
|
|
3780
|
+
function oi(t) {
|
|
3781
|
+
return ti.pattern.getPositivePatterns(t);
|
|
3748
3782
|
}
|
|
3749
3783
|
|
|
3750
|
-
var
|
|
3784
|
+
var ai = y.getPositivePatterns = oi;
|
|
3751
3785
|
|
|
3752
|
-
function
|
|
3753
|
-
const r =
|
|
3754
|
-
const n = r.map(
|
|
3786
|
+
function ui(t, e) {
|
|
3787
|
+
const r = ti.pattern.getNegativePatterns(t).concat(e);
|
|
3788
|
+
const n = r.map(ti.pattern.convertToPositivePattern);
|
|
3755
3789
|
return n;
|
|
3756
3790
|
}
|
|
3757
3791
|
|
|
3758
|
-
var
|
|
3792
|
+
var ci = y.getNegativePatternsAsPositive = ui;
|
|
3759
3793
|
|
|
3760
|
-
function
|
|
3794
|
+
function li(t) {
|
|
3761
3795
|
const e = {};
|
|
3762
3796
|
return t.reduce(((t, e) => {
|
|
3763
|
-
const r =
|
|
3797
|
+
const r = ti.pattern.getBaseDirectory(e);
|
|
3764
3798
|
if (r in t) {
|
|
3765
3799
|
t[r].push(e);
|
|
3766
3800
|
} else {
|
|
@@ -3770,100 +3804,100 @@ function ii(t) {
|
|
|
3770
3804
|
}), e);
|
|
3771
3805
|
}
|
|
3772
3806
|
|
|
3773
|
-
var
|
|
3807
|
+
var fi = y.groupPatternsByBaseDirectory = li;
|
|
3774
3808
|
|
|
3775
|
-
function
|
|
3776
|
-
return Object.keys(t).map((n =>
|
|
3809
|
+
function pi(t, e, r) {
|
|
3810
|
+
return Object.keys(t).map((n => di(n, t[n], e, r)));
|
|
3777
3811
|
}
|
|
3778
3812
|
|
|
3779
|
-
var
|
|
3813
|
+
var hi = y.convertPatternGroupsToTasks = pi;
|
|
3780
3814
|
|
|
3781
|
-
function
|
|
3815
|
+
function di(t, e, r, n) {
|
|
3782
3816
|
return {
|
|
3783
3817
|
dynamic: n,
|
|
3784
3818
|
positive: e,
|
|
3785
3819
|
negative: r,
|
|
3786
3820
|
base: t,
|
|
3787
|
-
patterns: [].concat(e, r.map(
|
|
3821
|
+
patterns: [].concat(e, r.map(ti.pattern.convertToNegativePattern))
|
|
3788
3822
|
};
|
|
3789
3823
|
}
|
|
3790
3824
|
|
|
3791
|
-
|
|
3825
|
+
Js = y.convertPatternGroupToTask = di;
|
|
3792
3826
|
|
|
3793
|
-
var
|
|
3827
|
+
var _i = {};
|
|
3794
3828
|
|
|
3795
|
-
var
|
|
3829
|
+
var gi = {};
|
|
3796
3830
|
|
|
3797
|
-
var
|
|
3831
|
+
var yi = {};
|
|
3798
3832
|
|
|
3799
|
-
var
|
|
3833
|
+
var vi = {};
|
|
3800
3834
|
|
|
3801
|
-
var
|
|
3835
|
+
var mi = {};
|
|
3802
3836
|
|
|
3803
|
-
var
|
|
3837
|
+
var Si = {};
|
|
3804
3838
|
|
|
3805
|
-
var
|
|
3839
|
+
var Ei = {};
|
|
3806
3840
|
|
|
3807
|
-
var
|
|
3841
|
+
var Ai = {};
|
|
3808
3842
|
|
|
3809
|
-
var
|
|
3843
|
+
var bi = {};
|
|
3810
3844
|
|
|
3811
3845
|
"use strict";
|
|
3812
3846
|
|
|
3813
|
-
Object.defineProperty(
|
|
3847
|
+
Object.defineProperty(bi, "__esModule", {
|
|
3814
3848
|
value: true
|
|
3815
3849
|
});
|
|
3816
3850
|
|
|
3817
|
-
var
|
|
3851
|
+
var Ri = bi.read = void 0;
|
|
3818
3852
|
|
|
3819
|
-
function
|
|
3853
|
+
function Pi(t, e, r) {
|
|
3820
3854
|
e.fs.lstat(t, ((n, s) => {
|
|
3821
3855
|
if (n !== null) {
|
|
3822
|
-
|
|
3856
|
+
xi(r, n);
|
|
3823
3857
|
return;
|
|
3824
3858
|
}
|
|
3825
3859
|
if (!s.isSymbolicLink() || !e.followSymbolicLink) {
|
|
3826
|
-
|
|
3860
|
+
Ci(r, s);
|
|
3827
3861
|
return;
|
|
3828
3862
|
}
|
|
3829
3863
|
e.fs.stat(t, ((t, n) => {
|
|
3830
3864
|
if (t !== null) {
|
|
3831
3865
|
if (e.throwErrorOnBrokenSymbolicLink) {
|
|
3832
|
-
|
|
3866
|
+
xi(r, t);
|
|
3833
3867
|
return;
|
|
3834
3868
|
}
|
|
3835
|
-
|
|
3869
|
+
Ci(r, s);
|
|
3836
3870
|
return;
|
|
3837
3871
|
}
|
|
3838
3872
|
if (e.markSymbolicLink) {
|
|
3839
3873
|
n.isSymbolicLink = () => true;
|
|
3840
3874
|
}
|
|
3841
|
-
|
|
3875
|
+
Ci(r, n);
|
|
3842
3876
|
}));
|
|
3843
3877
|
}));
|
|
3844
3878
|
}
|
|
3845
3879
|
|
|
3846
|
-
|
|
3880
|
+
Ri = bi.read = Pi;
|
|
3847
3881
|
|
|
3848
|
-
function
|
|
3882
|
+
function xi(t, e) {
|
|
3849
3883
|
t(e);
|
|
3850
3884
|
}
|
|
3851
3885
|
|
|
3852
|
-
function
|
|
3886
|
+
function Ci(t, e) {
|
|
3853
3887
|
t(null, e);
|
|
3854
3888
|
}
|
|
3855
3889
|
|
|
3856
|
-
var
|
|
3890
|
+
var wi = {};
|
|
3857
3891
|
|
|
3858
3892
|
"use strict";
|
|
3859
3893
|
|
|
3860
|
-
Object.defineProperty(
|
|
3894
|
+
Object.defineProperty(wi, "__esModule", {
|
|
3861
3895
|
value: true
|
|
3862
3896
|
});
|
|
3863
3897
|
|
|
3864
|
-
var
|
|
3898
|
+
var Ti = wi.read = void 0;
|
|
3865
3899
|
|
|
3866
|
-
function
|
|
3900
|
+
function Oi(t, e) {
|
|
3867
3901
|
const r = e.fs.lstatSync(t);
|
|
3868
3902
|
if (!r.isSymbolicLink() || !e.followSymbolicLink) {
|
|
3869
3903
|
return r;
|
|
@@ -3882,11 +3916,11 @@ function Pi(t, e) {
|
|
|
3882
3916
|
}
|
|
3883
3917
|
}
|
|
3884
3918
|
|
|
3885
|
-
|
|
3919
|
+
Ti = wi.read = Oi;
|
|
3886
3920
|
|
|
3887
|
-
var
|
|
3921
|
+
var ki = {};
|
|
3888
3922
|
|
|
3889
|
-
var
|
|
3923
|
+
var Li = {};
|
|
3890
3924
|
|
|
3891
3925
|
(function(t) {
|
|
3892
3926
|
"use strict";
|
|
@@ -3908,23 +3942,23 @@ var Ci = {};
|
|
|
3908
3942
|
return Object.assign(Object.assign({}, t.FILE_SYSTEM_ADAPTER), e);
|
|
3909
3943
|
}
|
|
3910
3944
|
t.createFileSystemAdapter = r;
|
|
3911
|
-
})(
|
|
3945
|
+
})(Li);
|
|
3912
3946
|
|
|
3913
|
-
const
|
|
3947
|
+
const Hi = t.getDefaultExportFromCjs(Li);
|
|
3914
3948
|
|
|
3915
3949
|
"use strict";
|
|
3916
3950
|
|
|
3917
|
-
Object.defineProperty(
|
|
3951
|
+
Object.defineProperty(ki, "__esModule", {
|
|
3918
3952
|
value: true
|
|
3919
3953
|
});
|
|
3920
3954
|
|
|
3921
|
-
const
|
|
3955
|
+
const Di = Li;
|
|
3922
3956
|
|
|
3923
|
-
let
|
|
3957
|
+
let Fi = class Settings {
|
|
3924
3958
|
constructor(t = {}) {
|
|
3925
3959
|
this._options = t;
|
|
3926
3960
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
3927
|
-
this.fs =
|
|
3961
|
+
this.fs = Di.createFileSystemAdapter(this._options.fs);
|
|
3928
3962
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
3929
3963
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
3930
3964
|
}
|
|
@@ -3933,61 +3967,61 @@ let ki = class Settings {
|
|
|
3933
3967
|
}
|
|
3934
3968
|
};
|
|
3935
3969
|
|
|
3936
|
-
var
|
|
3970
|
+
var Mi = ki.default = Fi;
|
|
3937
3971
|
|
|
3938
3972
|
"use strict";
|
|
3939
3973
|
|
|
3940
|
-
Object.defineProperty(
|
|
3974
|
+
Object.defineProperty(Ai, "__esModule", {
|
|
3941
3975
|
value: true
|
|
3942
3976
|
});
|
|
3943
3977
|
|
|
3944
|
-
var
|
|
3978
|
+
var $i = Ai.statSync = qi = Ai.stat = Bi = Ai.Settings = void 0;
|
|
3945
3979
|
|
|
3946
|
-
const
|
|
3980
|
+
const ji = bi;
|
|
3947
3981
|
|
|
3948
|
-
const
|
|
3982
|
+
const Ii = wi;
|
|
3949
3983
|
|
|
3950
|
-
const
|
|
3984
|
+
const Ni = ki;
|
|
3951
3985
|
|
|
3952
|
-
var
|
|
3986
|
+
var Bi = Ai.Settings = Ni.default;
|
|
3953
3987
|
|
|
3954
|
-
function
|
|
3988
|
+
function Gi(t, e, r) {
|
|
3955
3989
|
if (typeof e === "function") {
|
|
3956
|
-
|
|
3990
|
+
ji.read(t, Wi(), e);
|
|
3957
3991
|
return;
|
|
3958
3992
|
}
|
|
3959
|
-
|
|
3993
|
+
ji.read(t, Wi(e), r);
|
|
3960
3994
|
}
|
|
3961
3995
|
|
|
3962
|
-
var
|
|
3996
|
+
var qi = Ai.stat = Gi;
|
|
3963
3997
|
|
|
3964
|
-
function
|
|
3965
|
-
const r =
|
|
3966
|
-
return
|
|
3998
|
+
function Ui(t, e) {
|
|
3999
|
+
const r = Wi(e);
|
|
4000
|
+
return Ii.read(t, r);
|
|
3967
4001
|
}
|
|
3968
4002
|
|
|
3969
|
-
|
|
4003
|
+
$i = Ai.statSync = Ui;
|
|
3970
4004
|
|
|
3971
|
-
function
|
|
3972
|
-
if (t instanceof
|
|
4005
|
+
function Wi(t = {}) {
|
|
4006
|
+
if (t instanceof Ni.default) {
|
|
3973
4007
|
return t;
|
|
3974
4008
|
}
|
|
3975
|
-
return new
|
|
4009
|
+
return new Ni.default(t);
|
|
3976
4010
|
}
|
|
3977
4011
|
|
|
3978
|
-
let
|
|
4012
|
+
let Ki;
|
|
3979
4013
|
|
|
3980
|
-
var
|
|
4014
|
+
var Vi = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : t.commonjsGlobal) : t => (Ki || (Ki = Promise.resolve())).then(t).catch((t => setTimeout((() => {
|
|
3981
4015
|
throw t;
|
|
3982
4016
|
}), 0)));
|
|
3983
4017
|
|
|
3984
|
-
const
|
|
4018
|
+
const Qi = t.getDefaultExportFromCjs(Vi);
|
|
3985
4019
|
|
|
3986
|
-
var
|
|
4020
|
+
var Xi = Zi;
|
|
3987
4021
|
|
|
3988
|
-
const
|
|
4022
|
+
const Yi = Vi;
|
|
3989
4023
|
|
|
3990
|
-
function
|
|
4024
|
+
function Zi(t, e) {
|
|
3991
4025
|
let r, n, s;
|
|
3992
4026
|
let i = true;
|
|
3993
4027
|
if (Array.isArray(t)) {
|
|
@@ -4003,7 +4037,7 @@ function Ki(t, e) {
|
|
|
4003
4037
|
if (e) e(t, r);
|
|
4004
4038
|
e = null;
|
|
4005
4039
|
}
|
|
4006
|
-
if (i)
|
|
4040
|
+
if (i) Yi(n); else n();
|
|
4007
4041
|
}
|
|
4008
4042
|
function a(t, e, s) {
|
|
4009
4043
|
r[t] = s;
|
|
@@ -4029,49 +4063,49 @@ function Ki(t, e) {
|
|
|
4029
4063
|
i = false;
|
|
4030
4064
|
}
|
|
4031
4065
|
|
|
4032
|
-
const
|
|
4066
|
+
const zi = t.getDefaultExportFromCjs(Xi);
|
|
4033
4067
|
|
|
4034
|
-
var
|
|
4068
|
+
var Ji = {};
|
|
4035
4069
|
|
|
4036
4070
|
"use strict";
|
|
4037
4071
|
|
|
4038
|
-
Object.defineProperty(
|
|
4072
|
+
Object.defineProperty(Ji, "__esModule", {
|
|
4039
4073
|
value: true
|
|
4040
4074
|
});
|
|
4041
4075
|
|
|
4042
|
-
var
|
|
4076
|
+
var to = Ji.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4043
4077
|
|
|
4044
|
-
const
|
|
4078
|
+
const eo = process.versions.node.split(".");
|
|
4045
4079
|
|
|
4046
|
-
if (
|
|
4080
|
+
if (eo[0] === undefined || eo[1] === undefined) {
|
|
4047
4081
|
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
4048
4082
|
}
|
|
4049
4083
|
|
|
4050
|
-
const
|
|
4084
|
+
const ro = Number.parseInt(eo[0], 10);
|
|
4051
4085
|
|
|
4052
|
-
const
|
|
4086
|
+
const no = Number.parseInt(eo[1], 10);
|
|
4053
4087
|
|
|
4054
|
-
const
|
|
4088
|
+
const so = 10;
|
|
4055
4089
|
|
|
4056
|
-
const
|
|
4090
|
+
const io = 10;
|
|
4057
4091
|
|
|
4058
|
-
const
|
|
4092
|
+
const oo = ro > so;
|
|
4059
4093
|
|
|
4060
|
-
const
|
|
4094
|
+
const ao = ro === so && no >= io;
|
|
4061
4095
|
|
|
4062
|
-
|
|
4096
|
+
to = Ji.IS_SUPPORT_READDIR_WITH_FILE_TYPES = oo || ao;
|
|
4063
4097
|
|
|
4064
|
-
var
|
|
4098
|
+
var uo = {};
|
|
4065
4099
|
|
|
4066
|
-
var
|
|
4100
|
+
var co = {};
|
|
4067
4101
|
|
|
4068
4102
|
"use strict";
|
|
4069
4103
|
|
|
4070
|
-
Object.defineProperty(
|
|
4104
|
+
Object.defineProperty(co, "__esModule", {
|
|
4071
4105
|
value: true
|
|
4072
4106
|
});
|
|
4073
4107
|
|
|
4074
|
-
var
|
|
4108
|
+
var lo = co.createDirentFromStats = void 0;
|
|
4075
4109
|
|
|
4076
4110
|
class DirentFromStats {
|
|
4077
4111
|
constructor(t, e) {
|
|
@@ -4086,102 +4120,102 @@ class DirentFromStats {
|
|
|
4086
4120
|
}
|
|
4087
4121
|
}
|
|
4088
4122
|
|
|
4089
|
-
function
|
|
4123
|
+
function fo(t, e) {
|
|
4090
4124
|
return new DirentFromStats(t, e);
|
|
4091
4125
|
}
|
|
4092
4126
|
|
|
4093
|
-
|
|
4127
|
+
lo = co.createDirentFromStats = fo;
|
|
4094
4128
|
|
|
4095
4129
|
"use strict";
|
|
4096
4130
|
|
|
4097
|
-
Object.defineProperty(
|
|
4131
|
+
Object.defineProperty(uo, "__esModule", {
|
|
4098
4132
|
value: true
|
|
4099
4133
|
});
|
|
4100
4134
|
|
|
4101
|
-
var
|
|
4135
|
+
var po = uo.fs = void 0;
|
|
4102
4136
|
|
|
4103
|
-
const
|
|
4137
|
+
const ho = co;
|
|
4104
4138
|
|
|
4105
|
-
|
|
4139
|
+
po = uo.fs = ho;
|
|
4106
4140
|
|
|
4107
|
-
var
|
|
4141
|
+
var _o = {};
|
|
4108
4142
|
|
|
4109
4143
|
"use strict";
|
|
4110
4144
|
|
|
4111
|
-
Object.defineProperty(
|
|
4145
|
+
Object.defineProperty(_o, "__esModule", {
|
|
4112
4146
|
value: true
|
|
4113
4147
|
});
|
|
4114
4148
|
|
|
4115
|
-
var
|
|
4149
|
+
var go = _o.joinPathSegments = void 0;
|
|
4116
4150
|
|
|
4117
|
-
function
|
|
4151
|
+
function yo(t, e, r) {
|
|
4118
4152
|
if (t.endsWith(r)) {
|
|
4119
4153
|
return t + e;
|
|
4120
4154
|
}
|
|
4121
4155
|
return t + r + e;
|
|
4122
4156
|
}
|
|
4123
4157
|
|
|
4124
|
-
|
|
4158
|
+
go = _o.joinPathSegments = yo;
|
|
4125
4159
|
|
|
4126
4160
|
"use strict";
|
|
4127
4161
|
|
|
4128
|
-
Object.defineProperty(
|
|
4162
|
+
Object.defineProperty(Ei, "__esModule", {
|
|
4129
4163
|
value: true
|
|
4130
4164
|
});
|
|
4131
4165
|
|
|
4132
|
-
var
|
|
4166
|
+
var vo = Ei.readdir = Co = Ei.readdirWithFileTypes = Po = Ei.read = void 0;
|
|
4133
4167
|
|
|
4134
|
-
const
|
|
4168
|
+
const mo = Ai;
|
|
4135
4169
|
|
|
4136
|
-
const
|
|
4170
|
+
const So = Xi;
|
|
4137
4171
|
|
|
4138
|
-
const
|
|
4172
|
+
const Eo = Ji;
|
|
4139
4173
|
|
|
4140
|
-
const
|
|
4174
|
+
const Ao = uo;
|
|
4141
4175
|
|
|
4142
|
-
const
|
|
4176
|
+
const bo = _o;
|
|
4143
4177
|
|
|
4144
|
-
function
|
|
4145
|
-
if (!e.stats &&
|
|
4146
|
-
|
|
4178
|
+
function Ro(t, e, r) {
|
|
4179
|
+
if (!e.stats && Eo.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
4180
|
+
xo(t, e, r);
|
|
4147
4181
|
return;
|
|
4148
4182
|
}
|
|
4149
|
-
|
|
4183
|
+
To(t, e, r);
|
|
4150
4184
|
}
|
|
4151
4185
|
|
|
4152
|
-
var
|
|
4186
|
+
var Po = Ei.read = Ro;
|
|
4153
4187
|
|
|
4154
|
-
function
|
|
4188
|
+
function xo(t, e, r) {
|
|
4155
4189
|
e.fs.readdir(t, {
|
|
4156
4190
|
withFileTypes: true
|
|
4157
4191
|
}, ((n, s) => {
|
|
4158
4192
|
if (n !== null) {
|
|
4159
|
-
|
|
4193
|
+
Oo(r, n);
|
|
4160
4194
|
return;
|
|
4161
4195
|
}
|
|
4162
4196
|
const i = s.map((r => ({
|
|
4163
4197
|
dirent: r,
|
|
4164
4198
|
name: r.name,
|
|
4165
|
-
path:
|
|
4199
|
+
path: bo.joinPathSegments(t, r.name, e.pathSegmentSeparator)
|
|
4166
4200
|
})));
|
|
4167
4201
|
if (!e.followSymbolicLinks) {
|
|
4168
|
-
|
|
4202
|
+
ko(r, i);
|
|
4169
4203
|
return;
|
|
4170
4204
|
}
|
|
4171
|
-
const o = i.map((t =>
|
|
4172
|
-
|
|
4205
|
+
const o = i.map((t => wo(t, e)));
|
|
4206
|
+
So(o, ((t, e) => {
|
|
4173
4207
|
if (t !== null) {
|
|
4174
|
-
|
|
4208
|
+
Oo(r, t);
|
|
4175
4209
|
return;
|
|
4176
4210
|
}
|
|
4177
|
-
|
|
4211
|
+
ko(r, e);
|
|
4178
4212
|
}));
|
|
4179
4213
|
}));
|
|
4180
4214
|
}
|
|
4181
4215
|
|
|
4182
|
-
var
|
|
4216
|
+
var Co = Ei.readdirWithFileTypes = xo;
|
|
4183
4217
|
|
|
4184
|
-
function
|
|
4218
|
+
function wo(t, e) {
|
|
4185
4219
|
return r => {
|
|
4186
4220
|
if (!t.dirent.isSymbolicLink()) {
|
|
4187
4221
|
r(null, t);
|
|
@@ -4196,22 +4230,22 @@ function bo(t, e) {
|
|
|
4196
4230
|
r(null, t);
|
|
4197
4231
|
return;
|
|
4198
4232
|
}
|
|
4199
|
-
t.dirent =
|
|
4233
|
+
t.dirent = Ao.fs.createDirentFromStats(t.name, s);
|
|
4200
4234
|
r(null, t);
|
|
4201
4235
|
}));
|
|
4202
4236
|
};
|
|
4203
4237
|
}
|
|
4204
4238
|
|
|
4205
|
-
function
|
|
4239
|
+
function To(t, e, r) {
|
|
4206
4240
|
e.fs.readdir(t, ((n, s) => {
|
|
4207
4241
|
if (n !== null) {
|
|
4208
|
-
|
|
4242
|
+
Oo(r, n);
|
|
4209
4243
|
return;
|
|
4210
4244
|
}
|
|
4211
4245
|
const i = s.map((r => {
|
|
4212
|
-
const n =
|
|
4246
|
+
const n = bo.joinPathSegments(t, r, e.pathSegmentSeparator);
|
|
4213
4247
|
return t => {
|
|
4214
|
-
|
|
4248
|
+
mo.stat(n, e.fsStatSettings, ((s, i) => {
|
|
4215
4249
|
if (s !== null) {
|
|
4216
4250
|
t(s);
|
|
4217
4251
|
return;
|
|
@@ -4219,7 +4253,7 @@ function Ro(t, e, r) {
|
|
|
4219
4253
|
const o = {
|
|
4220
4254
|
name: r,
|
|
4221
4255
|
path: n,
|
|
4222
|
-
dirent:
|
|
4256
|
+
dirent: Ao.fs.createDirentFromStats(r, i)
|
|
4223
4257
|
};
|
|
4224
4258
|
if (e.stats) {
|
|
4225
4259
|
o.stats = i;
|
|
@@ -4228,54 +4262,54 @@ function Ro(t, e, r) {
|
|
|
4228
4262
|
}));
|
|
4229
4263
|
};
|
|
4230
4264
|
}));
|
|
4231
|
-
|
|
4265
|
+
So(i, ((t, e) => {
|
|
4232
4266
|
if (t !== null) {
|
|
4233
|
-
|
|
4267
|
+
Oo(r, t);
|
|
4234
4268
|
return;
|
|
4235
4269
|
}
|
|
4236
|
-
|
|
4270
|
+
ko(r, e);
|
|
4237
4271
|
}));
|
|
4238
4272
|
}));
|
|
4239
4273
|
}
|
|
4240
4274
|
|
|
4241
|
-
|
|
4275
|
+
vo = Ei.readdir = To;
|
|
4242
4276
|
|
|
4243
|
-
function
|
|
4277
|
+
function Oo(t, e) {
|
|
4244
4278
|
t(e);
|
|
4245
4279
|
}
|
|
4246
4280
|
|
|
4247
|
-
function
|
|
4281
|
+
function ko(t, e) {
|
|
4248
4282
|
t(null, e);
|
|
4249
4283
|
}
|
|
4250
4284
|
|
|
4251
|
-
var
|
|
4285
|
+
var Lo = {};
|
|
4252
4286
|
|
|
4253
4287
|
"use strict";
|
|
4254
4288
|
|
|
4255
|
-
Object.defineProperty(
|
|
4289
|
+
Object.defineProperty(Lo, "__esModule", {
|
|
4256
4290
|
value: true
|
|
4257
4291
|
});
|
|
4258
4292
|
|
|
4259
|
-
var
|
|
4293
|
+
var Ho = Lo.readdir = Bo = Lo.readdirWithFileTypes = Io = Lo.read = void 0;
|
|
4260
4294
|
|
|
4261
|
-
const
|
|
4295
|
+
const Do = Ai;
|
|
4262
4296
|
|
|
4263
|
-
const
|
|
4297
|
+
const Fo = Ji;
|
|
4264
4298
|
|
|
4265
|
-
const
|
|
4299
|
+
const Mo = uo;
|
|
4266
4300
|
|
|
4267
|
-
const
|
|
4301
|
+
const $o = _o;
|
|
4268
4302
|
|
|
4269
|
-
function
|
|
4270
|
-
if (!e.stats &&
|
|
4271
|
-
return
|
|
4303
|
+
function jo(t, e) {
|
|
4304
|
+
if (!e.stats && Fo.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
4305
|
+
return No(t, e);
|
|
4272
4306
|
}
|
|
4273
|
-
return
|
|
4307
|
+
return Go(t, e);
|
|
4274
4308
|
}
|
|
4275
4309
|
|
|
4276
|
-
var
|
|
4310
|
+
var Io = Lo.read = jo;
|
|
4277
4311
|
|
|
4278
|
-
function
|
|
4312
|
+
function No(t, e) {
|
|
4279
4313
|
const r = e.fs.readdirSync(t, {
|
|
4280
4314
|
withFileTypes: true
|
|
4281
4315
|
});
|
|
@@ -4283,12 +4317,12 @@ function Fo(t, e) {
|
|
|
4283
4317
|
const n = {
|
|
4284
4318
|
dirent: r,
|
|
4285
4319
|
name: r.name,
|
|
4286
|
-
path:
|
|
4320
|
+
path: $o.joinPathSegments(t, r.name, e.pathSegmentSeparator)
|
|
4287
4321
|
};
|
|
4288
4322
|
if (n.dirent.isSymbolicLink() && e.followSymbolicLinks) {
|
|
4289
4323
|
try {
|
|
4290
4324
|
const t = e.fs.statSync(n.path);
|
|
4291
|
-
n.dirent =
|
|
4325
|
+
n.dirent = Mo.fs.createDirentFromStats(n.name, t);
|
|
4292
4326
|
} catch (t) {
|
|
4293
4327
|
if (e.throwErrorOnBrokenSymbolicLink) {
|
|
4294
4328
|
throw t;
|
|
@@ -4299,17 +4333,17 @@ function Fo(t, e) {
|
|
|
4299
4333
|
}));
|
|
4300
4334
|
}
|
|
4301
4335
|
|
|
4302
|
-
var
|
|
4336
|
+
var Bo = Lo.readdirWithFileTypes = No;
|
|
4303
4337
|
|
|
4304
|
-
function
|
|
4338
|
+
function Go(t, e) {
|
|
4305
4339
|
const r = e.fs.readdirSync(t);
|
|
4306
4340
|
return r.map((r => {
|
|
4307
|
-
const n =
|
|
4308
|
-
const s =
|
|
4341
|
+
const n = $o.joinPathSegments(t, r, e.pathSegmentSeparator);
|
|
4342
|
+
const s = Do.statSync(n, e.fsStatSettings);
|
|
4309
4343
|
const i = {
|
|
4310
4344
|
name: r,
|
|
4311
4345
|
path: n,
|
|
4312
|
-
dirent:
|
|
4346
|
+
dirent: Mo.fs.createDirentFromStats(r, s)
|
|
4313
4347
|
};
|
|
4314
4348
|
if (e.stats) {
|
|
4315
4349
|
i.stats = s;
|
|
@@ -4318,11 +4352,11 @@ function Mo(t, e) {
|
|
|
4318
4352
|
}));
|
|
4319
4353
|
}
|
|
4320
4354
|
|
|
4321
|
-
|
|
4355
|
+
Ho = Lo.readdir = Go;
|
|
4322
4356
|
|
|
4323
|
-
var
|
|
4357
|
+
var qo = {};
|
|
4324
4358
|
|
|
4325
|
-
var
|
|
4359
|
+
var Uo = {};
|
|
4326
4360
|
|
|
4327
4361
|
(function(t) {
|
|
4328
4362
|
"use strict";
|
|
@@ -4346,31 +4380,31 @@ var Io = {};
|
|
|
4346
4380
|
return Object.assign(Object.assign({}, t.FILE_SYSTEM_ADAPTER), e);
|
|
4347
4381
|
}
|
|
4348
4382
|
t.createFileSystemAdapter = r;
|
|
4349
|
-
})(
|
|
4383
|
+
})(Uo);
|
|
4350
4384
|
|
|
4351
|
-
const
|
|
4385
|
+
const Wo = t.getDefaultExportFromCjs(Uo);
|
|
4352
4386
|
|
|
4353
4387
|
"use strict";
|
|
4354
4388
|
|
|
4355
|
-
Object.defineProperty(
|
|
4389
|
+
Object.defineProperty(qo, "__esModule", {
|
|
4356
4390
|
value: true
|
|
4357
4391
|
});
|
|
4358
4392
|
|
|
4359
|
-
const
|
|
4393
|
+
const Ko = p.default;
|
|
4360
4394
|
|
|
4361
|
-
const
|
|
4395
|
+
const Vo = Ai;
|
|
4362
4396
|
|
|
4363
|
-
const
|
|
4397
|
+
const Qo = Uo;
|
|
4364
4398
|
|
|
4365
|
-
let
|
|
4399
|
+
let Xo = class Settings {
|
|
4366
4400
|
constructor(t = {}) {
|
|
4367
4401
|
this._options = t;
|
|
4368
4402
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
4369
|
-
this.fs =
|
|
4370
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
4403
|
+
this.fs = Qo.createFileSystemAdapter(this._options.fs);
|
|
4404
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, Ko.sep);
|
|
4371
4405
|
this.stats = this._getValue(this._options.stats, false);
|
|
4372
4406
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
4373
|
-
this.fsStatSettings = new
|
|
4407
|
+
this.fsStatSettings = new Vo.Settings({
|
|
4374
4408
|
followSymbolicLink: this.followSymbolicLinks,
|
|
4375
4409
|
fs: this.fs,
|
|
4376
4410
|
throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
|
|
@@ -4381,55 +4415,55 @@ let Uo = class Settings {
|
|
|
4381
4415
|
}
|
|
4382
4416
|
};
|
|
4383
4417
|
|
|
4384
|
-
var
|
|
4418
|
+
var Yo = qo.default = Xo;
|
|
4385
4419
|
|
|
4386
4420
|
"use strict";
|
|
4387
4421
|
|
|
4388
|
-
Object.defineProperty(
|
|
4422
|
+
Object.defineProperty(Si, "__esModule", {
|
|
4389
4423
|
value: true
|
|
4390
4424
|
});
|
|
4391
4425
|
|
|
4392
|
-
var
|
|
4426
|
+
var Zo = Si.Settings = sa = Si.scandirSync = ra = Si.scandir = void 0;
|
|
4393
4427
|
|
|
4394
|
-
const
|
|
4428
|
+
const zo = Ei;
|
|
4395
4429
|
|
|
4396
|
-
const
|
|
4430
|
+
const Jo = Lo;
|
|
4397
4431
|
|
|
4398
|
-
const
|
|
4432
|
+
const ta = qo;
|
|
4399
4433
|
|
|
4400
|
-
|
|
4434
|
+
Zo = Si.Settings = ta.default;
|
|
4401
4435
|
|
|
4402
|
-
function
|
|
4436
|
+
function ea(t, e, r) {
|
|
4403
4437
|
if (typeof e === "function") {
|
|
4404
|
-
|
|
4438
|
+
zo.read(t, ia(), e);
|
|
4405
4439
|
return;
|
|
4406
4440
|
}
|
|
4407
|
-
|
|
4441
|
+
zo.read(t, ia(e), r);
|
|
4408
4442
|
}
|
|
4409
4443
|
|
|
4410
|
-
var
|
|
4444
|
+
var ra = Si.scandir = ea;
|
|
4411
4445
|
|
|
4412
|
-
function
|
|
4413
|
-
const r =
|
|
4414
|
-
return
|
|
4446
|
+
function na(t, e) {
|
|
4447
|
+
const r = ia(e);
|
|
4448
|
+
return Jo.read(t, r);
|
|
4415
4449
|
}
|
|
4416
4450
|
|
|
4417
|
-
var
|
|
4451
|
+
var sa = Si.scandirSync = na;
|
|
4418
4452
|
|
|
4419
|
-
function
|
|
4420
|
-
if (t instanceof
|
|
4453
|
+
function ia(t = {}) {
|
|
4454
|
+
if (t instanceof ta.default) {
|
|
4421
4455
|
return t;
|
|
4422
4456
|
}
|
|
4423
|
-
return new
|
|
4457
|
+
return new ta.default(t);
|
|
4424
4458
|
}
|
|
4425
4459
|
|
|
4426
|
-
var
|
|
4460
|
+
var oa = {
|
|
4427
4461
|
exports: {}
|
|
4428
4462
|
};
|
|
4429
4463
|
|
|
4430
4464
|
"use strict";
|
|
4431
4465
|
|
|
4432
|
-
function
|
|
4466
|
+
function aa(t) {
|
|
4433
4467
|
var e = new t;
|
|
4434
4468
|
var r = e;
|
|
4435
4469
|
function n() {
|
|
@@ -4453,17 +4487,17 @@ function ra(t) {
|
|
|
4453
4487
|
};
|
|
4454
4488
|
}
|
|
4455
4489
|
|
|
4456
|
-
var
|
|
4490
|
+
var ua = aa;
|
|
4457
4491
|
|
|
4458
|
-
const
|
|
4492
|
+
const ca = t.getDefaultExportFromCjs(ua);
|
|
4459
4493
|
|
|
4460
|
-
var
|
|
4494
|
+
var la = oa.exports;
|
|
4461
4495
|
|
|
4462
4496
|
"use strict";
|
|
4463
4497
|
|
|
4464
|
-
var
|
|
4498
|
+
var fa = ua;
|
|
4465
4499
|
|
|
4466
|
-
function
|
|
4500
|
+
function pa(t, e, r) {
|
|
4467
4501
|
if (typeof t === "function") {
|
|
4468
4502
|
r = e;
|
|
4469
4503
|
e = t;
|
|
@@ -4472,15 +4506,15 @@ function aa(t, e, r) {
|
|
|
4472
4506
|
if (!(r >= 1)) {
|
|
4473
4507
|
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4474
4508
|
}
|
|
4475
|
-
var n =
|
|
4509
|
+
var n = fa(da);
|
|
4476
4510
|
var s = null;
|
|
4477
4511
|
var i = null;
|
|
4478
4512
|
var o = 0;
|
|
4479
4513
|
var a = null;
|
|
4480
4514
|
var u = {
|
|
4481
4515
|
push: _,
|
|
4482
|
-
drain:
|
|
4483
|
-
saturated:
|
|
4516
|
+
drain: ha,
|
|
4517
|
+
saturated: ha,
|
|
4484
4518
|
pause: l,
|
|
4485
4519
|
paused: false,
|
|
4486
4520
|
get concurrency() {
|
|
@@ -4503,7 +4537,7 @@ function aa(t, e, r) {
|
|
|
4503
4537
|
length: f,
|
|
4504
4538
|
getQueue: p,
|
|
4505
4539
|
unshift: g,
|
|
4506
|
-
empty:
|
|
4540
|
+
empty: ha,
|
|
4507
4541
|
kill: v,
|
|
4508
4542
|
killAndDrain: m,
|
|
4509
4543
|
error: S
|
|
@@ -4554,7 +4588,7 @@ function aa(t, e, r) {
|
|
|
4554
4588
|
f.context = t;
|
|
4555
4589
|
f.release = y;
|
|
4556
4590
|
f.value = c;
|
|
4557
|
-
f.callback = l ||
|
|
4591
|
+
f.callback = l || ha;
|
|
4558
4592
|
f.errorHandler = a;
|
|
4559
4593
|
if (o >= r || u.paused) {
|
|
4560
4594
|
if (i) {
|
|
@@ -4575,7 +4609,7 @@ function aa(t, e, r) {
|
|
|
4575
4609
|
f.context = t;
|
|
4576
4610
|
f.release = y;
|
|
4577
4611
|
f.value = c;
|
|
4578
|
-
f.callback = l ||
|
|
4612
|
+
f.callback = l || ha;
|
|
4579
4613
|
f.errorHandler = a;
|
|
4580
4614
|
if (o >= r || u.paused) {
|
|
4581
4615
|
if (s) {
|
|
@@ -4617,26 +4651,26 @@ function aa(t, e, r) {
|
|
|
4617
4651
|
function v() {
|
|
4618
4652
|
s = null;
|
|
4619
4653
|
i = null;
|
|
4620
|
-
u.drain =
|
|
4654
|
+
u.drain = ha;
|
|
4621
4655
|
}
|
|
4622
4656
|
function m() {
|
|
4623
4657
|
s = null;
|
|
4624
4658
|
i = null;
|
|
4625
4659
|
u.drain();
|
|
4626
|
-
u.drain =
|
|
4660
|
+
u.drain = ha;
|
|
4627
4661
|
}
|
|
4628
4662
|
function S(t) {
|
|
4629
4663
|
a = t;
|
|
4630
4664
|
}
|
|
4631
4665
|
}
|
|
4632
4666
|
|
|
4633
|
-
function
|
|
4667
|
+
function ha() {}
|
|
4634
4668
|
|
|
4635
|
-
function
|
|
4669
|
+
function da() {
|
|
4636
4670
|
this.value = null;
|
|
4637
|
-
this.callback =
|
|
4671
|
+
this.callback = ha;
|
|
4638
4672
|
this.next = null;
|
|
4639
|
-
this.release =
|
|
4673
|
+
this.release = ha;
|
|
4640
4674
|
this.context = null;
|
|
4641
4675
|
this.errorHandler = null;
|
|
4642
4676
|
var t = this;
|
|
@@ -4645,7 +4679,7 @@ function ca() {
|
|
|
4645
4679
|
var i = t.errorHandler;
|
|
4646
4680
|
var o = t.value;
|
|
4647
4681
|
t.value = null;
|
|
4648
|
-
t.callback =
|
|
4682
|
+
t.callback = ha;
|
|
4649
4683
|
if (t.errorHandler) {
|
|
4650
4684
|
i(r, o);
|
|
4651
4685
|
}
|
|
@@ -4654,7 +4688,7 @@ function ca() {
|
|
|
4654
4688
|
};
|
|
4655
4689
|
}
|
|
4656
4690
|
|
|
4657
|
-
function
|
|
4691
|
+
function _a(t, e, r) {
|
|
4658
4692
|
if (typeof t === "function") {
|
|
4659
4693
|
r = e;
|
|
4660
4694
|
e = t;
|
|
@@ -4665,7 +4699,7 @@ function la(t, e, r) {
|
|
|
4665
4699
|
r(null, t);
|
|
4666
4700
|
}), r);
|
|
4667
4701
|
}
|
|
4668
|
-
var s =
|
|
4702
|
+
var s = pa(t, n, r);
|
|
4669
4703
|
var i = s.push;
|
|
4670
4704
|
var o = s.unshift;
|
|
4671
4705
|
s.push = a;
|
|
@@ -4682,7 +4716,7 @@ function la(t, e, r) {
|
|
|
4682
4716
|
e(n);
|
|
4683
4717
|
}));
|
|
4684
4718
|
}));
|
|
4685
|
-
e.catch(
|
|
4719
|
+
e.catch(ha);
|
|
4686
4720
|
return e;
|
|
4687
4721
|
}
|
|
4688
4722
|
function u(t) {
|
|
@@ -4695,7 +4729,7 @@ function la(t, e, r) {
|
|
|
4695
4729
|
e(n);
|
|
4696
4730
|
}));
|
|
4697
4731
|
}));
|
|
4698
|
-
e.catch(
|
|
4732
|
+
e.catch(ha);
|
|
4699
4733
|
return e;
|
|
4700
4734
|
}
|
|
4701
4735
|
function c() {
|
|
@@ -4715,46 +4749,46 @@ function la(t, e, r) {
|
|
|
4715
4749
|
}
|
|
4716
4750
|
}
|
|
4717
4751
|
|
|
4718
|
-
|
|
4752
|
+
oa.exports = pa;
|
|
4719
4753
|
|
|
4720
|
-
var
|
|
4754
|
+
var ga = oa.exports.promise = _a;
|
|
4721
4755
|
|
|
4722
|
-
var
|
|
4756
|
+
var ya = oa.exports;
|
|
4723
4757
|
|
|
4724
|
-
const
|
|
4758
|
+
const va = t.getDefaultExportFromCjs(ya);
|
|
4725
4759
|
|
|
4726
|
-
var
|
|
4760
|
+
var ma = {};
|
|
4727
4761
|
|
|
4728
4762
|
"use strict";
|
|
4729
4763
|
|
|
4730
|
-
Object.defineProperty(
|
|
4764
|
+
Object.defineProperty(ma, "__esModule", {
|
|
4731
4765
|
value: true
|
|
4732
4766
|
});
|
|
4733
4767
|
|
|
4734
|
-
var
|
|
4768
|
+
var Sa = ma.joinPathSegments = xa = ma.replacePathSegmentSeparator = Ra = ma.isAppliedFilter = Aa = ma.isFatalError = void 0;
|
|
4735
4769
|
|
|
4736
|
-
function
|
|
4770
|
+
function Ea(t, e) {
|
|
4737
4771
|
if (t.errorFilter === null) {
|
|
4738
4772
|
return true;
|
|
4739
4773
|
}
|
|
4740
4774
|
return !t.errorFilter(e);
|
|
4741
4775
|
}
|
|
4742
4776
|
|
|
4743
|
-
var
|
|
4777
|
+
var Aa = ma.isFatalError = Ea;
|
|
4744
4778
|
|
|
4745
|
-
function
|
|
4779
|
+
function ba(t, e) {
|
|
4746
4780
|
return t === null || t(e);
|
|
4747
4781
|
}
|
|
4748
4782
|
|
|
4749
|
-
var
|
|
4783
|
+
var Ra = ma.isAppliedFilter = ba;
|
|
4750
4784
|
|
|
4751
|
-
function
|
|
4785
|
+
function Pa(t, e) {
|
|
4752
4786
|
return t.split(/[/\\]/).join(e);
|
|
4753
4787
|
}
|
|
4754
4788
|
|
|
4755
|
-
var
|
|
4789
|
+
var xa = ma.replacePathSegmentSeparator = Pa;
|
|
4756
4790
|
|
|
4757
|
-
function
|
|
4791
|
+
function Ca(t, e, r) {
|
|
4758
4792
|
if (t === "") {
|
|
4759
4793
|
return e;
|
|
4760
4794
|
}
|
|
@@ -4764,51 +4798,51 @@ function Aa(t, e, r) {
|
|
|
4764
4798
|
return t + r + e;
|
|
4765
4799
|
}
|
|
4766
4800
|
|
|
4767
|
-
|
|
4801
|
+
Sa = ma.joinPathSegments = Ca;
|
|
4768
4802
|
|
|
4769
|
-
var
|
|
4803
|
+
var wa = {};
|
|
4770
4804
|
|
|
4771
4805
|
"use strict";
|
|
4772
4806
|
|
|
4773
|
-
Object.defineProperty(
|
|
4807
|
+
Object.defineProperty(wa, "__esModule", {
|
|
4774
4808
|
value: true
|
|
4775
4809
|
});
|
|
4776
4810
|
|
|
4777
|
-
const
|
|
4811
|
+
const Ta = ma;
|
|
4778
4812
|
|
|
4779
|
-
let
|
|
4813
|
+
let Oa = class Reader {
|
|
4780
4814
|
constructor(t, e) {
|
|
4781
4815
|
this._root = t;
|
|
4782
4816
|
this._settings = e;
|
|
4783
|
-
this._root =
|
|
4817
|
+
this._root = Ta.replacePathSegmentSeparator(t, e.pathSegmentSeparator);
|
|
4784
4818
|
}
|
|
4785
4819
|
};
|
|
4786
4820
|
|
|
4787
|
-
var
|
|
4821
|
+
var ka = wa.default = Oa;
|
|
4788
4822
|
|
|
4789
4823
|
"use strict";
|
|
4790
4824
|
|
|
4791
|
-
Object.defineProperty(
|
|
4825
|
+
Object.defineProperty(mi, "__esModule", {
|
|
4792
4826
|
value: true
|
|
4793
4827
|
});
|
|
4794
4828
|
|
|
4795
|
-
const
|
|
4829
|
+
const La = g.default;
|
|
4796
4830
|
|
|
4797
|
-
const
|
|
4831
|
+
const Ha = Si;
|
|
4798
4832
|
|
|
4799
|
-
const
|
|
4833
|
+
const Da = ya;
|
|
4800
4834
|
|
|
4801
|
-
const
|
|
4835
|
+
const Fa = ma;
|
|
4802
4836
|
|
|
4803
|
-
const
|
|
4837
|
+
const Ma = wa;
|
|
4804
4838
|
|
|
4805
|
-
class AsyncReader extends
|
|
4839
|
+
class AsyncReader extends Ma.default {
|
|
4806
4840
|
constructor(t, e) {
|
|
4807
4841
|
super(t, e);
|
|
4808
4842
|
this._settings = e;
|
|
4809
|
-
this._scandir =
|
|
4810
|
-
this._emitter = new
|
|
4811
|
-
this._queue =
|
|
4843
|
+
this._scandir = Ha.scandir;
|
|
4844
|
+
this._emitter = new La.EventEmitter;
|
|
4845
|
+
this._queue = Da(this._worker.bind(this), this._settings.concurrency);
|
|
4812
4846
|
this._isFatalError = false;
|
|
4813
4847
|
this._isDestroyed = false;
|
|
4814
4848
|
this._queue.drain = () => {
|
|
@@ -4868,7 +4902,7 @@ class AsyncReader extends Oa.default {
|
|
|
4868
4902
|
}));
|
|
4869
4903
|
}
|
|
4870
4904
|
_handleError(t) {
|
|
4871
|
-
if (this._isDestroyed || !
|
|
4905
|
+
if (this._isDestroyed || !Fa.isFatalError(this._settings, t)) {
|
|
4872
4906
|
return;
|
|
4873
4907
|
}
|
|
4874
4908
|
this._isFatalError = true;
|
|
@@ -4881,12 +4915,12 @@ class AsyncReader extends Oa.default {
|
|
|
4881
4915
|
}
|
|
4882
4916
|
const r = t.path;
|
|
4883
4917
|
if (e !== undefined) {
|
|
4884
|
-
t.path =
|
|
4918
|
+
t.path = Fa.joinPathSegments(e, t.name, this._settings.pathSegmentSeparator);
|
|
4885
4919
|
}
|
|
4886
|
-
if (
|
|
4920
|
+
if (Fa.isAppliedFilter(this._settings.entryFilter, t)) {
|
|
4887
4921
|
this._emitEntry(t);
|
|
4888
4922
|
}
|
|
4889
|
-
if (t.dirent.isDirectory() &&
|
|
4923
|
+
if (t.dirent.isDirectory() && Fa.isAppliedFilter(this._settings.deepFilter, t)) {
|
|
4890
4924
|
this._pushToQueue(r, e === undefined ? undefined : t.path);
|
|
4891
4925
|
}
|
|
4892
4926
|
}
|
|
@@ -4895,65 +4929,65 @@ class AsyncReader extends Oa.default {
|
|
|
4895
4929
|
}
|
|
4896
4930
|
}
|
|
4897
4931
|
|
|
4898
|
-
var
|
|
4932
|
+
var $a = mi.default = AsyncReader;
|
|
4899
4933
|
|
|
4900
4934
|
"use strict";
|
|
4901
4935
|
|
|
4902
|
-
Object.defineProperty(
|
|
4936
|
+
Object.defineProperty(vi, "__esModule", {
|
|
4903
4937
|
value: true
|
|
4904
4938
|
});
|
|
4905
4939
|
|
|
4906
|
-
const
|
|
4940
|
+
const ja = mi;
|
|
4907
4941
|
|
|
4908
4942
|
class AsyncProvider {
|
|
4909
4943
|
constructor(t, e) {
|
|
4910
4944
|
this._root = t;
|
|
4911
4945
|
this._settings = e;
|
|
4912
|
-
this._reader = new
|
|
4946
|
+
this._reader = new ja.default(this._root, this._settings);
|
|
4913
4947
|
this._storage = [];
|
|
4914
4948
|
}
|
|
4915
4949
|
read(t) {
|
|
4916
4950
|
this._reader.onError((e => {
|
|
4917
|
-
|
|
4951
|
+
Na(t, e);
|
|
4918
4952
|
}));
|
|
4919
4953
|
this._reader.onEntry((t => {
|
|
4920
4954
|
this._storage.push(t);
|
|
4921
4955
|
}));
|
|
4922
4956
|
this._reader.onEnd((() => {
|
|
4923
|
-
|
|
4957
|
+
Ba(t, this._storage);
|
|
4924
4958
|
}));
|
|
4925
4959
|
this._reader.read();
|
|
4926
4960
|
}
|
|
4927
4961
|
}
|
|
4928
4962
|
|
|
4929
|
-
var
|
|
4963
|
+
var Ia = vi.default = AsyncProvider;
|
|
4930
4964
|
|
|
4931
|
-
function
|
|
4965
|
+
function Na(t, e) {
|
|
4932
4966
|
t(e);
|
|
4933
4967
|
}
|
|
4934
4968
|
|
|
4935
|
-
function
|
|
4969
|
+
function Ba(t, e) {
|
|
4936
4970
|
t(null, e);
|
|
4937
4971
|
}
|
|
4938
4972
|
|
|
4939
|
-
var
|
|
4973
|
+
var Ga = {};
|
|
4940
4974
|
|
|
4941
4975
|
"use strict";
|
|
4942
4976
|
|
|
4943
|
-
Object.defineProperty(
|
|
4977
|
+
Object.defineProperty(Ga, "__esModule", {
|
|
4944
4978
|
value: true
|
|
4945
4979
|
});
|
|
4946
4980
|
|
|
4947
|
-
const
|
|
4981
|
+
const qa = d.default;
|
|
4948
4982
|
|
|
4949
|
-
const
|
|
4983
|
+
const Ua = mi;
|
|
4950
4984
|
|
|
4951
4985
|
class StreamProvider {
|
|
4952
4986
|
constructor(t, e) {
|
|
4953
4987
|
this._root = t;
|
|
4954
4988
|
this._settings = e;
|
|
4955
|
-
this._reader = new
|
|
4956
|
-
this._stream = new
|
|
4989
|
+
this._reader = new Ua.default(this._root, this._settings);
|
|
4990
|
+
this._stream = new qa.Readable({
|
|
4957
4991
|
objectMode: true,
|
|
4958
4992
|
read: () => {},
|
|
4959
4993
|
destroy: () => {
|
|
@@ -4978,28 +5012,28 @@ class StreamProvider {
|
|
|
4978
5012
|
}
|
|
4979
5013
|
}
|
|
4980
5014
|
|
|
4981
|
-
var
|
|
5015
|
+
var Wa = Ga.default = StreamProvider;
|
|
4982
5016
|
|
|
4983
|
-
var
|
|
5017
|
+
var Ka = {};
|
|
4984
5018
|
|
|
4985
|
-
var
|
|
5019
|
+
var Va = {};
|
|
4986
5020
|
|
|
4987
5021
|
"use strict";
|
|
4988
5022
|
|
|
4989
|
-
Object.defineProperty(
|
|
5023
|
+
Object.defineProperty(Va, "__esModule", {
|
|
4990
5024
|
value: true
|
|
4991
5025
|
});
|
|
4992
5026
|
|
|
4993
|
-
const
|
|
5027
|
+
const Qa = Si;
|
|
4994
5028
|
|
|
4995
|
-
const
|
|
5029
|
+
const Xa = ma;
|
|
4996
5030
|
|
|
4997
|
-
const
|
|
5031
|
+
const Ya = wa;
|
|
4998
5032
|
|
|
4999
|
-
class SyncReader extends
|
|
5033
|
+
class SyncReader extends Ya.default {
|
|
5000
5034
|
constructor() {
|
|
5001
5035
|
super(...arguments);
|
|
5002
|
-
this._scandir =
|
|
5036
|
+
this._scandir = Qa.scandirSync;
|
|
5003
5037
|
this._storage = [];
|
|
5004
5038
|
this._queue = new Set;
|
|
5005
5039
|
}
|
|
@@ -5030,7 +5064,7 @@ class SyncReader extends Wa.default {
|
|
|
5030
5064
|
}
|
|
5031
5065
|
}
|
|
5032
5066
|
_handleError(t) {
|
|
5033
|
-
if (!
|
|
5067
|
+
if (!Xa.isFatalError(this._settings, t)) {
|
|
5034
5068
|
return;
|
|
5035
5069
|
}
|
|
5036
5070
|
throw t;
|
|
@@ -5038,12 +5072,12 @@ class SyncReader extends Wa.default {
|
|
|
5038
5072
|
_handleEntry(t, e) {
|
|
5039
5073
|
const r = t.path;
|
|
5040
5074
|
if (e !== undefined) {
|
|
5041
|
-
t.path =
|
|
5075
|
+
t.path = Xa.joinPathSegments(e, t.name, this._settings.pathSegmentSeparator);
|
|
5042
5076
|
}
|
|
5043
|
-
if (
|
|
5077
|
+
if (Xa.isAppliedFilter(this._settings.entryFilter, t)) {
|
|
5044
5078
|
this._pushToStorage(t);
|
|
5045
5079
|
}
|
|
5046
|
-
if (t.dirent.isDirectory() &&
|
|
5080
|
+
if (t.dirent.isDirectory() && Xa.isAppliedFilter(this._settings.deepFilter, t)) {
|
|
5047
5081
|
this._pushToQueue(r, e === undefined ? undefined : t.path);
|
|
5048
5082
|
}
|
|
5049
5083
|
}
|
|
@@ -5052,42 +5086,42 @@ class SyncReader extends Wa.default {
|
|
|
5052
5086
|
}
|
|
5053
5087
|
}
|
|
5054
5088
|
|
|
5055
|
-
var
|
|
5089
|
+
var Za = Va.default = SyncReader;
|
|
5056
5090
|
|
|
5057
5091
|
"use strict";
|
|
5058
5092
|
|
|
5059
|
-
Object.defineProperty(
|
|
5093
|
+
Object.defineProperty(Ka, "__esModule", {
|
|
5060
5094
|
value: true
|
|
5061
5095
|
});
|
|
5062
5096
|
|
|
5063
|
-
const
|
|
5097
|
+
const za = Va;
|
|
5064
5098
|
|
|
5065
5099
|
class SyncProvider {
|
|
5066
5100
|
constructor(t, e) {
|
|
5067
5101
|
this._root = t;
|
|
5068
5102
|
this._settings = e;
|
|
5069
|
-
this._reader = new
|
|
5103
|
+
this._reader = new za.default(this._root, this._settings);
|
|
5070
5104
|
}
|
|
5071
5105
|
read() {
|
|
5072
5106
|
return this._reader.read();
|
|
5073
5107
|
}
|
|
5074
5108
|
}
|
|
5075
5109
|
|
|
5076
|
-
var
|
|
5110
|
+
var Ja = Ka.default = SyncProvider;
|
|
5077
5111
|
|
|
5078
|
-
var
|
|
5112
|
+
var tu = {};
|
|
5079
5113
|
|
|
5080
5114
|
"use strict";
|
|
5081
5115
|
|
|
5082
|
-
Object.defineProperty(
|
|
5116
|
+
Object.defineProperty(tu, "__esModule", {
|
|
5083
5117
|
value: true
|
|
5084
5118
|
});
|
|
5085
5119
|
|
|
5086
|
-
const
|
|
5120
|
+
const eu = p.default;
|
|
5087
5121
|
|
|
5088
|
-
const
|
|
5122
|
+
const ru = Si;
|
|
5089
5123
|
|
|
5090
|
-
let
|
|
5124
|
+
let nu = class Settings {
|
|
5091
5125
|
constructor(t = {}) {
|
|
5092
5126
|
this._options = t;
|
|
5093
5127
|
this.basePath = this._getValue(this._options.basePath, undefined);
|
|
@@ -5095,8 +5129,8 @@ let za = class Settings {
|
|
|
5095
5129
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
5096
5130
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
5097
5131
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
5098
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
5099
|
-
this.fsScandirSettings = new
|
|
5132
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, eu.sep);
|
|
5133
|
+
this.fsScandirSettings = new ru.Settings({
|
|
5100
5134
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
5101
5135
|
fs: this._options.fs,
|
|
5102
5136
|
pathSegmentSeparator: this._options.pathSegmentSeparator,
|
|
@@ -5109,90 +5143,90 @@ let za = class Settings {
|
|
|
5109
5143
|
}
|
|
5110
5144
|
};
|
|
5111
5145
|
|
|
5112
|
-
var
|
|
5146
|
+
var su = tu.default = nu;
|
|
5113
5147
|
|
|
5114
5148
|
"use strict";
|
|
5115
5149
|
|
|
5116
|
-
Object.defineProperty(
|
|
5150
|
+
Object.defineProperty(yi, "__esModule", {
|
|
5117
5151
|
value: true
|
|
5118
5152
|
});
|
|
5119
5153
|
|
|
5120
|
-
var
|
|
5154
|
+
var iu = yi.Settings = _u = yi.walkStream = hu = yi.walkSync = fu = yi.walk = void 0;
|
|
5121
5155
|
|
|
5122
|
-
const
|
|
5156
|
+
const ou = vi;
|
|
5123
5157
|
|
|
5124
|
-
const
|
|
5158
|
+
const au = Ga;
|
|
5125
5159
|
|
|
5126
|
-
const
|
|
5160
|
+
const uu = Ka;
|
|
5127
5161
|
|
|
5128
|
-
const
|
|
5162
|
+
const cu = tu;
|
|
5129
5163
|
|
|
5130
|
-
|
|
5164
|
+
iu = yi.Settings = cu.default;
|
|
5131
5165
|
|
|
5132
|
-
function
|
|
5166
|
+
function lu(t, e, r) {
|
|
5133
5167
|
if (typeof e === "function") {
|
|
5134
|
-
new
|
|
5168
|
+
new ou.default(t, gu()).read(e);
|
|
5135
5169
|
return;
|
|
5136
5170
|
}
|
|
5137
|
-
new
|
|
5171
|
+
new ou.default(t, gu(e)).read(r);
|
|
5138
5172
|
}
|
|
5139
5173
|
|
|
5140
|
-
var
|
|
5174
|
+
var fu = yi.walk = lu;
|
|
5141
5175
|
|
|
5142
|
-
function
|
|
5143
|
-
const r =
|
|
5144
|
-
const n = new
|
|
5176
|
+
function pu(t, e) {
|
|
5177
|
+
const r = gu(e);
|
|
5178
|
+
const n = new uu.default(t, r);
|
|
5145
5179
|
return n.read();
|
|
5146
5180
|
}
|
|
5147
5181
|
|
|
5148
|
-
var
|
|
5182
|
+
var hu = yi.walkSync = pu;
|
|
5149
5183
|
|
|
5150
|
-
function
|
|
5151
|
-
const r =
|
|
5152
|
-
const n = new
|
|
5184
|
+
function du(t, e) {
|
|
5185
|
+
const r = gu(e);
|
|
5186
|
+
const n = new au.default(t, r);
|
|
5153
5187
|
return n.read();
|
|
5154
5188
|
}
|
|
5155
5189
|
|
|
5156
|
-
var
|
|
5190
|
+
var _u = yi.walkStream = du;
|
|
5157
5191
|
|
|
5158
|
-
function
|
|
5159
|
-
if (t instanceof
|
|
5192
|
+
function gu(t = {}) {
|
|
5193
|
+
if (t instanceof cu.default) {
|
|
5160
5194
|
return t;
|
|
5161
5195
|
}
|
|
5162
|
-
return new
|
|
5196
|
+
return new cu.default(t);
|
|
5163
5197
|
}
|
|
5164
5198
|
|
|
5165
|
-
var
|
|
5199
|
+
var yu = {};
|
|
5166
5200
|
|
|
5167
5201
|
"use strict";
|
|
5168
5202
|
|
|
5169
|
-
Object.defineProperty(
|
|
5203
|
+
Object.defineProperty(yu, "__esModule", {
|
|
5170
5204
|
value: true
|
|
5171
5205
|
});
|
|
5172
5206
|
|
|
5173
|
-
const
|
|
5207
|
+
const vu = p.default;
|
|
5174
5208
|
|
|
5175
|
-
const
|
|
5209
|
+
const mu = Ai;
|
|
5176
5210
|
|
|
5177
|
-
const
|
|
5211
|
+
const Su = v;
|
|
5178
5212
|
|
|
5179
5213
|
class Reader {
|
|
5180
5214
|
constructor(t) {
|
|
5181
5215
|
this._settings = t;
|
|
5182
|
-
this._fsStatSettings = new
|
|
5216
|
+
this._fsStatSettings = new mu.Settings({
|
|
5183
5217
|
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
5184
5218
|
fs: this._settings.fs,
|
|
5185
5219
|
throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
|
|
5186
5220
|
});
|
|
5187
5221
|
}
|
|
5188
5222
|
_getFullEntryPath(t) {
|
|
5189
|
-
return
|
|
5223
|
+
return vu.resolve(this._settings.cwd, t);
|
|
5190
5224
|
}
|
|
5191
5225
|
_makeEntry(t, e) {
|
|
5192
5226
|
const r = {
|
|
5193
5227
|
name: e,
|
|
5194
5228
|
path: e,
|
|
5195
|
-
dirent:
|
|
5229
|
+
dirent: Su.fs.createDirentFromStats(e, t)
|
|
5196
5230
|
};
|
|
5197
5231
|
if (this._settings.stats) {
|
|
5198
5232
|
r.stats = t;
|
|
@@ -5200,40 +5234,40 @@ class Reader {
|
|
|
5200
5234
|
return r;
|
|
5201
5235
|
}
|
|
5202
5236
|
_isFatalError(t) {
|
|
5203
|
-
return !
|
|
5237
|
+
return !Su.errno.isEnoentCodeError(t) && !this._settings.suppressErrors;
|
|
5204
5238
|
}
|
|
5205
5239
|
}
|
|
5206
5240
|
|
|
5207
|
-
var
|
|
5241
|
+
var Eu = yu.default = Reader;
|
|
5208
5242
|
|
|
5209
|
-
var
|
|
5243
|
+
var Au = {};
|
|
5210
5244
|
|
|
5211
5245
|
"use strict";
|
|
5212
5246
|
|
|
5213
|
-
Object.defineProperty(
|
|
5247
|
+
Object.defineProperty(Au, "__esModule", {
|
|
5214
5248
|
value: true
|
|
5215
5249
|
});
|
|
5216
5250
|
|
|
5217
|
-
const
|
|
5251
|
+
const bu = d.default;
|
|
5218
5252
|
|
|
5219
|
-
const
|
|
5253
|
+
const Ru = Ai;
|
|
5220
5254
|
|
|
5221
|
-
const
|
|
5255
|
+
const Pu = yi;
|
|
5222
5256
|
|
|
5223
|
-
const
|
|
5257
|
+
const xu = yu;
|
|
5224
5258
|
|
|
5225
|
-
class ReaderStream extends
|
|
5259
|
+
class ReaderStream extends xu.default {
|
|
5226
5260
|
constructor() {
|
|
5227
5261
|
super(...arguments);
|
|
5228
|
-
this._walkStream =
|
|
5229
|
-
this._stat =
|
|
5262
|
+
this._walkStream = Pu.walkStream;
|
|
5263
|
+
this._stat = Ru.stat;
|
|
5230
5264
|
}
|
|
5231
5265
|
dynamic(t, e) {
|
|
5232
5266
|
return this._walkStream(t, e);
|
|
5233
5267
|
}
|
|
5234
5268
|
static(t, e) {
|
|
5235
5269
|
const r = t.map(this._getFullEntryPath, this);
|
|
5236
|
-
const n = new
|
|
5270
|
+
const n = new bu.PassThrough({
|
|
5237
5271
|
objectMode: true
|
|
5238
5272
|
});
|
|
5239
5273
|
n._write = (s, i, o) => this._getEntry(r[s], t[s], e).then((t => {
|
|
@@ -5265,25 +5299,25 @@ class ReaderStream extends Eu.default {
|
|
|
5265
5299
|
}
|
|
5266
5300
|
}
|
|
5267
5301
|
|
|
5268
|
-
var
|
|
5302
|
+
var Cu = Au.default = ReaderStream;
|
|
5269
5303
|
|
|
5270
5304
|
"use strict";
|
|
5271
5305
|
|
|
5272
|
-
Object.defineProperty(
|
|
5306
|
+
Object.defineProperty(gi, "__esModule", {
|
|
5273
5307
|
value: true
|
|
5274
5308
|
});
|
|
5275
5309
|
|
|
5276
|
-
const
|
|
5310
|
+
const wu = yi;
|
|
5277
5311
|
|
|
5278
|
-
const
|
|
5312
|
+
const Tu = yu;
|
|
5279
5313
|
|
|
5280
|
-
const
|
|
5314
|
+
const Ou = Au;
|
|
5281
5315
|
|
|
5282
|
-
class ReaderAsync extends
|
|
5316
|
+
class ReaderAsync extends Tu.default {
|
|
5283
5317
|
constructor() {
|
|
5284
5318
|
super(...arguments);
|
|
5285
|
-
this._walkAsync =
|
|
5286
|
-
this._readerStream = new
|
|
5319
|
+
this._walkAsync = wu.walk;
|
|
5320
|
+
this._readerStream = new Ou.default(this._settings);
|
|
5287
5321
|
}
|
|
5288
5322
|
dynamic(t, e) {
|
|
5289
5323
|
return new Promise(((r, n) => {
|
|
@@ -5307,23 +5341,23 @@ class ReaderAsync extends Ru.default {
|
|
|
5307
5341
|
}
|
|
5308
5342
|
}
|
|
5309
5343
|
|
|
5310
|
-
var
|
|
5344
|
+
var ku = gi.default = ReaderAsync;
|
|
5311
5345
|
|
|
5312
|
-
var
|
|
5346
|
+
var Lu = {};
|
|
5313
5347
|
|
|
5314
|
-
var
|
|
5348
|
+
var Hu = {};
|
|
5315
5349
|
|
|
5316
|
-
var
|
|
5350
|
+
var Du = {};
|
|
5317
5351
|
|
|
5318
|
-
var
|
|
5352
|
+
var Fu = {};
|
|
5319
5353
|
|
|
5320
5354
|
"use strict";
|
|
5321
5355
|
|
|
5322
|
-
Object.defineProperty(
|
|
5356
|
+
Object.defineProperty(Fu, "__esModule", {
|
|
5323
5357
|
value: true
|
|
5324
5358
|
});
|
|
5325
5359
|
|
|
5326
|
-
const
|
|
5360
|
+
const Mu = v;
|
|
5327
5361
|
|
|
5328
5362
|
class Matcher {
|
|
5329
5363
|
constructor(t, e, r) {
|
|
@@ -5346,9 +5380,9 @@ class Matcher {
|
|
|
5346
5380
|
}
|
|
5347
5381
|
}
|
|
5348
5382
|
_getPatternSegments(t) {
|
|
5349
|
-
const e =
|
|
5383
|
+
const e = Mu.pattern.getPatternParts(t, this._micromatchOptions);
|
|
5350
5384
|
return e.map((t => {
|
|
5351
|
-
const e =
|
|
5385
|
+
const e = Mu.pattern.isDynamicPattern(t, this._settings);
|
|
5352
5386
|
if (!e) {
|
|
5353
5387
|
return {
|
|
5354
5388
|
dynamic: false,
|
|
@@ -5358,26 +5392,26 @@ class Matcher {
|
|
|
5358
5392
|
return {
|
|
5359
5393
|
dynamic: true,
|
|
5360
5394
|
pattern: t,
|
|
5361
|
-
patternRe:
|
|
5395
|
+
patternRe: Mu.pattern.makeRe(t, this._micromatchOptions)
|
|
5362
5396
|
};
|
|
5363
5397
|
}));
|
|
5364
5398
|
}
|
|
5365
5399
|
_splitSegmentsIntoSections(t) {
|
|
5366
|
-
return
|
|
5400
|
+
return Mu.array.splitWhen(t, (t => t.dynamic && Mu.pattern.hasGlobStar(t.pattern)));
|
|
5367
5401
|
}
|
|
5368
5402
|
}
|
|
5369
5403
|
|
|
5370
|
-
var
|
|
5404
|
+
var $u = Fu.default = Matcher;
|
|
5371
5405
|
|
|
5372
5406
|
"use strict";
|
|
5373
5407
|
|
|
5374
|
-
Object.defineProperty(
|
|
5408
|
+
Object.defineProperty(Du, "__esModule", {
|
|
5375
5409
|
value: true
|
|
5376
5410
|
});
|
|
5377
5411
|
|
|
5378
|
-
const
|
|
5412
|
+
const ju = Fu;
|
|
5379
5413
|
|
|
5380
|
-
class PartialMatcher extends
|
|
5414
|
+
class PartialMatcher extends ju.default {
|
|
5381
5415
|
match(t) {
|
|
5382
5416
|
const e = t.split("/");
|
|
5383
5417
|
const r = e.length;
|
|
@@ -5405,17 +5439,17 @@ class PartialMatcher extends Hu.default {
|
|
|
5405
5439
|
}
|
|
5406
5440
|
}
|
|
5407
5441
|
|
|
5408
|
-
var
|
|
5442
|
+
var Iu = Du.default = PartialMatcher;
|
|
5409
5443
|
|
|
5410
5444
|
"use strict";
|
|
5411
5445
|
|
|
5412
|
-
Object.defineProperty(
|
|
5446
|
+
Object.defineProperty(Hu, "__esModule", {
|
|
5413
5447
|
value: true
|
|
5414
5448
|
});
|
|
5415
5449
|
|
|
5416
|
-
const
|
|
5450
|
+
const Nu = v;
|
|
5417
5451
|
|
|
5418
|
-
const
|
|
5452
|
+
const Bu = Du;
|
|
5419
5453
|
|
|
5420
5454
|
class DeepFilter {
|
|
5421
5455
|
constructor(t, e) {
|
|
@@ -5428,11 +5462,11 @@ class DeepFilter {
|
|
|
5428
5462
|
return e => this._filter(t, e, n, s);
|
|
5429
5463
|
}
|
|
5430
5464
|
_getMatcher(t) {
|
|
5431
|
-
return new
|
|
5465
|
+
return new Bu.default(t, this._settings, this._micromatchOptions);
|
|
5432
5466
|
}
|
|
5433
5467
|
_getNegativePatternsRe(t) {
|
|
5434
|
-
const e = t.filter(
|
|
5435
|
-
return
|
|
5468
|
+
const e = t.filter(Nu.pattern.isAffectDepthOfReadingPattern);
|
|
5469
|
+
return Nu.pattern.convertPatternsToRe(e, this._micromatchOptions);
|
|
5436
5470
|
}
|
|
5437
5471
|
_filter(t, e, r, n) {
|
|
5438
5472
|
if (this._isSkippedByDeep(t, e.path)) {
|
|
@@ -5441,7 +5475,7 @@ class DeepFilter {
|
|
|
5441
5475
|
if (this._isSkippedSymbolicLink(e)) {
|
|
5442
5476
|
return false;
|
|
5443
5477
|
}
|
|
5444
|
-
const s =
|
|
5478
|
+
const s = Nu.path.removeLeadingDotSegment(e.path);
|
|
5445
5479
|
if (this._isSkippedByPositivePatterns(s, r)) {
|
|
5446
5480
|
return false;
|
|
5447
5481
|
}
|
|
@@ -5468,21 +5502,21 @@ class DeepFilter {
|
|
|
5468
5502
|
return !this._settings.baseNameMatch && !e.match(t);
|
|
5469
5503
|
}
|
|
5470
5504
|
_isSkippedByNegativePatterns(t, e) {
|
|
5471
|
-
return !
|
|
5505
|
+
return !Nu.pattern.matchAny(t, e);
|
|
5472
5506
|
}
|
|
5473
5507
|
}
|
|
5474
5508
|
|
|
5475
|
-
var
|
|
5509
|
+
var Gu = Hu.default = DeepFilter;
|
|
5476
5510
|
|
|
5477
|
-
var
|
|
5511
|
+
var qu = {};
|
|
5478
5512
|
|
|
5479
5513
|
"use strict";
|
|
5480
5514
|
|
|
5481
|
-
Object.defineProperty(
|
|
5515
|
+
Object.defineProperty(qu, "__esModule", {
|
|
5482
5516
|
value: true
|
|
5483
5517
|
});
|
|
5484
5518
|
|
|
5485
|
-
const
|
|
5519
|
+
const Uu = v;
|
|
5486
5520
|
|
|
5487
5521
|
class EntryFilter {
|
|
5488
5522
|
constructor(t, e) {
|
|
@@ -5491,29 +5525,35 @@ class EntryFilter {
|
|
|
5491
5525
|
this.index = new Map;
|
|
5492
5526
|
}
|
|
5493
5527
|
getFilter(t, e) {
|
|
5494
|
-
const r =
|
|
5495
|
-
const
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5528
|
+
const [r, n] = Uu.pattern.partitionAbsoluteAndRelative(e);
|
|
5529
|
+
const s = {
|
|
5530
|
+
positive: {
|
|
5531
|
+
all: Uu.pattern.convertPatternsToRe(t, this._micromatchOptions)
|
|
5532
|
+
},
|
|
5533
|
+
negative: {
|
|
5534
|
+
absolute: Uu.pattern.convertPatternsToRe(r, Object.assign(Object.assign({}, this._micromatchOptions), {
|
|
5535
|
+
dot: true
|
|
5536
|
+
})),
|
|
5537
|
+
relative: Uu.pattern.convertPatternsToRe(n, Object.assign(Object.assign({}, this._micromatchOptions), {
|
|
5538
|
+
dot: true
|
|
5539
|
+
}))
|
|
5540
|
+
}
|
|
5541
|
+
};
|
|
5542
|
+
return t => this._filter(t, s);
|
|
5499
5543
|
}
|
|
5500
|
-
_filter(t, e
|
|
5501
|
-
const
|
|
5502
|
-
if (this._settings.unique && this._isDuplicateEntry(
|
|
5544
|
+
_filter(t, e) {
|
|
5545
|
+
const r = Uu.path.removeLeadingDotSegment(t.path);
|
|
5546
|
+
if (this._settings.unique && this._isDuplicateEntry(r)) {
|
|
5503
5547
|
return false;
|
|
5504
5548
|
}
|
|
5505
5549
|
if (this._onlyFileFilter(t) || this._onlyDirectoryFilter(t)) {
|
|
5506
5550
|
return false;
|
|
5507
5551
|
}
|
|
5508
|
-
|
|
5509
|
-
|
|
5552
|
+
const n = this._isMatchToPatternsSet(r, e, t.dirent.isDirectory());
|
|
5553
|
+
if (this._settings.unique && n) {
|
|
5554
|
+
this._createIndexRecord(r);
|
|
5510
5555
|
}
|
|
5511
|
-
|
|
5512
|
-
const i = this._isMatchToPatterns(n, e, s) && !this._isMatchToPatterns(n, r, s);
|
|
5513
|
-
if (this._settings.unique && i) {
|
|
5514
|
-
this._createIndexRecord(n);
|
|
5515
|
-
}
|
|
5516
|
-
return i;
|
|
5556
|
+
return n;
|
|
5517
5557
|
}
|
|
5518
5558
|
_isDuplicateEntry(t) {
|
|
5519
5559
|
return this.index.has(t);
|
|
@@ -5527,33 +5567,51 @@ class EntryFilter {
|
|
|
5527
5567
|
_onlyDirectoryFilter(t) {
|
|
5528
5568
|
return this._settings.onlyDirectories && !t.dirent.isDirectory();
|
|
5529
5569
|
}
|
|
5530
|
-
|
|
5531
|
-
|
|
5570
|
+
_isMatchToPatternsSet(t, e, r) {
|
|
5571
|
+
const n = this._isMatchToPatterns(t, e.positive.all, r);
|
|
5572
|
+
if (!n) {
|
|
5532
5573
|
return false;
|
|
5533
5574
|
}
|
|
5534
|
-
const
|
|
5535
|
-
|
|
5575
|
+
const s = this._isMatchToPatterns(t, e.negative.relative, r);
|
|
5576
|
+
if (s) {
|
|
5577
|
+
return false;
|
|
5578
|
+
}
|
|
5579
|
+
const i = this._isMatchToAbsoluteNegative(t, e.negative.absolute, r);
|
|
5580
|
+
if (i) {
|
|
5581
|
+
return false;
|
|
5582
|
+
}
|
|
5583
|
+
return true;
|
|
5584
|
+
}
|
|
5585
|
+
_isMatchToAbsoluteNegative(t, e, r) {
|
|
5586
|
+
if (e.length === 0) {
|
|
5587
|
+
return false;
|
|
5588
|
+
}
|
|
5589
|
+
const n = Uu.path.makeAbsolute(this._settings.cwd, t);
|
|
5590
|
+
return this._isMatchToPatterns(n, e, r);
|
|
5536
5591
|
}
|
|
5537
5592
|
_isMatchToPatterns(t, e, r) {
|
|
5538
|
-
|
|
5593
|
+
if (e.length === 0) {
|
|
5594
|
+
return false;
|
|
5595
|
+
}
|
|
5596
|
+
const n = Uu.pattern.matchAny(t, e);
|
|
5539
5597
|
if (!n && r) {
|
|
5540
|
-
return
|
|
5598
|
+
return Uu.pattern.matchAny(t + "/", e);
|
|
5541
5599
|
}
|
|
5542
5600
|
return n;
|
|
5543
5601
|
}
|
|
5544
5602
|
}
|
|
5545
5603
|
|
|
5546
|
-
var
|
|
5604
|
+
var Wu = qu.default = EntryFilter;
|
|
5547
5605
|
|
|
5548
|
-
var
|
|
5606
|
+
var Ku = {};
|
|
5549
5607
|
|
|
5550
5608
|
"use strict";
|
|
5551
5609
|
|
|
5552
|
-
Object.defineProperty(
|
|
5610
|
+
Object.defineProperty(Ku, "__esModule", {
|
|
5553
5611
|
value: true
|
|
5554
5612
|
});
|
|
5555
5613
|
|
|
5556
|
-
const
|
|
5614
|
+
const Vu = v;
|
|
5557
5615
|
|
|
5558
5616
|
class ErrorFilter {
|
|
5559
5617
|
constructor(t) {
|
|
@@ -5563,21 +5621,21 @@ class ErrorFilter {
|
|
|
5563
5621
|
return t => this._isNonFatalError(t);
|
|
5564
5622
|
}
|
|
5565
5623
|
_isNonFatalError(t) {
|
|
5566
|
-
return
|
|
5624
|
+
return Vu.errno.isEnoentCodeError(t) || this._settings.suppressErrors;
|
|
5567
5625
|
}
|
|
5568
5626
|
}
|
|
5569
5627
|
|
|
5570
|
-
var
|
|
5628
|
+
var Qu = Ku.default = ErrorFilter;
|
|
5571
5629
|
|
|
5572
|
-
var
|
|
5630
|
+
var Xu = {};
|
|
5573
5631
|
|
|
5574
5632
|
"use strict";
|
|
5575
5633
|
|
|
5576
|
-
Object.defineProperty(
|
|
5634
|
+
Object.defineProperty(Xu, "__esModule", {
|
|
5577
5635
|
value: true
|
|
5578
5636
|
});
|
|
5579
5637
|
|
|
5580
|
-
const
|
|
5638
|
+
const Yu = v;
|
|
5581
5639
|
|
|
5582
5640
|
class EntryTransformer {
|
|
5583
5641
|
constructor(t) {
|
|
@@ -5589,8 +5647,8 @@ class EntryTransformer {
|
|
|
5589
5647
|
_transform(t) {
|
|
5590
5648
|
let e = t.path;
|
|
5591
5649
|
if (this._settings.absolute) {
|
|
5592
|
-
e =
|
|
5593
|
-
e =
|
|
5650
|
+
e = Yu.path.makeAbsolute(this._settings.cwd, e);
|
|
5651
|
+
e = Yu.path.unixify(e);
|
|
5594
5652
|
}
|
|
5595
5653
|
if (this._settings.markDirectories && t.dirent.isDirectory()) {
|
|
5596
5654
|
e += "/";
|
|
@@ -5604,34 +5662,34 @@ class EntryTransformer {
|
|
|
5604
5662
|
}
|
|
5605
5663
|
}
|
|
5606
5664
|
|
|
5607
|
-
var
|
|
5665
|
+
var Zu = Xu.default = EntryTransformer;
|
|
5608
5666
|
|
|
5609
5667
|
"use strict";
|
|
5610
5668
|
|
|
5611
|
-
Object.defineProperty(
|
|
5669
|
+
Object.defineProperty(Lu, "__esModule", {
|
|
5612
5670
|
value: true
|
|
5613
5671
|
});
|
|
5614
5672
|
|
|
5615
|
-
const
|
|
5673
|
+
const zu = p.default;
|
|
5616
5674
|
|
|
5617
|
-
const
|
|
5675
|
+
const Ju = Hu;
|
|
5618
5676
|
|
|
5619
|
-
const
|
|
5677
|
+
const tc = qu;
|
|
5620
5678
|
|
|
5621
|
-
const
|
|
5679
|
+
const ec = Ku;
|
|
5622
5680
|
|
|
5623
|
-
const
|
|
5681
|
+
const rc = Xu;
|
|
5624
5682
|
|
|
5625
5683
|
class Provider {
|
|
5626
5684
|
constructor(t) {
|
|
5627
5685
|
this._settings = t;
|
|
5628
|
-
this.errorFilter = new
|
|
5629
|
-
this.entryFilter = new
|
|
5630
|
-
this.deepFilter = new
|
|
5631
|
-
this.entryTransformer = new
|
|
5686
|
+
this.errorFilter = new ec.default(this._settings);
|
|
5687
|
+
this.entryFilter = new tc.default(this._settings, this._getMicromatchOptions());
|
|
5688
|
+
this.deepFilter = new Ju.default(this._settings, this._getMicromatchOptions());
|
|
5689
|
+
this.entryTransformer = new rc.default(this._settings);
|
|
5632
5690
|
}
|
|
5633
5691
|
_getRootDirectory(t) {
|
|
5634
|
-
return
|
|
5692
|
+
return zu.resolve(this._settings.cwd, t.base);
|
|
5635
5693
|
}
|
|
5636
5694
|
_getReaderOptions(t) {
|
|
5637
5695
|
const e = t.base === "." ? "" : t.base;
|
|
@@ -5663,22 +5721,22 @@ class Provider {
|
|
|
5663
5721
|
}
|
|
5664
5722
|
}
|
|
5665
5723
|
|
|
5666
|
-
var
|
|
5724
|
+
var nc = Lu.default = Provider;
|
|
5667
5725
|
|
|
5668
5726
|
"use strict";
|
|
5669
5727
|
|
|
5670
|
-
Object.defineProperty(
|
|
5728
|
+
Object.defineProperty(_i, "__esModule", {
|
|
5671
5729
|
value: true
|
|
5672
5730
|
});
|
|
5673
5731
|
|
|
5674
|
-
const
|
|
5732
|
+
const sc = gi;
|
|
5675
5733
|
|
|
5676
|
-
const
|
|
5734
|
+
const ic = Lu;
|
|
5677
5735
|
|
|
5678
|
-
class ProviderAsync extends
|
|
5736
|
+
class ProviderAsync extends ic.default {
|
|
5679
5737
|
constructor() {
|
|
5680
5738
|
super(...arguments);
|
|
5681
|
-
this._reader = new
|
|
5739
|
+
this._reader = new sc.default(this._settings);
|
|
5682
5740
|
}
|
|
5683
5741
|
async read(t) {
|
|
5684
5742
|
const e = this._getRootDirectory(t);
|
|
@@ -5694,32 +5752,32 @@ class ProviderAsync extends tc.default {
|
|
|
5694
5752
|
}
|
|
5695
5753
|
}
|
|
5696
5754
|
|
|
5697
|
-
var
|
|
5755
|
+
var oc = _i.default = ProviderAsync;
|
|
5698
5756
|
|
|
5699
|
-
var
|
|
5757
|
+
var ac = {};
|
|
5700
5758
|
|
|
5701
5759
|
"use strict";
|
|
5702
5760
|
|
|
5703
|
-
Object.defineProperty(
|
|
5761
|
+
Object.defineProperty(ac, "__esModule", {
|
|
5704
5762
|
value: true
|
|
5705
5763
|
});
|
|
5706
5764
|
|
|
5707
|
-
const
|
|
5765
|
+
const uc = d.default;
|
|
5708
5766
|
|
|
5709
|
-
const
|
|
5767
|
+
const cc = Au;
|
|
5710
5768
|
|
|
5711
|
-
const
|
|
5769
|
+
const lc = Lu;
|
|
5712
5770
|
|
|
5713
|
-
class ProviderStream extends
|
|
5771
|
+
class ProviderStream extends lc.default {
|
|
5714
5772
|
constructor() {
|
|
5715
5773
|
super(...arguments);
|
|
5716
|
-
this._reader = new
|
|
5774
|
+
this._reader = new cc.default(this._settings);
|
|
5717
5775
|
}
|
|
5718
5776
|
read(t) {
|
|
5719
5777
|
const e = this._getRootDirectory(t);
|
|
5720
5778
|
const r = this._getReaderOptions(t);
|
|
5721
5779
|
const n = this.api(e, t, r);
|
|
5722
|
-
const s = new
|
|
5780
|
+
const s = new uc.Readable({
|
|
5723
5781
|
objectMode: true,
|
|
5724
5782
|
read: () => {}
|
|
5725
5783
|
});
|
|
@@ -5735,29 +5793,29 @@ class ProviderStream extends ic.default {
|
|
|
5735
5793
|
}
|
|
5736
5794
|
}
|
|
5737
5795
|
|
|
5738
|
-
var
|
|
5796
|
+
var fc = ac.default = ProviderStream;
|
|
5739
5797
|
|
|
5740
|
-
var
|
|
5798
|
+
var pc = {};
|
|
5741
5799
|
|
|
5742
|
-
var
|
|
5800
|
+
var hc = {};
|
|
5743
5801
|
|
|
5744
5802
|
"use strict";
|
|
5745
5803
|
|
|
5746
|
-
Object.defineProperty(
|
|
5804
|
+
Object.defineProperty(hc, "__esModule", {
|
|
5747
5805
|
value: true
|
|
5748
5806
|
});
|
|
5749
5807
|
|
|
5750
|
-
const
|
|
5808
|
+
const dc = Ai;
|
|
5751
5809
|
|
|
5752
|
-
const
|
|
5810
|
+
const _c = yi;
|
|
5753
5811
|
|
|
5754
|
-
const
|
|
5812
|
+
const gc = yu;
|
|
5755
5813
|
|
|
5756
|
-
class ReaderSync extends
|
|
5814
|
+
class ReaderSync extends gc.default {
|
|
5757
5815
|
constructor() {
|
|
5758
5816
|
super(...arguments);
|
|
5759
|
-
this._walkSync =
|
|
5760
|
-
this._statSync =
|
|
5817
|
+
this._walkSync = _c.walkSync;
|
|
5818
|
+
this._statSync = dc.statSync;
|
|
5761
5819
|
}
|
|
5762
5820
|
dynamic(t, e) {
|
|
5763
5821
|
return this._walkSync(t, e);
|
|
@@ -5790,22 +5848,22 @@ class ReaderSync extends fc.default {
|
|
|
5790
5848
|
}
|
|
5791
5849
|
}
|
|
5792
5850
|
|
|
5793
|
-
var
|
|
5851
|
+
var yc = hc.default = ReaderSync;
|
|
5794
5852
|
|
|
5795
5853
|
"use strict";
|
|
5796
5854
|
|
|
5797
|
-
Object.defineProperty(
|
|
5855
|
+
Object.defineProperty(pc, "__esModule", {
|
|
5798
5856
|
value: true
|
|
5799
5857
|
});
|
|
5800
5858
|
|
|
5801
|
-
const
|
|
5859
|
+
const vc = hc;
|
|
5802
5860
|
|
|
5803
|
-
const
|
|
5861
|
+
const mc = Lu;
|
|
5804
5862
|
|
|
5805
|
-
class ProviderSync extends
|
|
5863
|
+
class ProviderSync extends mc.default {
|
|
5806
5864
|
constructor() {
|
|
5807
5865
|
super(...arguments);
|
|
5808
|
-
this._reader = new
|
|
5866
|
+
this._reader = new vc.default(this._settings);
|
|
5809
5867
|
}
|
|
5810
5868
|
read(t) {
|
|
5811
5869
|
const e = this._getRootDirectory(t);
|
|
@@ -5821,9 +5879,9 @@ class ProviderSync extends dc.default {
|
|
|
5821
5879
|
}
|
|
5822
5880
|
}
|
|
5823
5881
|
|
|
5824
|
-
var
|
|
5882
|
+
var Sc = pc.default = ProviderSync;
|
|
5825
5883
|
|
|
5826
|
-
var
|
|
5884
|
+
var Ec = {};
|
|
5827
5885
|
|
|
5828
5886
|
(function(t) {
|
|
5829
5887
|
"use strict";
|
|
@@ -5882,29 +5940,29 @@ var gc = {};
|
|
|
5882
5940
|
}
|
|
5883
5941
|
}
|
|
5884
5942
|
t.default = Settings;
|
|
5885
|
-
})(
|
|
5943
|
+
})(Ec);
|
|
5886
5944
|
|
|
5887
|
-
const
|
|
5945
|
+
const Ac = t.getDefaultExportFromCjs(Ec);
|
|
5888
5946
|
|
|
5889
5947
|
"use strict";
|
|
5890
5948
|
|
|
5891
|
-
const
|
|
5949
|
+
const bc = y;
|
|
5892
5950
|
|
|
5893
|
-
const
|
|
5951
|
+
const Rc = _i;
|
|
5894
5952
|
|
|
5895
|
-
const
|
|
5953
|
+
const Pc = ac;
|
|
5896
5954
|
|
|
5897
|
-
const
|
|
5955
|
+
const xc = pc;
|
|
5898
5956
|
|
|
5899
|
-
const
|
|
5957
|
+
const Cc = Ec;
|
|
5900
5958
|
|
|
5901
|
-
const
|
|
5959
|
+
const wc = v;
|
|
5902
5960
|
|
|
5903
|
-
async function
|
|
5904
|
-
|
|
5905
|
-
const r =
|
|
5961
|
+
async function Tc(t, e) {
|
|
5962
|
+
kc(t);
|
|
5963
|
+
const r = Oc(t, Rc.default, e);
|
|
5906
5964
|
const n = await Promise.all(r);
|
|
5907
|
-
return
|
|
5965
|
+
return wc.array.flatten(n);
|
|
5908
5966
|
}
|
|
5909
5967
|
|
|
5910
5968
|
(function(t) {
|
|
@@ -5913,94 +5971,94 @@ async function Rc(t, e) {
|
|
|
5913
5971
|
t.globStream = r;
|
|
5914
5972
|
t.async = t;
|
|
5915
5973
|
function e(t, e) {
|
|
5916
|
-
|
|
5917
|
-
const r =
|
|
5918
|
-
return
|
|
5974
|
+
kc(t);
|
|
5975
|
+
const r = Oc(t, xc.default, e);
|
|
5976
|
+
return wc.array.flatten(r);
|
|
5919
5977
|
}
|
|
5920
5978
|
t.sync = e;
|
|
5921
5979
|
function r(t, e) {
|
|
5922
|
-
|
|
5923
|
-
const r =
|
|
5924
|
-
return
|
|
5980
|
+
kc(t);
|
|
5981
|
+
const r = Oc(t, Pc.default, e);
|
|
5982
|
+
return wc.stream.merge(r);
|
|
5925
5983
|
}
|
|
5926
5984
|
t.stream = r;
|
|
5927
5985
|
function n(t, e) {
|
|
5928
|
-
|
|
5986
|
+
kc(t);
|
|
5929
5987
|
const r = [].concat(t);
|
|
5930
|
-
const n = new
|
|
5931
|
-
return
|
|
5988
|
+
const n = new Cc.default(e);
|
|
5989
|
+
return bc.generate(r, n);
|
|
5932
5990
|
}
|
|
5933
5991
|
t.generateTasks = n;
|
|
5934
5992
|
function s(t, e) {
|
|
5935
|
-
|
|
5936
|
-
const r = new
|
|
5937
|
-
return
|
|
5993
|
+
kc(t);
|
|
5994
|
+
const r = new Cc.default(e);
|
|
5995
|
+
return wc.pattern.isDynamicPattern(t, r);
|
|
5938
5996
|
}
|
|
5939
5997
|
t.isDynamicPattern = s;
|
|
5940
5998
|
function i(t) {
|
|
5941
|
-
|
|
5942
|
-
return
|
|
5999
|
+
kc(t);
|
|
6000
|
+
return wc.path.escape(t);
|
|
5943
6001
|
}
|
|
5944
6002
|
t.escapePath = i;
|
|
5945
6003
|
function o(t) {
|
|
5946
|
-
|
|
5947
|
-
return
|
|
6004
|
+
kc(t);
|
|
6005
|
+
return wc.path.convertPathToPattern(t);
|
|
5948
6006
|
}
|
|
5949
6007
|
t.convertPathToPattern = o;
|
|
5950
6008
|
let a;
|
|
5951
6009
|
(function(t) {
|
|
5952
6010
|
function e(t) {
|
|
5953
|
-
|
|
5954
|
-
return
|
|
6011
|
+
kc(t);
|
|
6012
|
+
return wc.path.escapePosixPath(t);
|
|
5955
6013
|
}
|
|
5956
6014
|
t.escapePath = e;
|
|
5957
6015
|
function r(t) {
|
|
5958
|
-
|
|
5959
|
-
return
|
|
6016
|
+
kc(t);
|
|
6017
|
+
return wc.path.convertPosixPathToPattern(t);
|
|
5960
6018
|
}
|
|
5961
6019
|
t.convertPathToPattern = r;
|
|
5962
6020
|
})(a = t.posix || (t.posix = {}));
|
|
5963
6021
|
let u;
|
|
5964
6022
|
(function(t) {
|
|
5965
6023
|
function e(t) {
|
|
5966
|
-
|
|
5967
|
-
return
|
|
6024
|
+
kc(t);
|
|
6025
|
+
return wc.path.escapeWindowsPath(t);
|
|
5968
6026
|
}
|
|
5969
6027
|
t.escapePath = e;
|
|
5970
6028
|
function r(t) {
|
|
5971
|
-
|
|
5972
|
-
return
|
|
6029
|
+
kc(t);
|
|
6030
|
+
return wc.path.convertWindowsPathToPattern(t);
|
|
5973
6031
|
}
|
|
5974
6032
|
t.convertPathToPattern = r;
|
|
5975
6033
|
})(u = t.win32 || (t.win32 = {}));
|
|
5976
|
-
})(
|
|
6034
|
+
})(Tc || (Tc = {}));
|
|
5977
6035
|
|
|
5978
|
-
function
|
|
6036
|
+
function Oc(t, e, r) {
|
|
5979
6037
|
const n = [].concat(t);
|
|
5980
|
-
const s = new
|
|
5981
|
-
const i =
|
|
6038
|
+
const s = new Cc.default(r);
|
|
6039
|
+
const i = bc.generate(n, s);
|
|
5982
6040
|
const o = new e(s);
|
|
5983
6041
|
return i.map(o.read, o);
|
|
5984
6042
|
}
|
|
5985
6043
|
|
|
5986
|
-
function
|
|
6044
|
+
function kc(t) {
|
|
5987
6045
|
const e = [].concat(t);
|
|
5988
|
-
const r = e.every((t =>
|
|
6046
|
+
const r = e.every((t => wc.string.isString(t) && !wc.string.isEmpty(t)));
|
|
5989
6047
|
if (!r) {
|
|
5990
6048
|
throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
5991
6049
|
}
|
|
5992
6050
|
}
|
|
5993
6051
|
|
|
5994
|
-
var
|
|
6052
|
+
var Lc = Tc;
|
|
5995
6053
|
|
|
5996
|
-
const
|
|
6054
|
+
const Hc = t.getDefaultExportFromCjs(Lc);
|
|
5997
6055
|
|
|
5998
|
-
const
|
|
6056
|
+
const Dc = /(.*)\..*/i;
|
|
5999
6057
|
|
|
6000
|
-
function
|
|
6058
|
+
function Fc(t, e) {
|
|
6001
6059
|
e = {
|
|
6002
6060
|
cwd: process.cwd(),
|
|
6003
|
-
glob:
|
|
6061
|
+
glob: Lc.sync,
|
|
6004
6062
|
...e
|
|
6005
6063
|
};
|
|
6006
6064
|
let r = null;
|
|
@@ -6013,18 +6071,18 @@ function kc(t, e) {
|
|
|
6013
6071
|
cwd: e.cwd
|
|
6014
6072
|
});
|
|
6015
6073
|
const s = n.map((t => ({
|
|
6016
|
-
name:
|
|
6074
|
+
name: Dc.exec(p.basename(t))[1],
|
|
6017
6075
|
path: p.resolve(e.cwd, t),
|
|
6018
6076
|
opts: r
|
|
6019
6077
|
})));
|
|
6020
6078
|
return s;
|
|
6021
6079
|
}
|
|
6022
6080
|
|
|
6023
|
-
function
|
|
6081
|
+
function Mc(t, e) {
|
|
6024
6082
|
if (Array.isArray(t)) {
|
|
6025
|
-
return u.flatten(t.map((t =>
|
|
6083
|
+
return u.flatten(t.map((t => Fc(t, e))));
|
|
6026
6084
|
}
|
|
6027
|
-
return
|
|
6085
|
+
return Fc(t, e);
|
|
6028
6086
|
}
|
|
6029
6087
|
|
|
6030
|
-
exports.listModules =
|
|
6088
|
+
exports.listModules = Mc;
|