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
|
@@ -124,15 +124,15 @@ function S(t) {
|
|
|
124
124
|
|
|
125
125
|
m = v.isEnoentCodeError = S;
|
|
126
126
|
|
|
127
|
-
var
|
|
127
|
+
var A = {};
|
|
128
128
|
|
|
129
129
|
"use strict";
|
|
130
130
|
|
|
131
|
-
Object.defineProperty(
|
|
131
|
+
Object.defineProperty(A, "__esModule", {
|
|
132
132
|
value: true
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
-
var
|
|
135
|
+
var E = A.createDirentFromStats = void 0;
|
|
136
136
|
|
|
137
137
|
let b = class DirentFromStats {
|
|
138
138
|
constructor(t, e) {
|
|
@@ -151,7 +151,7 @@ function R(t, e) {
|
|
|
151
151
|
return new b(t, e);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
E = A.createDirentFromStats = R;
|
|
155
155
|
|
|
156
156
|
var P = {};
|
|
157
157
|
|
|
@@ -290,7 +290,7 @@ var at = {};
|
|
|
290
290
|
return (Number(r) - Number(e)) / Number(n) >= s;
|
|
291
291
|
};
|
|
292
292
|
t.escapeNode = (t, e = 0, r) => {
|
|
293
|
-
|
|
293
|
+
const n = t.nodes[e];
|
|
294
294
|
if (!n) return;
|
|
295
295
|
if (r && n.type === r || n.type === "open" || n.type === "close") {
|
|
296
296
|
if (n.escaped !== true) {
|
|
@@ -335,8 +335,14 @@ var at = {};
|
|
|
335
335
|
const e = [];
|
|
336
336
|
const r = t => {
|
|
337
337
|
for (let n = 0; n < t.length; n++) {
|
|
338
|
-
|
|
339
|
-
Array.isArray(s)
|
|
338
|
+
const s = t[n];
|
|
339
|
+
if (Array.isArray(s)) {
|
|
340
|
+
r(s);
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
if (s !== undefined) {
|
|
344
|
+
e.push(s);
|
|
345
|
+
}
|
|
340
346
|
}
|
|
341
347
|
return e;
|
|
342
348
|
};
|
|
@@ -352,9 +358,9 @@ const ut = t(at);
|
|
|
352
358
|
const ct = at;
|
|
353
359
|
|
|
354
360
|
var lt = (t, e = {}) => {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
361
|
+
const r = (t, n = {}) => {
|
|
362
|
+
const s = e.escapeInvalid && ct.isInvalidBrace(n);
|
|
363
|
+
const i = t.invalid === true && e.escapeInvalid === true;
|
|
358
364
|
let o = "";
|
|
359
365
|
if (t.value) {
|
|
360
366
|
if ((s || i) && ct.isOpenOrClose(t)) {
|
|
@@ -366,7 +372,7 @@ var lt = (t, e = {}) => {
|
|
|
366
372
|
return t.value;
|
|
367
373
|
}
|
|
368
374
|
if (t.nodes) {
|
|
369
|
-
for (
|
|
375
|
+
for (const e of t.nodes) {
|
|
370
376
|
o += r(e);
|
|
371
377
|
}
|
|
372
378
|
}
|
|
@@ -490,7 +496,7 @@ function yt(t, e) {
|
|
|
490
496
|
s = Pt(e + 1, n) - 1;
|
|
491
497
|
}
|
|
492
498
|
i = [ ...i ];
|
|
493
|
-
i.sort(
|
|
499
|
+
i.sort(Et);
|
|
494
500
|
return i;
|
|
495
501
|
}
|
|
496
502
|
|
|
@@ -502,7 +508,7 @@ function vt(t, e, r) {
|
|
|
502
508
|
digits: 0
|
|
503
509
|
};
|
|
504
510
|
}
|
|
505
|
-
let n =
|
|
511
|
+
let n = At(t, e);
|
|
506
512
|
let s = n.length;
|
|
507
513
|
let i = "";
|
|
508
514
|
let o = 0;
|
|
@@ -569,13 +575,13 @@ function St(t, e, r, n, s) {
|
|
|
569
575
|
return i;
|
|
570
576
|
}
|
|
571
577
|
|
|
572
|
-
function
|
|
578
|
+
function At(t, e) {
|
|
573
579
|
let r = [];
|
|
574
580
|
for (let n = 0; n < t.length; n++) r.push([ t[n], e[n] ]);
|
|
575
581
|
return r;
|
|
576
582
|
}
|
|
577
583
|
|
|
578
|
-
function
|
|
584
|
+
function Et(t, e) {
|
|
579
585
|
return t > e ? 1 : e > t ? -1 : 0;
|
|
580
586
|
}
|
|
581
587
|
|
|
@@ -690,28 +696,28 @@ const Bt = (t, e) => {
|
|
|
690
696
|
return r ? "-" + t : t;
|
|
691
697
|
};
|
|
692
698
|
|
|
693
|
-
const Gt = (t, e) => {
|
|
699
|
+
const Gt = (t, e, r) => {
|
|
694
700
|
t.negatives.sort(((t, e) => t < e ? -1 : t > e ? 1 : 0));
|
|
695
701
|
t.positives.sort(((t, e) => t < e ? -1 : t > e ? 1 : 0));
|
|
696
|
-
let
|
|
697
|
-
let n = "";
|
|
702
|
+
let n = e.capture ? "" : "?:";
|
|
698
703
|
let s = "";
|
|
699
|
-
let i;
|
|
704
|
+
let i = "";
|
|
705
|
+
let o;
|
|
700
706
|
if (t.positives.length) {
|
|
701
|
-
|
|
707
|
+
s = t.positives.map((t => Bt(String(t), r))).join("|");
|
|
702
708
|
}
|
|
703
709
|
if (t.negatives.length) {
|
|
704
|
-
|
|
710
|
+
i = `-(${n}${t.negatives.map((t => Bt(String(t), r))).join("|")})`;
|
|
705
711
|
}
|
|
706
|
-
if (
|
|
707
|
-
|
|
712
|
+
if (s && i) {
|
|
713
|
+
o = `${s}|${i}`;
|
|
708
714
|
} else {
|
|
709
|
-
|
|
715
|
+
o = s || i;
|
|
710
716
|
}
|
|
711
717
|
if (e.wrap) {
|
|
712
|
-
return `(${
|
|
718
|
+
return `(${n}${o})`;
|
|
713
719
|
}
|
|
714
|
-
return
|
|
720
|
+
return o;
|
|
715
721
|
};
|
|
716
722
|
|
|
717
723
|
const Ut = (t, e, r, n) => {
|
|
@@ -788,7 +794,7 @@ const qt = (t, e, r = 1, n = {}) => {
|
|
|
788
794
|
y++;
|
|
789
795
|
}
|
|
790
796
|
if (n.toRegex === true) {
|
|
791
|
-
return r > 1 ? Gt(d, n) : Wt(g, null, {
|
|
797
|
+
return r > 1 ? Gt(d, n, f) : Wt(g, null, {
|
|
792
798
|
wrap: false,
|
|
793
799
|
...n
|
|
794
800
|
});
|
|
@@ -866,16 +872,17 @@ const Jt = Zt;
|
|
|
866
872
|
const te = at;
|
|
867
873
|
|
|
868
874
|
const ee = (t, e = {}) => {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
875
|
+
const r = (t, n = {}) => {
|
|
876
|
+
const s = te.isInvalidBrace(n);
|
|
877
|
+
const i = t.invalid === true && e.escapeInvalid === true;
|
|
878
|
+
const o = s === true || i === true;
|
|
879
|
+
const a = e.escapeInvalid === true ? "\\" : "";
|
|
874
880
|
let u = "";
|
|
875
881
|
if (t.isOpen === true) {
|
|
876
882
|
return a + t.value;
|
|
877
883
|
}
|
|
878
884
|
if (t.isClose === true) {
|
|
885
|
+
console.log("node.isClose", a, t.value);
|
|
879
886
|
return a + t.value;
|
|
880
887
|
}
|
|
881
888
|
if (t.type === "open") {
|
|
@@ -891,18 +898,19 @@ const ee = (t, e = {}) => {
|
|
|
891
898
|
return t.value;
|
|
892
899
|
}
|
|
893
900
|
if (t.nodes && t.ranges > 0) {
|
|
894
|
-
|
|
895
|
-
|
|
901
|
+
const r = te.reduce(t.nodes);
|
|
902
|
+
const n = Jt(...r, {
|
|
896
903
|
...e,
|
|
897
904
|
wrap: false,
|
|
898
|
-
toRegex: true
|
|
905
|
+
toRegex: true,
|
|
906
|
+
strictZeros: true
|
|
899
907
|
});
|
|
900
908
|
if (n.length !== 0) {
|
|
901
909
|
return r.length > 1 && n.length > 1 ? `(${n})` : n;
|
|
902
910
|
}
|
|
903
911
|
}
|
|
904
912
|
if (t.nodes) {
|
|
905
|
-
for (
|
|
913
|
+
for (const e of t.nodes) {
|
|
906
914
|
u += r(e, t);
|
|
907
915
|
}
|
|
908
916
|
}
|
|
@@ -924,16 +932,16 @@ const ie = lt;
|
|
|
924
932
|
const oe = at;
|
|
925
933
|
|
|
926
934
|
const ae = (t = "", e = "", r = false) => {
|
|
927
|
-
|
|
935
|
+
const n = [];
|
|
928
936
|
t = [].concat(t);
|
|
929
937
|
e = [].concat(e);
|
|
930
938
|
if (!e.length) return t;
|
|
931
939
|
if (!t.length) {
|
|
932
940
|
return r ? oe.flatten(e).map((t => `{${t}}`)) : e;
|
|
933
941
|
}
|
|
934
|
-
for (
|
|
942
|
+
for (const s of t) {
|
|
935
943
|
if (Array.isArray(s)) {
|
|
936
|
-
for (
|
|
944
|
+
for (const t of s) {
|
|
937
945
|
n.push(ae(t, e, r));
|
|
938
946
|
}
|
|
939
947
|
} else {
|
|
@@ -947,8 +955,8 @@ const ae = (t = "", e = "", r = false) => {
|
|
|
947
955
|
};
|
|
948
956
|
|
|
949
957
|
const ue = (t, e = {}) => {
|
|
950
|
-
|
|
951
|
-
|
|
958
|
+
const r = e.rangeLimit === undefined ? 1e3 : e.rangeLimit;
|
|
959
|
+
const n = (t, s = {}) => {
|
|
952
960
|
t.queue = [];
|
|
953
961
|
let i = s;
|
|
954
962
|
let o = s.queue;
|
|
@@ -965,7 +973,7 @@ const ue = (t, e = {}) => {
|
|
|
965
973
|
return;
|
|
966
974
|
}
|
|
967
975
|
if (t.nodes && t.ranges > 0) {
|
|
968
|
-
|
|
976
|
+
const n = oe.reduce(t.nodes);
|
|
969
977
|
if (oe.exceedsLimit(...n, e.step, r)) {
|
|
970
978
|
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
971
979
|
}
|
|
@@ -977,7 +985,7 @@ const ue = (t, e = {}) => {
|
|
|
977
985
|
t.nodes = [];
|
|
978
986
|
return;
|
|
979
987
|
}
|
|
980
|
-
|
|
988
|
+
const a = oe.encloseBrace(t);
|
|
981
989
|
let u = t.queue;
|
|
982
990
|
let c = t;
|
|
983
991
|
while (c.type !== "brace" && c.type !== "root" && c.parent) {
|
|
@@ -985,7 +993,7 @@ const ue = (t, e = {}) => {
|
|
|
985
993
|
u = c.queue;
|
|
986
994
|
}
|
|
987
995
|
for (let e = 0; e < t.nodes.length; e++) {
|
|
988
|
-
|
|
996
|
+
const r = t.nodes[e];
|
|
989
997
|
if (r.type === "comma" && t.type === "brace") {
|
|
990
998
|
if (e === 1) u.push("");
|
|
991
999
|
u.push("");
|
|
@@ -1015,7 +1023,7 @@ const le = t(ce);
|
|
|
1015
1023
|
"use strict";
|
|
1016
1024
|
|
|
1017
1025
|
var fe = {
|
|
1018
|
-
MAX_LENGTH:
|
|
1026
|
+
MAX_LENGTH: 1e4,
|
|
1019
1027
|
CHAR_0: "0",
|
|
1020
1028
|
CHAR_9: "9",
|
|
1021
1029
|
CHAR_UPPERCASE_A: "A",
|
|
@@ -1068,33 +1076,32 @@ const pe = t(fe);
|
|
|
1068
1076
|
|
|
1069
1077
|
const he = lt;
|
|
1070
1078
|
|
|
1071
|
-
const {MAX_LENGTH: de, CHAR_BACKSLASH: _e, CHAR_BACKTICK: ge, CHAR_COMMA: ye, CHAR_DOT: ve, CHAR_LEFT_PARENTHESES: me, CHAR_RIGHT_PARENTHESES: Se, CHAR_LEFT_CURLY_BRACE:
|
|
1079
|
+
const {MAX_LENGTH: de, CHAR_BACKSLASH: _e, CHAR_BACKTICK: ge, CHAR_COMMA: ye, CHAR_DOT: ve, CHAR_LEFT_PARENTHESES: me, CHAR_RIGHT_PARENTHESES: Se, CHAR_LEFT_CURLY_BRACE: Ae, CHAR_RIGHT_CURLY_BRACE: Ee, CHAR_LEFT_SQUARE_BRACKET: be, CHAR_RIGHT_SQUARE_BRACKET: Re, CHAR_DOUBLE_QUOTE: Pe, CHAR_SINGLE_QUOTE: xe, CHAR_NO_BREAK_SPACE: Ce, CHAR_ZERO_WIDTH_NOBREAK_SPACE: we} = fe;
|
|
1072
1080
|
|
|
1073
1081
|
const Te = (t, e = {}) => {
|
|
1074
1082
|
if (typeof t !== "string") {
|
|
1075
1083
|
throw new TypeError("Expected a string");
|
|
1076
1084
|
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1085
|
+
const r = e || {};
|
|
1086
|
+
const n = typeof r.maxLength === "number" ? Math.min(de, r.maxLength) : de;
|
|
1079
1087
|
if (t.length > n) {
|
|
1080
1088
|
throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);
|
|
1081
1089
|
}
|
|
1082
|
-
|
|
1090
|
+
const s = {
|
|
1083
1091
|
type: "root",
|
|
1084
1092
|
input: t,
|
|
1085
1093
|
nodes: []
|
|
1086
1094
|
};
|
|
1087
|
-
|
|
1095
|
+
const i = [ s ];
|
|
1088
1096
|
let o = s;
|
|
1089
1097
|
let a = s;
|
|
1090
1098
|
let u = 0;
|
|
1091
|
-
|
|
1099
|
+
const c = t.length;
|
|
1092
1100
|
let l = 0;
|
|
1093
1101
|
let f = 0;
|
|
1094
1102
|
let p;
|
|
1095
|
-
|
|
1096
|
-
const d =
|
|
1097
|
-
const _ = t => {
|
|
1103
|
+
const h = () => t[l++];
|
|
1104
|
+
const d = t => {
|
|
1098
1105
|
if (t.type === "text" && a.type === "dot") {
|
|
1099
1106
|
a.type = "text";
|
|
1100
1107
|
}
|
|
@@ -1108,24 +1115,24 @@ const Te = (t, e = {}) => {
|
|
|
1108
1115
|
a = t;
|
|
1109
1116
|
return t;
|
|
1110
1117
|
};
|
|
1111
|
-
|
|
1118
|
+
d({
|
|
1112
1119
|
type: "bos"
|
|
1113
1120
|
});
|
|
1114
1121
|
while (l < c) {
|
|
1115
1122
|
o = i[i.length - 1];
|
|
1116
|
-
p =
|
|
1123
|
+
p = h();
|
|
1117
1124
|
if (p === we || p === Ce) {
|
|
1118
1125
|
continue;
|
|
1119
1126
|
}
|
|
1120
1127
|
if (p === _e) {
|
|
1121
|
-
|
|
1128
|
+
d({
|
|
1122
1129
|
type: "text",
|
|
1123
|
-
value: (e.keepEscaping ? p : "") +
|
|
1130
|
+
value: (e.keepEscaping ? p : "") + h()
|
|
1124
1131
|
});
|
|
1125
1132
|
continue;
|
|
1126
1133
|
}
|
|
1127
1134
|
if (p === Re) {
|
|
1128
|
-
|
|
1135
|
+
d({
|
|
1129
1136
|
type: "text",
|
|
1130
1137
|
value: "\\" + p
|
|
1131
1138
|
});
|
|
@@ -1133,38 +1140,37 @@ const Te = (t, e = {}) => {
|
|
|
1133
1140
|
}
|
|
1134
1141
|
if (p === be) {
|
|
1135
1142
|
u++;
|
|
1136
|
-
let t
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
if (e === be) {
|
|
1143
|
+
let t;
|
|
1144
|
+
while (l < c && (t = h())) {
|
|
1145
|
+
p += t;
|
|
1146
|
+
if (t === be) {
|
|
1141
1147
|
u++;
|
|
1142
1148
|
continue;
|
|
1143
1149
|
}
|
|
1144
|
-
if (
|
|
1145
|
-
p +=
|
|
1150
|
+
if (t === _e) {
|
|
1151
|
+
p += h();
|
|
1146
1152
|
continue;
|
|
1147
1153
|
}
|
|
1148
|
-
if (
|
|
1154
|
+
if (t === Re) {
|
|
1149
1155
|
u--;
|
|
1150
1156
|
if (u === 0) {
|
|
1151
1157
|
break;
|
|
1152
1158
|
}
|
|
1153
1159
|
}
|
|
1154
1160
|
}
|
|
1155
|
-
|
|
1161
|
+
d({
|
|
1156
1162
|
type: "text",
|
|
1157
1163
|
value: p
|
|
1158
1164
|
});
|
|
1159
1165
|
continue;
|
|
1160
1166
|
}
|
|
1161
1167
|
if (p === me) {
|
|
1162
|
-
o =
|
|
1168
|
+
o = d({
|
|
1163
1169
|
type: "paren",
|
|
1164
1170
|
nodes: []
|
|
1165
1171
|
});
|
|
1166
1172
|
i.push(o);
|
|
1167
|
-
|
|
1173
|
+
d({
|
|
1168
1174
|
type: "text",
|
|
1169
1175
|
value: p
|
|
1170
1176
|
});
|
|
@@ -1172,14 +1178,14 @@ const Te = (t, e = {}) => {
|
|
|
1172
1178
|
}
|
|
1173
1179
|
if (p === Se) {
|
|
1174
1180
|
if (o.type !== "paren") {
|
|
1175
|
-
|
|
1181
|
+
d({
|
|
1176
1182
|
type: "text",
|
|
1177
1183
|
value: p
|
|
1178
1184
|
});
|
|
1179
1185
|
continue;
|
|
1180
1186
|
}
|
|
1181
1187
|
o = i.pop();
|
|
1182
|
-
|
|
1188
|
+
d({
|
|
1183
1189
|
type: "text",
|
|
1184
1190
|
value: p
|
|
1185
1191
|
});
|
|
@@ -1187,14 +1193,14 @@ const Te = (t, e = {}) => {
|
|
|
1187
1193
|
continue;
|
|
1188
1194
|
}
|
|
1189
1195
|
if (p === Pe || p === xe || p === ge) {
|
|
1190
|
-
|
|
1196
|
+
const t = p;
|
|
1191
1197
|
let r;
|
|
1192
1198
|
if (e.keepQuotes !== true) {
|
|
1193
1199
|
p = "";
|
|
1194
1200
|
}
|
|
1195
|
-
while (l < c && (r =
|
|
1201
|
+
while (l < c && (r = h())) {
|
|
1196
1202
|
if (r === _e) {
|
|
1197
|
-
p += r +
|
|
1203
|
+
p += r + h();
|
|
1198
1204
|
continue;
|
|
1199
1205
|
}
|
|
1200
1206
|
if (r === t) {
|
|
@@ -1203,16 +1209,16 @@ const Te = (t, e = {}) => {
|
|
|
1203
1209
|
}
|
|
1204
1210
|
p += r;
|
|
1205
1211
|
}
|
|
1206
|
-
|
|
1212
|
+
d({
|
|
1207
1213
|
type: "text",
|
|
1208
1214
|
value: p
|
|
1209
1215
|
});
|
|
1210
1216
|
continue;
|
|
1211
1217
|
}
|
|
1212
|
-
if (p ===
|
|
1218
|
+
if (p === Ae) {
|
|
1213
1219
|
f++;
|
|
1214
|
-
|
|
1215
|
-
|
|
1220
|
+
const t = a.value && a.value.slice(-1) === "$" || o.dollar === true;
|
|
1221
|
+
const e = {
|
|
1216
1222
|
type: "brace",
|
|
1217
1223
|
open: true,
|
|
1218
1224
|
close: false,
|
|
@@ -1222,26 +1228,26 @@ const Te = (t, e = {}) => {
|
|
|
1222
1228
|
ranges: 0,
|
|
1223
1229
|
nodes: []
|
|
1224
1230
|
};
|
|
1225
|
-
o =
|
|
1231
|
+
o = d(e);
|
|
1226
1232
|
i.push(o);
|
|
1227
|
-
|
|
1233
|
+
d({
|
|
1228
1234
|
type: "open",
|
|
1229
1235
|
value: p
|
|
1230
1236
|
});
|
|
1231
1237
|
continue;
|
|
1232
1238
|
}
|
|
1233
|
-
if (p ===
|
|
1239
|
+
if (p === Ee) {
|
|
1234
1240
|
if (o.type !== "brace") {
|
|
1235
|
-
|
|
1241
|
+
d({
|
|
1236
1242
|
type: "text",
|
|
1237
1243
|
value: p
|
|
1238
1244
|
});
|
|
1239
1245
|
continue;
|
|
1240
1246
|
}
|
|
1241
|
-
|
|
1247
|
+
const t = "close";
|
|
1242
1248
|
o = i.pop();
|
|
1243
1249
|
o.close = true;
|
|
1244
|
-
|
|
1250
|
+
d({
|
|
1245
1251
|
type: t,
|
|
1246
1252
|
value: p
|
|
1247
1253
|
});
|
|
@@ -1252,13 +1258,13 @@ const Te = (t, e = {}) => {
|
|
|
1252
1258
|
if (p === ye && f > 0) {
|
|
1253
1259
|
if (o.ranges > 0) {
|
|
1254
1260
|
o.ranges = 0;
|
|
1255
|
-
|
|
1261
|
+
const t = o.nodes.shift();
|
|
1256
1262
|
o.nodes = [ t, {
|
|
1257
1263
|
type: "text",
|
|
1258
1264
|
value: he(o)
|
|
1259
1265
|
} ];
|
|
1260
1266
|
}
|
|
1261
|
-
|
|
1267
|
+
d({
|
|
1262
1268
|
type: "comma",
|
|
1263
1269
|
value: p
|
|
1264
1270
|
});
|
|
@@ -1266,9 +1272,9 @@ const Te = (t, e = {}) => {
|
|
|
1266
1272
|
continue;
|
|
1267
1273
|
}
|
|
1268
1274
|
if (p === ve && f > 0 && o.commas === 0) {
|
|
1269
|
-
|
|
1275
|
+
const t = o.nodes;
|
|
1270
1276
|
if (f === 0 || t.length === 0) {
|
|
1271
|
-
|
|
1277
|
+
d({
|
|
1272
1278
|
type: "text",
|
|
1273
1279
|
value: p
|
|
1274
1280
|
});
|
|
@@ -1290,19 +1296,19 @@ const Te = (t, e = {}) => {
|
|
|
1290
1296
|
}
|
|
1291
1297
|
if (a.type === "range") {
|
|
1292
1298
|
t.pop();
|
|
1293
|
-
|
|
1299
|
+
const e = t[t.length - 1];
|
|
1294
1300
|
e.value += a.value + p;
|
|
1295
1301
|
a = e;
|
|
1296
1302
|
o.ranges--;
|
|
1297
1303
|
continue;
|
|
1298
1304
|
}
|
|
1299
|
-
|
|
1305
|
+
d({
|
|
1300
1306
|
type: "dot",
|
|
1301
1307
|
value: p
|
|
1302
1308
|
});
|
|
1303
1309
|
continue;
|
|
1304
1310
|
}
|
|
1305
|
-
|
|
1311
|
+
d({
|
|
1306
1312
|
type: "text",
|
|
1307
1313
|
value: p
|
|
1308
1314
|
});
|
|
@@ -1318,12 +1324,12 @@ const Te = (t, e = {}) => {
|
|
|
1318
1324
|
t.invalid = true;
|
|
1319
1325
|
}
|
|
1320
1326
|
}));
|
|
1321
|
-
|
|
1322
|
-
|
|
1327
|
+
const t = i[i.length - 1];
|
|
1328
|
+
const e = t.nodes.indexOf(o);
|
|
1323
1329
|
t.nodes.splice(e, 1, ...o.nodes);
|
|
1324
1330
|
}
|
|
1325
1331
|
} while (i.length > 0);
|
|
1326
|
-
|
|
1332
|
+
d({
|
|
1327
1333
|
type: "eos"
|
|
1328
1334
|
});
|
|
1329
1335
|
return s;
|
|
@@ -1346,8 +1352,8 @@ const Me = ke;
|
|
|
1346
1352
|
const De = (t, e = {}) => {
|
|
1347
1353
|
let r = [];
|
|
1348
1354
|
if (Array.isArray(t)) {
|
|
1349
|
-
for (
|
|
1350
|
-
|
|
1355
|
+
for (const n of t) {
|
|
1356
|
+
const t = De.create(n, e);
|
|
1351
1357
|
if (Array.isArray(t)) {
|
|
1352
1358
|
r.push(...t);
|
|
1353
1359
|
} else {
|
|
@@ -1643,7 +1649,7 @@ const cr = t(Ne);
|
|
|
1643
1649
|
|
|
1644
1650
|
const lr = Ne;
|
|
1645
1651
|
|
|
1646
|
-
const {CHAR_ASTERISK: fr, CHAR_AT: pr, CHAR_BACKWARD_SLASH: hr, CHAR_COMMA: dr, CHAR_DOT: _r, CHAR_EXCLAMATION_MARK: gr, CHAR_FORWARD_SLASH: yr, CHAR_LEFT_CURLY_BRACE: vr, CHAR_LEFT_PARENTHESES: mr, CHAR_LEFT_SQUARE_BRACKET: Sr, CHAR_PLUS:
|
|
1652
|
+
const {CHAR_ASTERISK: fr, CHAR_AT: pr, CHAR_BACKWARD_SLASH: hr, CHAR_COMMA: dr, CHAR_DOT: _r, CHAR_EXCLAMATION_MARK: gr, CHAR_FORWARD_SLASH: yr, CHAR_LEFT_CURLY_BRACE: vr, CHAR_LEFT_PARENTHESES: mr, CHAR_LEFT_SQUARE_BRACKET: Sr, CHAR_PLUS: Ar, CHAR_QUESTION_MARK: Er, CHAR_RIGHT_CURLY_BRACE: br, CHAR_RIGHT_PARENTHESES: Rr, CHAR_RIGHT_SQUARE_BRACKET: Pr} = ar;
|
|
1647
1653
|
|
|
1648
1654
|
const xr = t => t === yr || t === hr;
|
|
1649
1655
|
|
|
@@ -1673,8 +1679,8 @@ const wr = (t, e) => {
|
|
|
1673
1679
|
let v = false;
|
|
1674
1680
|
let m = false;
|
|
1675
1681
|
let S = false;
|
|
1676
|
-
let
|
|
1677
|
-
let
|
|
1682
|
+
let A = false;
|
|
1683
|
+
let E = 0;
|
|
1678
1684
|
let b;
|
|
1679
1685
|
let R;
|
|
1680
1686
|
let P = {
|
|
@@ -1700,7 +1706,7 @@ const wr = (t, e) => {
|
|
|
1700
1706
|
continue;
|
|
1701
1707
|
}
|
|
1702
1708
|
if (y === true || R === vr) {
|
|
1703
|
-
|
|
1709
|
+
E++;
|
|
1704
1710
|
while (x() !== true && (R = w())) {
|
|
1705
1711
|
if (R === hr) {
|
|
1706
1712
|
v = P.backslashes = true;
|
|
@@ -1708,13 +1714,13 @@ const wr = (t, e) => {
|
|
|
1708
1714
|
continue;
|
|
1709
1715
|
}
|
|
1710
1716
|
if (R === vr) {
|
|
1711
|
-
|
|
1717
|
+
E++;
|
|
1712
1718
|
continue;
|
|
1713
1719
|
}
|
|
1714
1720
|
if (y !== true && R === _r && (R = w()) === _r) {
|
|
1715
1721
|
p = P.isBrace = true;
|
|
1716
1722
|
d = P.isGlob = true;
|
|
1717
|
-
|
|
1723
|
+
A = true;
|
|
1718
1724
|
if (s === true) {
|
|
1719
1725
|
continue;
|
|
1720
1726
|
}
|
|
@@ -1723,18 +1729,18 @@ const wr = (t, e) => {
|
|
|
1723
1729
|
if (y !== true && R === dr) {
|
|
1724
1730
|
p = P.isBrace = true;
|
|
1725
1731
|
d = P.isGlob = true;
|
|
1726
|
-
|
|
1732
|
+
A = true;
|
|
1727
1733
|
if (s === true) {
|
|
1728
1734
|
continue;
|
|
1729
1735
|
}
|
|
1730
1736
|
break;
|
|
1731
1737
|
}
|
|
1732
1738
|
if (R === br) {
|
|
1733
|
-
|
|
1734
|
-
if (
|
|
1739
|
+
E--;
|
|
1740
|
+
if (E === 0) {
|
|
1735
1741
|
y = false;
|
|
1736
1742
|
p = P.isBrace = true;
|
|
1737
|
-
|
|
1743
|
+
A = true;
|
|
1738
1744
|
break;
|
|
1739
1745
|
}
|
|
1740
1746
|
}
|
|
@@ -1752,7 +1758,7 @@ const wr = (t, e) => {
|
|
|
1752
1758
|
depth: 0,
|
|
1753
1759
|
isGlob: false
|
|
1754
1760
|
};
|
|
1755
|
-
if (
|
|
1761
|
+
if (A === true) continue;
|
|
1756
1762
|
if (b === _r && c === l + 1) {
|
|
1757
1763
|
l += 2;
|
|
1758
1764
|
continue;
|
|
@@ -1761,11 +1767,11 @@ const wr = (t, e) => {
|
|
|
1761
1767
|
continue;
|
|
1762
1768
|
}
|
|
1763
1769
|
if (r.noext !== true) {
|
|
1764
|
-
const t = R ===
|
|
1770
|
+
const t = R === Ar || R === pr || R === fr || R === Er || R === gr;
|
|
1765
1771
|
if (t === true && C() === mr) {
|
|
1766
1772
|
d = P.isGlob = true;
|
|
1767
1773
|
_ = P.isExtglob = true;
|
|
1768
|
-
|
|
1774
|
+
A = true;
|
|
1769
1775
|
if (R === gr && c === l) {
|
|
1770
1776
|
S = true;
|
|
1771
1777
|
}
|
|
@@ -1778,7 +1784,7 @@ const wr = (t, e) => {
|
|
|
1778
1784
|
}
|
|
1779
1785
|
if (R === Rr) {
|
|
1780
1786
|
d = P.isGlob = true;
|
|
1781
|
-
|
|
1787
|
+
A = true;
|
|
1782
1788
|
break;
|
|
1783
1789
|
}
|
|
1784
1790
|
}
|
|
@@ -1790,15 +1796,15 @@ const wr = (t, e) => {
|
|
|
1790
1796
|
if (R === fr) {
|
|
1791
1797
|
if (b === fr) g = P.isGlobstar = true;
|
|
1792
1798
|
d = P.isGlob = true;
|
|
1793
|
-
|
|
1799
|
+
A = true;
|
|
1794
1800
|
if (s === true) {
|
|
1795
1801
|
continue;
|
|
1796
1802
|
}
|
|
1797
1803
|
break;
|
|
1798
1804
|
}
|
|
1799
|
-
if (R ===
|
|
1805
|
+
if (R === Er) {
|
|
1800
1806
|
d = P.isGlob = true;
|
|
1801
|
-
|
|
1807
|
+
A = true;
|
|
1802
1808
|
if (s === true) {
|
|
1803
1809
|
continue;
|
|
1804
1810
|
}
|
|
@@ -1814,7 +1820,7 @@ const wr = (t, e) => {
|
|
|
1814
1820
|
if (t === Pr) {
|
|
1815
1821
|
h = P.isBracket = true;
|
|
1816
1822
|
d = P.isGlob = true;
|
|
1817
|
-
|
|
1823
|
+
A = true;
|
|
1818
1824
|
break;
|
|
1819
1825
|
}
|
|
1820
1826
|
}
|
|
@@ -1838,7 +1844,7 @@ const wr = (t, e) => {
|
|
|
1838
1844
|
continue;
|
|
1839
1845
|
}
|
|
1840
1846
|
if (R === Rr) {
|
|
1841
|
-
|
|
1847
|
+
A = true;
|
|
1842
1848
|
break;
|
|
1843
1849
|
}
|
|
1844
1850
|
}
|
|
@@ -1847,7 +1853,7 @@ const wr = (t, e) => {
|
|
|
1847
1853
|
break;
|
|
1848
1854
|
}
|
|
1849
1855
|
if (d === true) {
|
|
1850
|
-
|
|
1856
|
+
A = true;
|
|
1851
1857
|
if (s === true) {
|
|
1852
1858
|
continue;
|
|
1853
1859
|
}
|
|
@@ -1994,11 +2000,11 @@ const jr = (t, e) => {
|
|
|
1994
2000
|
const u = Lr.isWindows(e);
|
|
1995
2001
|
const c = Or.globChars(u);
|
|
1996
2002
|
const l = Or.extglobChars(c);
|
|
1997
|
-
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:
|
|
1998
|
-
const b = t => `(${a}(?:(?!${
|
|
2003
|
+
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: A, START_ANCHOR: E} = c;
|
|
2004
|
+
const b = t => `(${a}(?:(?!${E}${t.dot ? _ : f}).)*?)`;
|
|
1999
2005
|
const R = r.dot ? "" : g;
|
|
2000
2006
|
const P = r.dot ? m : S;
|
|
2001
|
-
let x = r.bash === true ? b(r) :
|
|
2007
|
+
let x = r.bash === true ? b(r) : A;
|
|
2002
2008
|
if (r.capture) {
|
|
2003
2009
|
x = `(${x})`;
|
|
2004
2010
|
}
|
|
@@ -2800,7 +2806,7 @@ jr.fastpaths = (t, e) => {
|
|
|
2800
2806
|
if (t.noglobstar === true) return m;
|
|
2801
2807
|
return `(${y}(?:(?!${d}${t.dot ? c : o}).)*?)`;
|
|
2802
2808
|
};
|
|
2803
|
-
const
|
|
2809
|
+
const A = t => {
|
|
2804
2810
|
switch (t) {
|
|
2805
2811
|
case "*":
|
|
2806
2812
|
return `${_}${u}${m}`;
|
|
@@ -2830,14 +2836,14 @@ jr.fastpaths = (t, e) => {
|
|
|
2830
2836
|
{
|
|
2831
2837
|
const e = /^(.*?)\.(\w+)$/.exec(t);
|
|
2832
2838
|
if (!e) return;
|
|
2833
|
-
const r =
|
|
2839
|
+
const r = A(e[1]);
|
|
2834
2840
|
if (!r) return;
|
|
2835
2841
|
return r + o + e[2];
|
|
2836
2842
|
}
|
|
2837
2843
|
}
|
|
2838
2844
|
};
|
|
2839
|
-
const
|
|
2840
|
-
let b = E
|
|
2845
|
+
const E = Lr.removePrefix(t, v);
|
|
2846
|
+
let b = A(E);
|
|
2841
2847
|
if (b && r.strictSlashes !== true) {
|
|
2842
2848
|
b += `${a}?`;
|
|
2843
2849
|
}
|
|
@@ -3051,7 +3057,12 @@ const nn = Ne;
|
|
|
3051
3057
|
|
|
3052
3058
|
const sn = t => t === "" || t === "./";
|
|
3053
3059
|
|
|
3054
|
-
const on =
|
|
3060
|
+
const on = t => {
|
|
3061
|
+
const e = t.indexOf("{");
|
|
3062
|
+
return e > -1 && t.indexOf("}", e) > -1;
|
|
3063
|
+
};
|
|
3064
|
+
|
|
3065
|
+
const an = (t, e, r) => {
|
|
3055
3066
|
e = [].concat(e);
|
|
3056
3067
|
t = [].concat(t);
|
|
3057
3068
|
let n = new Set;
|
|
@@ -3096,15 +3107,15 @@ const on = (t, e, r) => {
|
|
|
3096
3107
|
return c;
|
|
3097
3108
|
};
|
|
3098
3109
|
|
|
3099
|
-
|
|
3110
|
+
an.match = an;
|
|
3100
3111
|
|
|
3101
|
-
|
|
3112
|
+
an.matcher = (t, e) => rn(t, e);
|
|
3102
3113
|
|
|
3103
|
-
|
|
3114
|
+
an.isMatch = (t, e, r) => rn(e, r)(t);
|
|
3104
3115
|
|
|
3105
|
-
|
|
3116
|
+
an.any = an.isMatch;
|
|
3106
3117
|
|
|
3107
|
-
|
|
3118
|
+
an.not = (t, e, r = {}) => {
|
|
3108
3119
|
e = [].concat(e).map(String);
|
|
3109
3120
|
let n = new Set;
|
|
3110
3121
|
let s = [];
|
|
@@ -3112,7 +3123,7 @@ on.not = (t, e, r = {}) => {
|
|
|
3112
3123
|
if (r.onResult) r.onResult(t);
|
|
3113
3124
|
s.push(t.output);
|
|
3114
3125
|
};
|
|
3115
|
-
let o = new Set(
|
|
3126
|
+
let o = new Set(an(t, e, {
|
|
3116
3127
|
...r,
|
|
3117
3128
|
onResult: i
|
|
3118
3129
|
}));
|
|
@@ -3124,12 +3135,12 @@ on.not = (t, e, r = {}) => {
|
|
|
3124
3135
|
return [ ...n ];
|
|
3125
3136
|
};
|
|
3126
3137
|
|
|
3127
|
-
|
|
3138
|
+
an.contains = (t, e, r) => {
|
|
3128
3139
|
if (typeof t !== "string") {
|
|
3129
3140
|
throw new TypeError(`Expected a string: "${tn.inspect(t)}"`);
|
|
3130
3141
|
}
|
|
3131
3142
|
if (Array.isArray(e)) {
|
|
3132
|
-
return e.some((e =>
|
|
3143
|
+
return e.some((e => an.contains(t, e, r)));
|
|
3133
3144
|
}
|
|
3134
3145
|
if (typeof e === "string") {
|
|
3135
3146
|
if (sn(t) || sn(e)) {
|
|
@@ -3139,23 +3150,23 @@ on.contains = (t, e, r) => {
|
|
|
3139
3150
|
return true;
|
|
3140
3151
|
}
|
|
3141
3152
|
}
|
|
3142
|
-
return
|
|
3153
|
+
return an.isMatch(t, e, {
|
|
3143
3154
|
...r,
|
|
3144
3155
|
contains: true
|
|
3145
3156
|
});
|
|
3146
3157
|
};
|
|
3147
3158
|
|
|
3148
|
-
|
|
3159
|
+
an.matchKeys = (t, e, r) => {
|
|
3149
3160
|
if (!nn.isObject(t)) {
|
|
3150
3161
|
throw new TypeError("Expected the first argument to be an object");
|
|
3151
3162
|
}
|
|
3152
|
-
let n =
|
|
3163
|
+
let n = an(Object.keys(t), e, r);
|
|
3153
3164
|
let s = {};
|
|
3154
3165
|
for (let e of n) s[e] = t[e];
|
|
3155
3166
|
return s;
|
|
3156
3167
|
};
|
|
3157
3168
|
|
|
3158
|
-
|
|
3169
|
+
an.some = (t, e, r) => {
|
|
3159
3170
|
let n = [].concat(t);
|
|
3160
3171
|
for (let t of [].concat(e)) {
|
|
3161
3172
|
let e = rn(String(t), r);
|
|
@@ -3166,7 +3177,7 @@ on.some = (t, e, r) => {
|
|
|
3166
3177
|
return false;
|
|
3167
3178
|
};
|
|
3168
3179
|
|
|
3169
|
-
|
|
3180
|
+
an.every = (t, e, r) => {
|
|
3170
3181
|
let n = [].concat(t);
|
|
3171
3182
|
for (let t of [].concat(e)) {
|
|
3172
3183
|
let e = rn(String(t), r);
|
|
@@ -3177,14 +3188,14 @@ on.every = (t, e, r) => {
|
|
|
3177
3188
|
return true;
|
|
3178
3189
|
};
|
|
3179
3190
|
|
|
3180
|
-
|
|
3191
|
+
an.all = (t, e, r) => {
|
|
3181
3192
|
if (typeof t !== "string") {
|
|
3182
3193
|
throw new TypeError(`Expected a string: "${tn.inspect(t)}"`);
|
|
3183
3194
|
}
|
|
3184
3195
|
return [].concat(e).every((e => rn(e, r)(t)));
|
|
3185
3196
|
};
|
|
3186
3197
|
|
|
3187
|
-
|
|
3198
|
+
an.capture = (t, e, r) => {
|
|
3188
3199
|
let n = nn.isWindows(r);
|
|
3189
3200
|
let s = rn.makeRe(String(t), {
|
|
3190
3201
|
...r,
|
|
@@ -3196,11 +3207,11 @@ on.capture = (t, e, r) => {
|
|
|
3196
3207
|
}
|
|
3197
3208
|
};
|
|
3198
3209
|
|
|
3199
|
-
|
|
3210
|
+
an.makeRe = (...t) => rn.makeRe(...t);
|
|
3200
3211
|
|
|
3201
|
-
|
|
3212
|
+
an.scan = (...t) => rn.scan(...t);
|
|
3202
3213
|
|
|
3203
|
-
|
|
3214
|
+
an.parse = (t, e) => {
|
|
3204
3215
|
let r = [];
|
|
3205
3216
|
for (let n of [].concat(t || [])) {
|
|
3206
3217
|
for (let t of en(String(n), e)) {
|
|
@@ -3210,25 +3221,27 @@ on.parse = (t, e) => {
|
|
|
3210
3221
|
return r;
|
|
3211
3222
|
};
|
|
3212
3223
|
|
|
3213
|
-
|
|
3224
|
+
an.braces = (t, e) => {
|
|
3214
3225
|
if (typeof t !== "string") throw new TypeError("Expected a string");
|
|
3215
|
-
if (e && e.nobrace === true ||
|
|
3226
|
+
if (e && e.nobrace === true || !on(t)) {
|
|
3216
3227
|
return [ t ];
|
|
3217
3228
|
}
|
|
3218
3229
|
return en(t, e);
|
|
3219
3230
|
};
|
|
3220
3231
|
|
|
3221
|
-
|
|
3232
|
+
an.braceExpand = (t, e) => {
|
|
3222
3233
|
if (typeof t !== "string") throw new TypeError("Expected a string");
|
|
3223
|
-
return
|
|
3234
|
+
return an.braces(t, {
|
|
3224
3235
|
...e,
|
|
3225
3236
|
expand: true
|
|
3226
3237
|
});
|
|
3227
3238
|
};
|
|
3228
3239
|
|
|
3229
|
-
|
|
3240
|
+
an.hasBraces = on;
|
|
3230
3241
|
|
|
3231
|
-
|
|
3242
|
+
var un = an;
|
|
3243
|
+
|
|
3244
|
+
const cn = t(un);
|
|
3232
3245
|
|
|
3233
3246
|
"use strict";
|
|
3234
3247
|
|
|
@@ -3236,58 +3249,58 @@ Object.defineProperty(Y, "__esModule", {
|
|
|
3236
3249
|
value: true
|
|
3237
3250
|
});
|
|
3238
3251
|
|
|
3239
|
-
var
|
|
3252
|
+
var ln = Y.isAbsolute = ds = Y.partitionAbsoluteAndRelative = ps = Y.removeDuplicateSlashes = ls = Y.matchAny = us = Y.convertPatternsToRe = os = Y.makeRe = ss = Y.getPatternParts = rs = Y.expandBraceExpansion = ts = Y.expandPatternsWithBraceExpansion = zn = Y.isAffectDepthOfReadingPattern = Yn = Y.endsWithSlashGlobStar = qn = Y.hasGlobStar = Vn = Y.getBaseDirectory = Wn = Y.isPatternRelatedToParentDirectory = Gn = Y.getPatternsOutsideCurrentDirectory = jn = Y.getPatternsInsideCurrentDirectory = In = Y.getPositivePatterns = Dn = Y.getNegativePatterns = $n = Y.isPositivePattern = Ln = Y.isNegativePattern = kn = Y.convertToNegativePattern = wn = Y.convertToPositivePattern = Pn = Y.isDynamicPattern = bn = Y.isStaticPattern = void 0;
|
|
3240
3253
|
|
|
3241
|
-
const
|
|
3254
|
+
const fn = s;
|
|
3242
3255
|
|
|
3243
|
-
const
|
|
3256
|
+
const pn = it;
|
|
3244
3257
|
|
|
3245
|
-
const
|
|
3258
|
+
const hn = un;
|
|
3246
3259
|
|
|
3247
|
-
const
|
|
3260
|
+
const dn = "**";
|
|
3248
3261
|
|
|
3249
|
-
const
|
|
3262
|
+
const _n = "\\";
|
|
3250
3263
|
|
|
3251
|
-
const
|
|
3264
|
+
const gn = /[*?]|^!/;
|
|
3252
3265
|
|
|
3253
|
-
const
|
|
3266
|
+
const yn = /\[[^[]*]/;
|
|
3254
3267
|
|
|
3255
|
-
const
|
|
3268
|
+
const vn = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
|
|
3256
3269
|
|
|
3257
|
-
const
|
|
3270
|
+
const mn = /[!*+?@]\([^(]*\)/;
|
|
3258
3271
|
|
|
3259
|
-
const
|
|
3272
|
+
const Sn = /,|\.\./;
|
|
3260
3273
|
|
|
3261
|
-
const
|
|
3274
|
+
const An = /(?!^)\/{2,}/g;
|
|
3262
3275
|
|
|
3263
3276
|
function En(t, e = {}) {
|
|
3264
|
-
return !
|
|
3277
|
+
return !Rn(t, e);
|
|
3265
3278
|
}
|
|
3266
3279
|
|
|
3267
|
-
var
|
|
3280
|
+
var bn = Y.isStaticPattern = En;
|
|
3268
3281
|
|
|
3269
|
-
function
|
|
3282
|
+
function Rn(t, e = {}) {
|
|
3270
3283
|
if (t === "") {
|
|
3271
3284
|
return false;
|
|
3272
3285
|
}
|
|
3273
|
-
if (e.caseSensitiveMatch === false || t.includes(
|
|
3286
|
+
if (e.caseSensitiveMatch === false || t.includes(_n)) {
|
|
3274
3287
|
return true;
|
|
3275
3288
|
}
|
|
3276
|
-
if (
|
|
3289
|
+
if (gn.test(t) || yn.test(t) || vn.test(t)) {
|
|
3277
3290
|
return true;
|
|
3278
3291
|
}
|
|
3279
|
-
if (e.extglob !== false &&
|
|
3292
|
+
if (e.extglob !== false && mn.test(t)) {
|
|
3280
3293
|
return true;
|
|
3281
3294
|
}
|
|
3282
|
-
if (e.braceExpansion !== false &&
|
|
3295
|
+
if (e.braceExpansion !== false && xn(t)) {
|
|
3283
3296
|
return true;
|
|
3284
3297
|
}
|
|
3285
3298
|
return false;
|
|
3286
3299
|
}
|
|
3287
3300
|
|
|
3288
|
-
var
|
|
3301
|
+
var Pn = Y.isDynamicPattern = Rn;
|
|
3289
3302
|
|
|
3290
|
-
function
|
|
3303
|
+
function xn(t) {
|
|
3291
3304
|
const e = t.indexOf("{");
|
|
3292
3305
|
if (e === -1) {
|
|
3293
3306
|
return false;
|
|
@@ -3297,98 +3310,98 @@ function Pn(t) {
|
|
|
3297
3310
|
return false;
|
|
3298
3311
|
}
|
|
3299
3312
|
const n = t.slice(e, r);
|
|
3300
|
-
return
|
|
3313
|
+
return Sn.test(n);
|
|
3301
3314
|
}
|
|
3302
3315
|
|
|
3303
|
-
function
|
|
3304
|
-
return
|
|
3316
|
+
function Cn(t) {
|
|
3317
|
+
return On(t) ? t.slice(1) : t;
|
|
3305
3318
|
}
|
|
3306
3319
|
|
|
3307
|
-
var
|
|
3320
|
+
var wn = Y.convertToPositivePattern = Cn;
|
|
3308
3321
|
|
|
3309
|
-
function
|
|
3322
|
+
function Tn(t) {
|
|
3310
3323
|
return "!" + t;
|
|
3311
3324
|
}
|
|
3312
3325
|
|
|
3313
|
-
var
|
|
3326
|
+
var kn = Y.convertToNegativePattern = Tn;
|
|
3314
3327
|
|
|
3315
|
-
function
|
|
3328
|
+
function On(t) {
|
|
3316
3329
|
return t.startsWith("!") && t[1] !== "(";
|
|
3317
3330
|
}
|
|
3318
3331
|
|
|
3319
|
-
var
|
|
3332
|
+
var Ln = Y.isNegativePattern = On;
|
|
3320
3333
|
|
|
3321
|
-
function
|
|
3322
|
-
return !
|
|
3334
|
+
function Hn(t) {
|
|
3335
|
+
return !On(t);
|
|
3323
3336
|
}
|
|
3324
3337
|
|
|
3325
|
-
var
|
|
3338
|
+
var $n = Y.isPositivePattern = Hn;
|
|
3326
3339
|
|
|
3327
|
-
function
|
|
3328
|
-
return t.filter(
|
|
3340
|
+
function Mn(t) {
|
|
3341
|
+
return t.filter(On);
|
|
3329
3342
|
}
|
|
3330
3343
|
|
|
3331
|
-
var
|
|
3344
|
+
var Dn = Y.getNegativePatterns = Mn;
|
|
3332
3345
|
|
|
3333
|
-
function
|
|
3334
|
-
return t.filter(
|
|
3346
|
+
function Fn(t) {
|
|
3347
|
+
return t.filter(Hn);
|
|
3335
3348
|
}
|
|
3336
3349
|
|
|
3337
|
-
var
|
|
3350
|
+
var In = Y.getPositivePatterns = Fn;
|
|
3338
3351
|
|
|
3339
|
-
function
|
|
3340
|
-
return t.filter((t => !
|
|
3352
|
+
function Nn(t) {
|
|
3353
|
+
return t.filter((t => !Un(t)));
|
|
3341
3354
|
}
|
|
3342
3355
|
|
|
3343
|
-
var
|
|
3356
|
+
var jn = Y.getPatternsInsideCurrentDirectory = Nn;
|
|
3344
3357
|
|
|
3345
|
-
function
|
|
3346
|
-
return t.filter(
|
|
3358
|
+
function Bn(t) {
|
|
3359
|
+
return t.filter(Un);
|
|
3347
3360
|
}
|
|
3348
3361
|
|
|
3349
|
-
var
|
|
3362
|
+
var Gn = Y.getPatternsOutsideCurrentDirectory = Bn;
|
|
3350
3363
|
|
|
3351
|
-
function
|
|
3364
|
+
function Un(t) {
|
|
3352
3365
|
return t.startsWith("..") || t.startsWith("./..");
|
|
3353
3366
|
}
|
|
3354
3367
|
|
|
3355
|
-
var
|
|
3368
|
+
var Wn = Y.isPatternRelatedToParentDirectory = Un;
|
|
3356
3369
|
|
|
3357
|
-
function
|
|
3358
|
-
return
|
|
3370
|
+
function Kn(t) {
|
|
3371
|
+
return pn(t, {
|
|
3359
3372
|
flipBackslashes: false
|
|
3360
3373
|
});
|
|
3361
3374
|
}
|
|
3362
3375
|
|
|
3363
|
-
var
|
|
3376
|
+
var Vn = Y.getBaseDirectory = Kn;
|
|
3364
3377
|
|
|
3365
|
-
function
|
|
3366
|
-
return t.includes(
|
|
3378
|
+
function Qn(t) {
|
|
3379
|
+
return t.includes(dn);
|
|
3367
3380
|
}
|
|
3368
3381
|
|
|
3369
|
-
var
|
|
3382
|
+
var qn = Y.hasGlobStar = Qn;
|
|
3370
3383
|
|
|
3371
|
-
function
|
|
3372
|
-
return t.endsWith("/" +
|
|
3384
|
+
function Xn(t) {
|
|
3385
|
+
return t.endsWith("/" + dn);
|
|
3373
3386
|
}
|
|
3374
3387
|
|
|
3375
|
-
var
|
|
3388
|
+
var Yn = Y.endsWithSlashGlobStar = Xn;
|
|
3376
3389
|
|
|
3377
|
-
function
|
|
3378
|
-
const e =
|
|
3379
|
-
return
|
|
3390
|
+
function Zn(t) {
|
|
3391
|
+
const e = fn.basename(t);
|
|
3392
|
+
return Xn(t) || En(e);
|
|
3380
3393
|
}
|
|
3381
3394
|
|
|
3382
|
-
var
|
|
3395
|
+
var zn = Y.isAffectDepthOfReadingPattern = Zn;
|
|
3383
3396
|
|
|
3384
|
-
function
|
|
3385
|
-
return t.reduce(((t, e) => t.concat(
|
|
3397
|
+
function Jn(t) {
|
|
3398
|
+
return t.reduce(((t, e) => t.concat(es(e))), []);
|
|
3386
3399
|
}
|
|
3387
3400
|
|
|
3388
|
-
var
|
|
3401
|
+
var ts = Y.expandPatternsWithBraceExpansion = Jn;
|
|
3389
3402
|
|
|
3390
|
-
function
|
|
3391
|
-
const e =
|
|
3403
|
+
function es(t) {
|
|
3404
|
+
const e = hn.braces(t, {
|
|
3392
3405
|
expand: true,
|
|
3393
3406
|
nodupes: true,
|
|
3394
3407
|
keepEscaping: true
|
|
@@ -3397,10 +3410,10 @@ function ts(t) {
|
|
|
3397
3410
|
return e.filter((t => t !== ""));
|
|
3398
3411
|
}
|
|
3399
3412
|
|
|
3400
|
-
var
|
|
3413
|
+
var rs = Y.expandBraceExpansion = es;
|
|
3401
3414
|
|
|
3402
|
-
function
|
|
3403
|
-
let {parts: r} =
|
|
3415
|
+
function ns(t, e) {
|
|
3416
|
+
let {parts: r} = hn.scan(t, Object.assign(Object.assign({}, e), {
|
|
3404
3417
|
parts: true
|
|
3405
3418
|
}));
|
|
3406
3419
|
if (r.length === 0) {
|
|
@@ -3413,47 +3426,68 @@ function rs(t, e) {
|
|
|
3413
3426
|
return r;
|
|
3414
3427
|
}
|
|
3415
3428
|
|
|
3416
|
-
var
|
|
3429
|
+
var ss = Y.getPatternParts = ns;
|
|
3417
3430
|
|
|
3418
|
-
function
|
|
3419
|
-
return
|
|
3431
|
+
function is(t, e) {
|
|
3432
|
+
return hn.makeRe(t, e);
|
|
3420
3433
|
}
|
|
3421
3434
|
|
|
3422
|
-
var
|
|
3435
|
+
var os = Y.makeRe = is;
|
|
3423
3436
|
|
|
3424
|
-
function
|
|
3425
|
-
return t.map((t =>
|
|
3437
|
+
function as(t, e) {
|
|
3438
|
+
return t.map((t => is(t, e)));
|
|
3426
3439
|
}
|
|
3427
3440
|
|
|
3428
|
-
var
|
|
3441
|
+
var us = Y.convertPatternsToRe = as;
|
|
3429
3442
|
|
|
3430
|
-
function
|
|
3443
|
+
function cs(t, e) {
|
|
3431
3444
|
return e.some((e => e.test(t)));
|
|
3432
3445
|
}
|
|
3433
3446
|
|
|
3434
|
-
var
|
|
3447
|
+
var ls = Y.matchAny = cs;
|
|
3435
3448
|
|
|
3436
|
-
function
|
|
3437
|
-
return t.replace(
|
|
3449
|
+
function fs(t) {
|
|
3450
|
+
return t.replace(An, "/");
|
|
3438
3451
|
}
|
|
3439
3452
|
|
|
3440
|
-
|
|
3453
|
+
var ps = Y.removeDuplicateSlashes = fs;
|
|
3441
3454
|
|
|
3442
|
-
|
|
3455
|
+
function hs(t) {
|
|
3456
|
+
const e = [];
|
|
3457
|
+
const r = [];
|
|
3458
|
+
for (const n of t) {
|
|
3459
|
+
if (_s(n)) {
|
|
3460
|
+
e.push(n);
|
|
3461
|
+
} else {
|
|
3462
|
+
r.push(n);
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
return [ e, r ];
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
var ds = Y.partitionAbsoluteAndRelative = hs;
|
|
3469
|
+
|
|
3470
|
+
function _s(t) {
|
|
3471
|
+
return fn.isAbsolute(t);
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
ln = Y.isAbsolute = _s;
|
|
3475
|
+
|
|
3476
|
+
var gs = {};
|
|
3443
3477
|
|
|
3444
3478
|
"use strict";
|
|
3445
3479
|
|
|
3446
|
-
const
|
|
3480
|
+
const ys = a;
|
|
3447
3481
|
|
|
3448
|
-
const
|
|
3482
|
+
const vs = ys.PassThrough;
|
|
3449
3483
|
|
|
3450
|
-
const
|
|
3484
|
+
const ms = Array.prototype.slice;
|
|
3451
3485
|
|
|
3452
|
-
var
|
|
3486
|
+
var Ss = As;
|
|
3453
3487
|
|
|
3454
|
-
function
|
|
3488
|
+
function As() {
|
|
3455
3489
|
const t = [];
|
|
3456
|
-
const e =
|
|
3490
|
+
const e = ms.call(arguments);
|
|
3457
3491
|
let r = false;
|
|
3458
3492
|
let n = e[e.length - 1];
|
|
3459
3493
|
if (n && !Array.isArray(n) && n.pipe == null) {
|
|
@@ -3469,10 +3503,10 @@ function gs() {
|
|
|
3469
3503
|
if (n.highWaterMark == null) {
|
|
3470
3504
|
n.highWaterMark = 64 * 1024;
|
|
3471
3505
|
}
|
|
3472
|
-
const o =
|
|
3506
|
+
const o = vs(n);
|
|
3473
3507
|
function a() {
|
|
3474
3508
|
for (let e = 0, r = arguments.length; e < r; e++) {
|
|
3475
|
-
t.push(
|
|
3509
|
+
t.push(Es(arguments[e], n));
|
|
3476
3510
|
}
|
|
3477
3511
|
u();
|
|
3478
3512
|
return this;
|
|
@@ -3546,10 +3580,10 @@ function gs() {
|
|
|
3546
3580
|
return o;
|
|
3547
3581
|
}
|
|
3548
3582
|
|
|
3549
|
-
function
|
|
3583
|
+
function Es(t, e) {
|
|
3550
3584
|
if (!Array.isArray(t)) {
|
|
3551
3585
|
if (!t._readableState && t.pipe) {
|
|
3552
|
-
t = t.pipe(
|
|
3586
|
+
t = t.pipe(vs(e));
|
|
3553
3587
|
}
|
|
3554
3588
|
if (!t._readableState || !t.pause || !t.pipe) {
|
|
3555
3589
|
throw new Error("Only readable stream can be merged.");
|
|
@@ -3557,61 +3591,61 @@ function ys(t, e) {
|
|
|
3557
3591
|
t.pause();
|
|
3558
3592
|
} else {
|
|
3559
3593
|
for (let r = 0, n = t.length; r < n; r++) {
|
|
3560
|
-
t[r] =
|
|
3594
|
+
t[r] = Es(t[r], e);
|
|
3561
3595
|
}
|
|
3562
3596
|
}
|
|
3563
3597
|
return t;
|
|
3564
3598
|
}
|
|
3565
3599
|
|
|
3566
|
-
const
|
|
3600
|
+
const bs = t(Ss);
|
|
3567
3601
|
|
|
3568
3602
|
"use strict";
|
|
3569
3603
|
|
|
3570
|
-
Object.defineProperty(
|
|
3604
|
+
Object.defineProperty(gs, "__esModule", {
|
|
3571
3605
|
value: true
|
|
3572
3606
|
});
|
|
3573
3607
|
|
|
3574
|
-
var
|
|
3608
|
+
var Rs = gs.merge = void 0;
|
|
3575
3609
|
|
|
3576
|
-
const
|
|
3610
|
+
const Ps = Ss;
|
|
3577
3611
|
|
|
3578
|
-
function
|
|
3579
|
-
const e =
|
|
3612
|
+
function xs(t) {
|
|
3613
|
+
const e = Ps(t);
|
|
3580
3614
|
t.forEach((t => {
|
|
3581
3615
|
t.once("error", (t => e.emit("error", t)));
|
|
3582
3616
|
}));
|
|
3583
|
-
e.once("close", (() =>
|
|
3584
|
-
e.once("end", (() =>
|
|
3617
|
+
e.once("close", (() => Cs(t)));
|
|
3618
|
+
e.once("end", (() => Cs(t)));
|
|
3585
3619
|
return e;
|
|
3586
3620
|
}
|
|
3587
3621
|
|
|
3588
|
-
|
|
3622
|
+
Rs = gs.merge = xs;
|
|
3589
3623
|
|
|
3590
|
-
function
|
|
3624
|
+
function Cs(t) {
|
|
3591
3625
|
t.forEach((t => t.emit("close")));
|
|
3592
3626
|
}
|
|
3593
3627
|
|
|
3594
|
-
var
|
|
3628
|
+
var ws = {};
|
|
3595
3629
|
|
|
3596
3630
|
"use strict";
|
|
3597
3631
|
|
|
3598
|
-
Object.defineProperty(
|
|
3632
|
+
Object.defineProperty(ws, "__esModule", {
|
|
3599
3633
|
value: true
|
|
3600
3634
|
});
|
|
3601
3635
|
|
|
3602
|
-
var
|
|
3636
|
+
var Ts = ws.isEmpty = Os = ws.isString = void 0;
|
|
3603
3637
|
|
|
3604
|
-
function
|
|
3638
|
+
function ks(t) {
|
|
3605
3639
|
return typeof t === "string";
|
|
3606
3640
|
}
|
|
3607
3641
|
|
|
3608
|
-
var
|
|
3642
|
+
var Os = ws.isString = ks;
|
|
3609
3643
|
|
|
3610
|
-
function
|
|
3644
|
+
function Ls(t) {
|
|
3611
3645
|
return t === "";
|
|
3612
3646
|
}
|
|
3613
3647
|
|
|
3614
|
-
|
|
3648
|
+
Ts = ws.isEmpty = Ls;
|
|
3615
3649
|
|
|
3616
3650
|
"use strict";
|
|
3617
3651
|
|
|
@@ -3619,35 +3653,35 @@ Object.defineProperty(p, "__esModule", {
|
|
|
3619
3653
|
value: true
|
|
3620
3654
|
});
|
|
3621
3655
|
|
|
3622
|
-
var
|
|
3656
|
+
var Hs = p.string = Ks = p.stream = Us = p.pattern = Bs = p.path = Ns = p.fs = Fs = p.errno = Ms = p.array = void 0;
|
|
3623
3657
|
|
|
3624
|
-
const
|
|
3658
|
+
const $s = h;
|
|
3625
3659
|
|
|
3626
|
-
var
|
|
3660
|
+
var Ms = p.array = $s;
|
|
3627
3661
|
|
|
3628
|
-
const
|
|
3662
|
+
const Ds = v;
|
|
3629
3663
|
|
|
3630
|
-
var
|
|
3664
|
+
var Fs = p.errno = Ds;
|
|
3631
3665
|
|
|
3632
|
-
const
|
|
3666
|
+
const Is = A;
|
|
3633
3667
|
|
|
3634
|
-
var
|
|
3668
|
+
var Ns = p.fs = Is;
|
|
3635
3669
|
|
|
3636
|
-
const
|
|
3670
|
+
const js = P;
|
|
3637
3671
|
|
|
3638
|
-
var
|
|
3672
|
+
var Bs = p.path = js;
|
|
3639
3673
|
|
|
3640
|
-
const
|
|
3674
|
+
const Gs = Y;
|
|
3641
3675
|
|
|
3642
|
-
var
|
|
3676
|
+
var Us = p.pattern = Gs;
|
|
3643
3677
|
|
|
3644
|
-
const
|
|
3678
|
+
const Ws = gs;
|
|
3645
3679
|
|
|
3646
|
-
var
|
|
3680
|
+
var Ks = p.stream = Ws;
|
|
3647
3681
|
|
|
3648
|
-
const
|
|
3682
|
+
const Vs = ws;
|
|
3649
3683
|
|
|
3650
|
-
|
|
3684
|
+
Hs = p.string = Vs;
|
|
3651
3685
|
|
|
3652
3686
|
"use strict";
|
|
3653
3687
|
|
|
@@ -3655,70 +3689,70 @@ Object.defineProperty(f, "__esModule", {
|
|
|
3655
3689
|
value: true
|
|
3656
3690
|
});
|
|
3657
3691
|
|
|
3658
|
-
var
|
|
3692
|
+
var Qs = f.convertPatternGroupToTask = ai = f.convertPatternGroupsToTasks = ii = f.groupPatternsByBaseDirectory = ni = f.getNegativePatternsAsPositive = ei = f.getPositivePatterns = Js = f.convertPatternsToTasks = Ys = f.generate = void 0;
|
|
3659
3693
|
|
|
3660
|
-
const
|
|
3694
|
+
const qs = p;
|
|
3661
3695
|
|
|
3662
|
-
function
|
|
3663
|
-
const r =
|
|
3664
|
-
const n =
|
|
3665
|
-
const s =
|
|
3666
|
-
const i =
|
|
3667
|
-
const o = s.filter((t =>
|
|
3668
|
-
const a = s.filter((t =>
|
|
3669
|
-
const u =
|
|
3670
|
-
const c =
|
|
3696
|
+
function Xs(t, e) {
|
|
3697
|
+
const r = Zs(t, e);
|
|
3698
|
+
const n = Zs(e.ignore, e);
|
|
3699
|
+
const s = ti(r);
|
|
3700
|
+
const i = ri(r, n);
|
|
3701
|
+
const o = s.filter((t => qs.pattern.isStaticPattern(t, e)));
|
|
3702
|
+
const a = s.filter((t => qs.pattern.isDynamicPattern(t, e)));
|
|
3703
|
+
const u = zs(o, i, false);
|
|
3704
|
+
const c = zs(a, i, true);
|
|
3671
3705
|
return u.concat(c);
|
|
3672
3706
|
}
|
|
3673
3707
|
|
|
3674
|
-
var
|
|
3708
|
+
var Ys = f.generate = Xs;
|
|
3675
3709
|
|
|
3676
|
-
function
|
|
3710
|
+
function Zs(t, e) {
|
|
3677
3711
|
let r = t;
|
|
3678
3712
|
if (e.braceExpansion) {
|
|
3679
|
-
r =
|
|
3713
|
+
r = qs.pattern.expandPatternsWithBraceExpansion(r);
|
|
3680
3714
|
}
|
|
3681
3715
|
if (e.baseNameMatch) {
|
|
3682
3716
|
r = r.map((t => t.includes("/") ? t : `**/${t}`));
|
|
3683
3717
|
}
|
|
3684
|
-
return r.map((t =>
|
|
3718
|
+
return r.map((t => qs.pattern.removeDuplicateSlashes(t)));
|
|
3685
3719
|
}
|
|
3686
3720
|
|
|
3687
|
-
function
|
|
3721
|
+
function zs(t, e, r) {
|
|
3688
3722
|
const n = [];
|
|
3689
|
-
const s =
|
|
3690
|
-
const i =
|
|
3691
|
-
const o =
|
|
3692
|
-
const a =
|
|
3693
|
-
n.push(...
|
|
3723
|
+
const s = qs.pattern.getPatternsOutsideCurrentDirectory(t);
|
|
3724
|
+
const i = qs.pattern.getPatternsInsideCurrentDirectory(t);
|
|
3725
|
+
const o = si(s);
|
|
3726
|
+
const a = si(i);
|
|
3727
|
+
n.push(...oi(o, e, r));
|
|
3694
3728
|
if ("." in a) {
|
|
3695
|
-
n.push(
|
|
3729
|
+
n.push(ui(".", i, e, r));
|
|
3696
3730
|
} else {
|
|
3697
|
-
n.push(...
|
|
3731
|
+
n.push(...oi(a, e, r));
|
|
3698
3732
|
}
|
|
3699
3733
|
return n;
|
|
3700
3734
|
}
|
|
3701
3735
|
|
|
3702
|
-
var
|
|
3736
|
+
var Js = f.convertPatternsToTasks = zs;
|
|
3703
3737
|
|
|
3704
|
-
function
|
|
3705
|
-
return
|
|
3738
|
+
function ti(t) {
|
|
3739
|
+
return qs.pattern.getPositivePatterns(t);
|
|
3706
3740
|
}
|
|
3707
3741
|
|
|
3708
|
-
var
|
|
3742
|
+
var ei = f.getPositivePatterns = ti;
|
|
3709
3743
|
|
|
3710
|
-
function
|
|
3711
|
-
const r =
|
|
3712
|
-
const n = r.map(
|
|
3744
|
+
function ri(t, e) {
|
|
3745
|
+
const r = qs.pattern.getNegativePatterns(t).concat(e);
|
|
3746
|
+
const n = r.map(qs.pattern.convertToPositivePattern);
|
|
3713
3747
|
return n;
|
|
3714
3748
|
}
|
|
3715
3749
|
|
|
3716
|
-
var
|
|
3750
|
+
var ni = f.getNegativePatternsAsPositive = ri;
|
|
3717
3751
|
|
|
3718
|
-
function
|
|
3752
|
+
function si(t) {
|
|
3719
3753
|
const e = {};
|
|
3720
3754
|
return t.reduce(((t, e) => {
|
|
3721
|
-
const r =
|
|
3755
|
+
const r = qs.pattern.getBaseDirectory(e);
|
|
3722
3756
|
if (r in t) {
|
|
3723
3757
|
t[r].push(e);
|
|
3724
3758
|
} else {
|
|
@@ -3728,100 +3762,100 @@ function Js(t) {
|
|
|
3728
3762
|
}), e);
|
|
3729
3763
|
}
|
|
3730
3764
|
|
|
3731
|
-
var
|
|
3765
|
+
var ii = f.groupPatternsByBaseDirectory = si;
|
|
3732
3766
|
|
|
3733
|
-
function
|
|
3734
|
-
return Object.keys(t).map((n =>
|
|
3767
|
+
function oi(t, e, r) {
|
|
3768
|
+
return Object.keys(t).map((n => ui(n, t[n], e, r)));
|
|
3735
3769
|
}
|
|
3736
3770
|
|
|
3737
|
-
var
|
|
3771
|
+
var ai = f.convertPatternGroupsToTasks = oi;
|
|
3738
3772
|
|
|
3739
|
-
function
|
|
3773
|
+
function ui(t, e, r, n) {
|
|
3740
3774
|
return {
|
|
3741
3775
|
dynamic: n,
|
|
3742
3776
|
positive: e,
|
|
3743
3777
|
negative: r,
|
|
3744
3778
|
base: t,
|
|
3745
|
-
patterns: [].concat(e, r.map(
|
|
3779
|
+
patterns: [].concat(e, r.map(qs.pattern.convertToNegativePattern))
|
|
3746
3780
|
};
|
|
3747
3781
|
}
|
|
3748
3782
|
|
|
3749
|
-
|
|
3783
|
+
Qs = f.convertPatternGroupToTask = ui;
|
|
3750
3784
|
|
|
3751
|
-
var
|
|
3785
|
+
var ci = {};
|
|
3752
3786
|
|
|
3753
|
-
var
|
|
3787
|
+
var li = {};
|
|
3754
3788
|
|
|
3755
|
-
var
|
|
3789
|
+
var fi = {};
|
|
3756
3790
|
|
|
3757
|
-
var
|
|
3791
|
+
var pi = {};
|
|
3758
3792
|
|
|
3759
|
-
var
|
|
3793
|
+
var hi = {};
|
|
3760
3794
|
|
|
3761
|
-
var
|
|
3795
|
+
var di = {};
|
|
3762
3796
|
|
|
3763
|
-
var
|
|
3797
|
+
var _i = {};
|
|
3764
3798
|
|
|
3765
|
-
var
|
|
3799
|
+
var gi = {};
|
|
3766
3800
|
|
|
3767
|
-
var
|
|
3801
|
+
var yi = {};
|
|
3768
3802
|
|
|
3769
3803
|
"use strict";
|
|
3770
3804
|
|
|
3771
|
-
Object.defineProperty(
|
|
3805
|
+
Object.defineProperty(yi, "__esModule", {
|
|
3772
3806
|
value: true
|
|
3773
3807
|
});
|
|
3774
3808
|
|
|
3775
|
-
var
|
|
3809
|
+
var vi = yi.read = void 0;
|
|
3776
3810
|
|
|
3777
|
-
function
|
|
3811
|
+
function mi(t, e, r) {
|
|
3778
3812
|
e.fs.lstat(t, ((n, s) => {
|
|
3779
3813
|
if (n !== null) {
|
|
3780
|
-
|
|
3814
|
+
Si(r, n);
|
|
3781
3815
|
return;
|
|
3782
3816
|
}
|
|
3783
3817
|
if (!s.isSymbolicLink() || !e.followSymbolicLink) {
|
|
3784
|
-
|
|
3818
|
+
Ai(r, s);
|
|
3785
3819
|
return;
|
|
3786
3820
|
}
|
|
3787
3821
|
e.fs.stat(t, ((t, n) => {
|
|
3788
3822
|
if (t !== null) {
|
|
3789
3823
|
if (e.throwErrorOnBrokenSymbolicLink) {
|
|
3790
|
-
|
|
3824
|
+
Si(r, t);
|
|
3791
3825
|
return;
|
|
3792
3826
|
}
|
|
3793
|
-
|
|
3827
|
+
Ai(r, s);
|
|
3794
3828
|
return;
|
|
3795
3829
|
}
|
|
3796
3830
|
if (e.markSymbolicLink) {
|
|
3797
3831
|
n.isSymbolicLink = () => true;
|
|
3798
3832
|
}
|
|
3799
|
-
|
|
3833
|
+
Ai(r, n);
|
|
3800
3834
|
}));
|
|
3801
3835
|
}));
|
|
3802
3836
|
}
|
|
3803
3837
|
|
|
3804
|
-
|
|
3838
|
+
vi = yi.read = mi;
|
|
3805
3839
|
|
|
3806
|
-
function
|
|
3840
|
+
function Si(t, e) {
|
|
3807
3841
|
t(e);
|
|
3808
3842
|
}
|
|
3809
3843
|
|
|
3810
|
-
function
|
|
3844
|
+
function Ai(t, e) {
|
|
3811
3845
|
t(null, e);
|
|
3812
3846
|
}
|
|
3813
3847
|
|
|
3814
|
-
var
|
|
3848
|
+
var Ei = {};
|
|
3815
3849
|
|
|
3816
3850
|
"use strict";
|
|
3817
3851
|
|
|
3818
|
-
Object.defineProperty(
|
|
3852
|
+
Object.defineProperty(Ei, "__esModule", {
|
|
3819
3853
|
value: true
|
|
3820
3854
|
});
|
|
3821
3855
|
|
|
3822
|
-
var
|
|
3856
|
+
var bi = Ei.read = void 0;
|
|
3823
3857
|
|
|
3824
|
-
function
|
|
3858
|
+
function Ri(t, e) {
|
|
3825
3859
|
const r = e.fs.lstatSync(t);
|
|
3826
3860
|
if (!r.isSymbolicLink() || !e.followSymbolicLink) {
|
|
3827
3861
|
return r;
|
|
@@ -3840,11 +3874,11 @@ function mi(t, e) {
|
|
|
3840
3874
|
}
|
|
3841
3875
|
}
|
|
3842
3876
|
|
|
3843
|
-
|
|
3877
|
+
bi = Ei.read = Ri;
|
|
3844
3878
|
|
|
3845
|
-
var
|
|
3879
|
+
var Pi = {};
|
|
3846
3880
|
|
|
3847
|
-
var
|
|
3881
|
+
var xi = {};
|
|
3848
3882
|
|
|
3849
3883
|
(function(t) {
|
|
3850
3884
|
"use strict";
|
|
@@ -3866,23 +3900,23 @@ var Ei = {};
|
|
|
3866
3900
|
return Object.assign(Object.assign({}, t.FILE_SYSTEM_ADAPTER), e);
|
|
3867
3901
|
}
|
|
3868
3902
|
t.createFileSystemAdapter = r;
|
|
3869
|
-
})(
|
|
3903
|
+
})(xi);
|
|
3870
3904
|
|
|
3871
|
-
const
|
|
3905
|
+
const Ci = t(xi);
|
|
3872
3906
|
|
|
3873
3907
|
"use strict";
|
|
3874
3908
|
|
|
3875
|
-
Object.defineProperty(
|
|
3909
|
+
Object.defineProperty(Pi, "__esModule", {
|
|
3876
3910
|
value: true
|
|
3877
3911
|
});
|
|
3878
3912
|
|
|
3879
|
-
const
|
|
3913
|
+
const wi = xi;
|
|
3880
3914
|
|
|
3881
|
-
let
|
|
3915
|
+
let Ti = class Settings {
|
|
3882
3916
|
constructor(t = {}) {
|
|
3883
3917
|
this._options = t;
|
|
3884
3918
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
3885
|
-
this.fs =
|
|
3919
|
+
this.fs = wi.createFileSystemAdapter(this._options.fs);
|
|
3886
3920
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
3887
3921
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
3888
3922
|
}
|
|
@@ -3891,61 +3925,61 @@ let Ri = class Settings {
|
|
|
3891
3925
|
}
|
|
3892
3926
|
};
|
|
3893
3927
|
|
|
3894
|
-
var
|
|
3928
|
+
var ki = Pi.default = Ti;
|
|
3895
3929
|
|
|
3896
3930
|
"use strict";
|
|
3897
3931
|
|
|
3898
|
-
Object.defineProperty(
|
|
3932
|
+
Object.defineProperty(gi, "__esModule", {
|
|
3899
3933
|
value: true
|
|
3900
3934
|
});
|
|
3901
3935
|
|
|
3902
|
-
var
|
|
3936
|
+
var Oi = gi.statSync = Fi = gi.stat = Mi = gi.Settings = void 0;
|
|
3903
3937
|
|
|
3904
|
-
const
|
|
3938
|
+
const Li = yi;
|
|
3905
3939
|
|
|
3906
|
-
const
|
|
3940
|
+
const Hi = Ei;
|
|
3907
3941
|
|
|
3908
|
-
const
|
|
3942
|
+
const $i = Pi;
|
|
3909
3943
|
|
|
3910
|
-
var
|
|
3944
|
+
var Mi = gi.Settings = $i.default;
|
|
3911
3945
|
|
|
3912
|
-
function
|
|
3946
|
+
function Di(t, e, r) {
|
|
3913
3947
|
if (typeof e === "function") {
|
|
3914
|
-
|
|
3948
|
+
Li.read(t, Ni(), e);
|
|
3915
3949
|
return;
|
|
3916
3950
|
}
|
|
3917
|
-
|
|
3951
|
+
Li.read(t, Ni(e), r);
|
|
3918
3952
|
}
|
|
3919
3953
|
|
|
3920
|
-
var
|
|
3954
|
+
var Fi = gi.stat = Di;
|
|
3921
3955
|
|
|
3922
|
-
function
|
|
3923
|
-
const r =
|
|
3924
|
-
return
|
|
3956
|
+
function Ii(t, e) {
|
|
3957
|
+
const r = Ni(e);
|
|
3958
|
+
return Hi.read(t, r);
|
|
3925
3959
|
}
|
|
3926
3960
|
|
|
3927
|
-
|
|
3961
|
+
Oi = gi.statSync = Ii;
|
|
3928
3962
|
|
|
3929
|
-
function
|
|
3930
|
-
if (t instanceof
|
|
3963
|
+
function Ni(t = {}) {
|
|
3964
|
+
if (t instanceof $i.default) {
|
|
3931
3965
|
return t;
|
|
3932
3966
|
}
|
|
3933
|
-
return new
|
|
3967
|
+
return new $i.default(t);
|
|
3934
3968
|
}
|
|
3935
3969
|
|
|
3936
|
-
let
|
|
3970
|
+
let ji;
|
|
3937
3971
|
|
|
3938
|
-
var
|
|
3972
|
+
var Bi = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : e) : t => (ji || (ji = Promise.resolve())).then(t).catch((t => setTimeout((() => {
|
|
3939
3973
|
throw t;
|
|
3940
3974
|
}), 0)));
|
|
3941
3975
|
|
|
3942
|
-
const
|
|
3976
|
+
const Gi = t(Bi);
|
|
3943
3977
|
|
|
3944
|
-
var
|
|
3978
|
+
var Ui = Ki;
|
|
3945
3979
|
|
|
3946
|
-
const
|
|
3980
|
+
const Wi = Bi;
|
|
3947
3981
|
|
|
3948
|
-
function
|
|
3982
|
+
function Ki(t, e) {
|
|
3949
3983
|
let r, n, s;
|
|
3950
3984
|
let i = true;
|
|
3951
3985
|
if (Array.isArray(t)) {
|
|
@@ -3961,7 +3995,7 @@ function ji(t, e) {
|
|
|
3961
3995
|
if (e) e(t, r);
|
|
3962
3996
|
e = null;
|
|
3963
3997
|
}
|
|
3964
|
-
if (i)
|
|
3998
|
+
if (i) Wi(n); else n();
|
|
3965
3999
|
}
|
|
3966
4000
|
function a(t, e, s) {
|
|
3967
4001
|
r[t] = s;
|
|
@@ -3987,49 +4021,49 @@ function ji(t, e) {
|
|
|
3987
4021
|
i = false;
|
|
3988
4022
|
}
|
|
3989
4023
|
|
|
3990
|
-
const
|
|
4024
|
+
const Vi = t(Ui);
|
|
3991
4025
|
|
|
3992
|
-
var
|
|
4026
|
+
var Qi = {};
|
|
3993
4027
|
|
|
3994
4028
|
"use strict";
|
|
3995
4029
|
|
|
3996
|
-
Object.defineProperty(
|
|
4030
|
+
Object.defineProperty(Qi, "__esModule", {
|
|
3997
4031
|
value: true
|
|
3998
4032
|
});
|
|
3999
4033
|
|
|
4000
|
-
var
|
|
4034
|
+
var qi = Qi.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4001
4035
|
|
|
4002
|
-
const
|
|
4036
|
+
const Xi = process.versions.node.split(".");
|
|
4003
4037
|
|
|
4004
|
-
if (
|
|
4038
|
+
if (Xi[0] === undefined || Xi[1] === undefined) {
|
|
4005
4039
|
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
4006
4040
|
}
|
|
4007
4041
|
|
|
4008
|
-
const
|
|
4042
|
+
const Yi = Number.parseInt(Xi[0], 10);
|
|
4009
4043
|
|
|
4010
|
-
const
|
|
4044
|
+
const Zi = Number.parseInt(Xi[1], 10);
|
|
4011
4045
|
|
|
4012
|
-
const
|
|
4046
|
+
const zi = 10;
|
|
4013
4047
|
|
|
4014
|
-
const
|
|
4048
|
+
const Ji = 10;
|
|
4015
4049
|
|
|
4016
|
-
const
|
|
4050
|
+
const to = Yi > zi;
|
|
4017
4051
|
|
|
4018
|
-
const
|
|
4052
|
+
const eo = Yi === zi && Zi >= Ji;
|
|
4019
4053
|
|
|
4020
|
-
|
|
4054
|
+
qi = Qi.IS_SUPPORT_READDIR_WITH_FILE_TYPES = to || eo;
|
|
4021
4055
|
|
|
4022
|
-
var
|
|
4056
|
+
var ro = {};
|
|
4023
4057
|
|
|
4024
|
-
var
|
|
4058
|
+
var no = {};
|
|
4025
4059
|
|
|
4026
4060
|
"use strict";
|
|
4027
4061
|
|
|
4028
|
-
Object.defineProperty(
|
|
4062
|
+
Object.defineProperty(no, "__esModule", {
|
|
4029
4063
|
value: true
|
|
4030
4064
|
});
|
|
4031
4065
|
|
|
4032
|
-
var
|
|
4066
|
+
var so = no.createDirentFromStats = void 0;
|
|
4033
4067
|
|
|
4034
4068
|
class DirentFromStats {
|
|
4035
4069
|
constructor(t, e) {
|
|
@@ -4044,102 +4078,102 @@ class DirentFromStats {
|
|
|
4044
4078
|
}
|
|
4045
4079
|
}
|
|
4046
4080
|
|
|
4047
|
-
function
|
|
4081
|
+
function io(t, e) {
|
|
4048
4082
|
return new DirentFromStats(t, e);
|
|
4049
4083
|
}
|
|
4050
4084
|
|
|
4051
|
-
|
|
4085
|
+
so = no.createDirentFromStats = io;
|
|
4052
4086
|
|
|
4053
4087
|
"use strict";
|
|
4054
4088
|
|
|
4055
|
-
Object.defineProperty(
|
|
4089
|
+
Object.defineProperty(ro, "__esModule", {
|
|
4056
4090
|
value: true
|
|
4057
4091
|
});
|
|
4058
4092
|
|
|
4059
|
-
var
|
|
4093
|
+
var oo = ro.fs = void 0;
|
|
4060
4094
|
|
|
4061
|
-
const
|
|
4095
|
+
const ao = no;
|
|
4062
4096
|
|
|
4063
|
-
|
|
4097
|
+
oo = ro.fs = ao;
|
|
4064
4098
|
|
|
4065
|
-
var
|
|
4099
|
+
var uo = {};
|
|
4066
4100
|
|
|
4067
4101
|
"use strict";
|
|
4068
4102
|
|
|
4069
|
-
Object.defineProperty(
|
|
4103
|
+
Object.defineProperty(uo, "__esModule", {
|
|
4070
4104
|
value: true
|
|
4071
4105
|
});
|
|
4072
4106
|
|
|
4073
|
-
var
|
|
4107
|
+
var co = uo.joinPathSegments = void 0;
|
|
4074
4108
|
|
|
4075
|
-
function
|
|
4109
|
+
function lo(t, e, r) {
|
|
4076
4110
|
if (t.endsWith(r)) {
|
|
4077
4111
|
return t + e;
|
|
4078
4112
|
}
|
|
4079
4113
|
return t + r + e;
|
|
4080
4114
|
}
|
|
4081
4115
|
|
|
4082
|
-
|
|
4116
|
+
co = uo.joinPathSegments = lo;
|
|
4083
4117
|
|
|
4084
4118
|
"use strict";
|
|
4085
4119
|
|
|
4086
|
-
Object.defineProperty(
|
|
4120
|
+
Object.defineProperty(_i, "__esModule", {
|
|
4087
4121
|
value: true
|
|
4088
4122
|
});
|
|
4089
4123
|
|
|
4090
|
-
var
|
|
4124
|
+
var fo = _i.readdir = Ao = _i.readdirWithFileTypes = mo = _i.read = void 0;
|
|
4091
4125
|
|
|
4092
|
-
const
|
|
4126
|
+
const po = gi;
|
|
4093
4127
|
|
|
4094
|
-
const
|
|
4128
|
+
const ho = Ui;
|
|
4095
4129
|
|
|
4096
|
-
const
|
|
4130
|
+
const _o = Qi;
|
|
4097
4131
|
|
|
4098
|
-
const
|
|
4132
|
+
const go = ro;
|
|
4099
4133
|
|
|
4100
|
-
const
|
|
4134
|
+
const yo = uo;
|
|
4101
4135
|
|
|
4102
|
-
function
|
|
4103
|
-
if (!e.stats &&
|
|
4104
|
-
|
|
4136
|
+
function vo(t, e, r) {
|
|
4137
|
+
if (!e.stats && _o.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
4138
|
+
So(t, e, r);
|
|
4105
4139
|
return;
|
|
4106
4140
|
}
|
|
4107
|
-
|
|
4141
|
+
bo(t, e, r);
|
|
4108
4142
|
}
|
|
4109
4143
|
|
|
4110
|
-
var
|
|
4144
|
+
var mo = _i.read = vo;
|
|
4111
4145
|
|
|
4112
|
-
function
|
|
4146
|
+
function So(t, e, r) {
|
|
4113
4147
|
e.fs.readdir(t, {
|
|
4114
4148
|
withFileTypes: true
|
|
4115
4149
|
}, ((n, s) => {
|
|
4116
4150
|
if (n !== null) {
|
|
4117
|
-
|
|
4151
|
+
Ro(r, n);
|
|
4118
4152
|
return;
|
|
4119
4153
|
}
|
|
4120
4154
|
const i = s.map((r => ({
|
|
4121
4155
|
dirent: r,
|
|
4122
4156
|
name: r.name,
|
|
4123
|
-
path:
|
|
4157
|
+
path: yo.joinPathSegments(t, r.name, e.pathSegmentSeparator)
|
|
4124
4158
|
})));
|
|
4125
4159
|
if (!e.followSymbolicLinks) {
|
|
4126
|
-
|
|
4160
|
+
Po(r, i);
|
|
4127
4161
|
return;
|
|
4128
4162
|
}
|
|
4129
|
-
const o = i.map((t =>
|
|
4130
|
-
|
|
4163
|
+
const o = i.map((t => Eo(t, e)));
|
|
4164
|
+
ho(o, ((t, e) => {
|
|
4131
4165
|
if (t !== null) {
|
|
4132
|
-
|
|
4166
|
+
Ro(r, t);
|
|
4133
4167
|
return;
|
|
4134
4168
|
}
|
|
4135
|
-
|
|
4169
|
+
Po(r, e);
|
|
4136
4170
|
}));
|
|
4137
4171
|
}));
|
|
4138
4172
|
}
|
|
4139
4173
|
|
|
4140
|
-
var
|
|
4174
|
+
var Ao = _i.readdirWithFileTypes = So;
|
|
4141
4175
|
|
|
4142
|
-
function
|
|
4176
|
+
function Eo(t, e) {
|
|
4143
4177
|
return r => {
|
|
4144
4178
|
if (!t.dirent.isSymbolicLink()) {
|
|
4145
4179
|
r(null, t);
|
|
@@ -4154,22 +4188,22 @@ function yo(t, e) {
|
|
|
4154
4188
|
r(null, t);
|
|
4155
4189
|
return;
|
|
4156
4190
|
}
|
|
4157
|
-
t.dirent =
|
|
4191
|
+
t.dirent = go.fs.createDirentFromStats(t.name, s);
|
|
4158
4192
|
r(null, t);
|
|
4159
4193
|
}));
|
|
4160
4194
|
};
|
|
4161
4195
|
}
|
|
4162
4196
|
|
|
4163
|
-
function
|
|
4197
|
+
function bo(t, e, r) {
|
|
4164
4198
|
e.fs.readdir(t, ((n, s) => {
|
|
4165
4199
|
if (n !== null) {
|
|
4166
|
-
|
|
4200
|
+
Ro(r, n);
|
|
4167
4201
|
return;
|
|
4168
4202
|
}
|
|
4169
4203
|
const i = s.map((r => {
|
|
4170
|
-
const n =
|
|
4204
|
+
const n = yo.joinPathSegments(t, r, e.pathSegmentSeparator);
|
|
4171
4205
|
return t => {
|
|
4172
|
-
|
|
4206
|
+
po.stat(n, e.fsStatSettings, ((s, i) => {
|
|
4173
4207
|
if (s !== null) {
|
|
4174
4208
|
t(s);
|
|
4175
4209
|
return;
|
|
@@ -4177,7 +4211,7 @@ function vo(t, e, r) {
|
|
|
4177
4211
|
const o = {
|
|
4178
4212
|
name: r,
|
|
4179
4213
|
path: n,
|
|
4180
|
-
dirent:
|
|
4214
|
+
dirent: go.fs.createDirentFromStats(r, i)
|
|
4181
4215
|
};
|
|
4182
4216
|
if (e.stats) {
|
|
4183
4217
|
o.stats = i;
|
|
@@ -4186,54 +4220,54 @@ function vo(t, e, r) {
|
|
|
4186
4220
|
}));
|
|
4187
4221
|
};
|
|
4188
4222
|
}));
|
|
4189
|
-
|
|
4223
|
+
ho(i, ((t, e) => {
|
|
4190
4224
|
if (t !== null) {
|
|
4191
|
-
|
|
4225
|
+
Ro(r, t);
|
|
4192
4226
|
return;
|
|
4193
4227
|
}
|
|
4194
|
-
|
|
4228
|
+
Po(r, e);
|
|
4195
4229
|
}));
|
|
4196
4230
|
}));
|
|
4197
4231
|
}
|
|
4198
4232
|
|
|
4199
|
-
|
|
4233
|
+
fo = _i.readdir = bo;
|
|
4200
4234
|
|
|
4201
|
-
function
|
|
4235
|
+
function Ro(t, e) {
|
|
4202
4236
|
t(e);
|
|
4203
4237
|
}
|
|
4204
4238
|
|
|
4205
|
-
function
|
|
4239
|
+
function Po(t, e) {
|
|
4206
4240
|
t(null, e);
|
|
4207
4241
|
}
|
|
4208
4242
|
|
|
4209
|
-
var
|
|
4243
|
+
var xo = {};
|
|
4210
4244
|
|
|
4211
4245
|
"use strict";
|
|
4212
4246
|
|
|
4213
|
-
Object.defineProperty(
|
|
4247
|
+
Object.defineProperty(xo, "__esModule", {
|
|
4214
4248
|
value: true
|
|
4215
4249
|
});
|
|
4216
4250
|
|
|
4217
|
-
var
|
|
4251
|
+
var Co = xo.readdir = Mo = xo.readdirWithFileTypes = Ho = xo.read = void 0;
|
|
4218
4252
|
|
|
4219
|
-
const
|
|
4253
|
+
const wo = gi;
|
|
4220
4254
|
|
|
4221
|
-
const
|
|
4255
|
+
const To = Qi;
|
|
4222
4256
|
|
|
4223
|
-
const
|
|
4257
|
+
const ko = ro;
|
|
4224
4258
|
|
|
4225
|
-
const
|
|
4259
|
+
const Oo = uo;
|
|
4226
4260
|
|
|
4227
|
-
function
|
|
4228
|
-
if (!e.stats &&
|
|
4229
|
-
return
|
|
4261
|
+
function Lo(t, e) {
|
|
4262
|
+
if (!e.stats && To.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
4263
|
+
return $o(t, e);
|
|
4230
4264
|
}
|
|
4231
|
-
return
|
|
4265
|
+
return Do(t, e);
|
|
4232
4266
|
}
|
|
4233
4267
|
|
|
4234
|
-
var
|
|
4268
|
+
var Ho = xo.read = Lo;
|
|
4235
4269
|
|
|
4236
|
-
function
|
|
4270
|
+
function $o(t, e) {
|
|
4237
4271
|
const r = e.fs.readdirSync(t, {
|
|
4238
4272
|
withFileTypes: true
|
|
4239
4273
|
});
|
|
@@ -4241,12 +4275,12 @@ function To(t, e) {
|
|
|
4241
4275
|
const n = {
|
|
4242
4276
|
dirent: r,
|
|
4243
4277
|
name: r.name,
|
|
4244
|
-
path:
|
|
4278
|
+
path: Oo.joinPathSegments(t, r.name, e.pathSegmentSeparator)
|
|
4245
4279
|
};
|
|
4246
4280
|
if (n.dirent.isSymbolicLink() && e.followSymbolicLinks) {
|
|
4247
4281
|
try {
|
|
4248
4282
|
const t = e.fs.statSync(n.path);
|
|
4249
|
-
n.dirent =
|
|
4283
|
+
n.dirent = ko.fs.createDirentFromStats(n.name, t);
|
|
4250
4284
|
} catch (t) {
|
|
4251
4285
|
if (e.throwErrorOnBrokenSymbolicLink) {
|
|
4252
4286
|
throw t;
|
|
@@ -4257,17 +4291,17 @@ function To(t, e) {
|
|
|
4257
4291
|
}));
|
|
4258
4292
|
}
|
|
4259
4293
|
|
|
4260
|
-
var
|
|
4294
|
+
var Mo = xo.readdirWithFileTypes = $o;
|
|
4261
4295
|
|
|
4262
|
-
function
|
|
4296
|
+
function Do(t, e) {
|
|
4263
4297
|
const r = e.fs.readdirSync(t);
|
|
4264
4298
|
return r.map((r => {
|
|
4265
|
-
const n =
|
|
4266
|
-
const s =
|
|
4299
|
+
const n = Oo.joinPathSegments(t, r, e.pathSegmentSeparator);
|
|
4300
|
+
const s = wo.statSync(n, e.fsStatSettings);
|
|
4267
4301
|
const i = {
|
|
4268
4302
|
name: r,
|
|
4269
4303
|
path: n,
|
|
4270
|
-
dirent:
|
|
4304
|
+
dirent: ko.fs.createDirentFromStats(r, s)
|
|
4271
4305
|
};
|
|
4272
4306
|
if (e.stats) {
|
|
4273
4307
|
i.stats = s;
|
|
@@ -4276,11 +4310,11 @@ function Oo(t, e) {
|
|
|
4276
4310
|
}));
|
|
4277
4311
|
}
|
|
4278
4312
|
|
|
4279
|
-
|
|
4313
|
+
Co = xo.readdir = Do;
|
|
4280
4314
|
|
|
4281
|
-
var
|
|
4315
|
+
var Fo = {};
|
|
4282
4316
|
|
|
4283
|
-
var
|
|
4317
|
+
var Io = {};
|
|
4284
4318
|
|
|
4285
4319
|
(function(t) {
|
|
4286
4320
|
"use strict";
|
|
@@ -4304,31 +4338,31 @@ var Ho = {};
|
|
|
4304
4338
|
return Object.assign(Object.assign({}, t.FILE_SYSTEM_ADAPTER), e);
|
|
4305
4339
|
}
|
|
4306
4340
|
t.createFileSystemAdapter = r;
|
|
4307
|
-
})(
|
|
4341
|
+
})(Io);
|
|
4308
4342
|
|
|
4309
|
-
const
|
|
4343
|
+
const No = t(Io);
|
|
4310
4344
|
|
|
4311
4345
|
"use strict";
|
|
4312
4346
|
|
|
4313
|
-
Object.defineProperty(
|
|
4347
|
+
Object.defineProperty(Fo, "__esModule", {
|
|
4314
4348
|
value: true
|
|
4315
4349
|
});
|
|
4316
4350
|
|
|
4317
|
-
const
|
|
4351
|
+
const jo = s;
|
|
4318
4352
|
|
|
4319
|
-
const
|
|
4353
|
+
const Bo = gi;
|
|
4320
4354
|
|
|
4321
|
-
const
|
|
4355
|
+
const Go = Io;
|
|
4322
4356
|
|
|
4323
|
-
let
|
|
4357
|
+
let Uo = class Settings {
|
|
4324
4358
|
constructor(t = {}) {
|
|
4325
4359
|
this._options = t;
|
|
4326
4360
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
4327
|
-
this.fs =
|
|
4328
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
4361
|
+
this.fs = Go.createFileSystemAdapter(this._options.fs);
|
|
4362
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, jo.sep);
|
|
4329
4363
|
this.stats = this._getValue(this._options.stats, false);
|
|
4330
4364
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
4331
|
-
this.fsStatSettings = new
|
|
4365
|
+
this.fsStatSettings = new Bo.Settings({
|
|
4332
4366
|
followSymbolicLink: this.followSymbolicLinks,
|
|
4333
4367
|
fs: this.fs,
|
|
4334
4368
|
throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
|
|
@@ -4339,55 +4373,55 @@ let Io = class Settings {
|
|
|
4339
4373
|
}
|
|
4340
4374
|
};
|
|
4341
4375
|
|
|
4342
|
-
var
|
|
4376
|
+
var Wo = Fo.default = Uo;
|
|
4343
4377
|
|
|
4344
4378
|
"use strict";
|
|
4345
4379
|
|
|
4346
|
-
Object.defineProperty(
|
|
4380
|
+
Object.defineProperty(di, "__esModule", {
|
|
4347
4381
|
value: true
|
|
4348
4382
|
});
|
|
4349
4383
|
|
|
4350
|
-
var
|
|
4384
|
+
var Ko = di.Settings = zo = di.scandirSync = Yo = di.scandir = void 0;
|
|
4351
4385
|
|
|
4352
|
-
const
|
|
4386
|
+
const Vo = _i;
|
|
4353
4387
|
|
|
4354
|
-
const
|
|
4388
|
+
const Qo = xo;
|
|
4355
4389
|
|
|
4356
|
-
const
|
|
4390
|
+
const qo = Fo;
|
|
4357
4391
|
|
|
4358
|
-
|
|
4392
|
+
Ko = di.Settings = qo.default;
|
|
4359
4393
|
|
|
4360
|
-
function
|
|
4394
|
+
function Xo(t, e, r) {
|
|
4361
4395
|
if (typeof e === "function") {
|
|
4362
|
-
|
|
4396
|
+
Vo.read(t, Jo(), e);
|
|
4363
4397
|
return;
|
|
4364
4398
|
}
|
|
4365
|
-
|
|
4399
|
+
Vo.read(t, Jo(e), r);
|
|
4366
4400
|
}
|
|
4367
4401
|
|
|
4368
|
-
var
|
|
4402
|
+
var Yo = di.scandir = Xo;
|
|
4369
4403
|
|
|
4370
|
-
function
|
|
4371
|
-
const r =
|
|
4372
|
-
return
|
|
4404
|
+
function Zo(t, e) {
|
|
4405
|
+
const r = Jo(e);
|
|
4406
|
+
return Qo.read(t, r);
|
|
4373
4407
|
}
|
|
4374
4408
|
|
|
4375
|
-
var
|
|
4409
|
+
var zo = di.scandirSync = Zo;
|
|
4376
4410
|
|
|
4377
|
-
function
|
|
4378
|
-
if (t instanceof
|
|
4411
|
+
function Jo(t = {}) {
|
|
4412
|
+
if (t instanceof qo.default) {
|
|
4379
4413
|
return t;
|
|
4380
4414
|
}
|
|
4381
|
-
return new
|
|
4415
|
+
return new qo.default(t);
|
|
4382
4416
|
}
|
|
4383
4417
|
|
|
4384
|
-
var
|
|
4418
|
+
var ta = {
|
|
4385
4419
|
exports: {}
|
|
4386
4420
|
};
|
|
4387
4421
|
|
|
4388
4422
|
"use strict";
|
|
4389
4423
|
|
|
4390
|
-
function
|
|
4424
|
+
function ea(t) {
|
|
4391
4425
|
var e = new t;
|
|
4392
4426
|
var r = e;
|
|
4393
4427
|
function n() {
|
|
@@ -4411,17 +4445,17 @@ function Yo(t) {
|
|
|
4411
4445
|
};
|
|
4412
4446
|
}
|
|
4413
4447
|
|
|
4414
|
-
var
|
|
4448
|
+
var ra = ea;
|
|
4415
4449
|
|
|
4416
|
-
const
|
|
4450
|
+
const na = t(ra);
|
|
4417
4451
|
|
|
4418
|
-
var
|
|
4452
|
+
var sa = ta.exports;
|
|
4419
4453
|
|
|
4420
4454
|
"use strict";
|
|
4421
4455
|
|
|
4422
|
-
var
|
|
4456
|
+
var ia = ra;
|
|
4423
4457
|
|
|
4424
|
-
function
|
|
4458
|
+
function oa(t, e, r) {
|
|
4425
4459
|
if (typeof t === "function") {
|
|
4426
4460
|
r = e;
|
|
4427
4461
|
e = t;
|
|
@@ -4430,15 +4464,15 @@ function ea(t, e, r) {
|
|
|
4430
4464
|
if (!(r >= 1)) {
|
|
4431
4465
|
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4432
4466
|
}
|
|
4433
|
-
var n =
|
|
4467
|
+
var n = ia(ua);
|
|
4434
4468
|
var s = null;
|
|
4435
4469
|
var i = null;
|
|
4436
4470
|
var o = 0;
|
|
4437
4471
|
var a = null;
|
|
4438
4472
|
var u = {
|
|
4439
4473
|
push: _,
|
|
4440
|
-
drain:
|
|
4441
|
-
saturated:
|
|
4474
|
+
drain: aa,
|
|
4475
|
+
saturated: aa,
|
|
4442
4476
|
pause: l,
|
|
4443
4477
|
paused: false,
|
|
4444
4478
|
get concurrency() {
|
|
@@ -4461,7 +4495,7 @@ function ea(t, e, r) {
|
|
|
4461
4495
|
length: f,
|
|
4462
4496
|
getQueue: p,
|
|
4463
4497
|
unshift: g,
|
|
4464
|
-
empty:
|
|
4498
|
+
empty: aa,
|
|
4465
4499
|
kill: v,
|
|
4466
4500
|
killAndDrain: m,
|
|
4467
4501
|
error: S
|
|
@@ -4512,7 +4546,7 @@ function ea(t, e, r) {
|
|
|
4512
4546
|
f.context = t;
|
|
4513
4547
|
f.release = y;
|
|
4514
4548
|
f.value = c;
|
|
4515
|
-
f.callback = l ||
|
|
4549
|
+
f.callback = l || aa;
|
|
4516
4550
|
f.errorHandler = a;
|
|
4517
4551
|
if (o >= r || u.paused) {
|
|
4518
4552
|
if (i) {
|
|
@@ -4533,7 +4567,7 @@ function ea(t, e, r) {
|
|
|
4533
4567
|
f.context = t;
|
|
4534
4568
|
f.release = y;
|
|
4535
4569
|
f.value = c;
|
|
4536
|
-
f.callback = l ||
|
|
4570
|
+
f.callback = l || aa;
|
|
4537
4571
|
f.errorHandler = a;
|
|
4538
4572
|
if (o >= r || u.paused) {
|
|
4539
4573
|
if (s) {
|
|
@@ -4575,26 +4609,26 @@ function ea(t, e, r) {
|
|
|
4575
4609
|
function v() {
|
|
4576
4610
|
s = null;
|
|
4577
4611
|
i = null;
|
|
4578
|
-
u.drain =
|
|
4612
|
+
u.drain = aa;
|
|
4579
4613
|
}
|
|
4580
4614
|
function m() {
|
|
4581
4615
|
s = null;
|
|
4582
4616
|
i = null;
|
|
4583
4617
|
u.drain();
|
|
4584
|
-
u.drain =
|
|
4618
|
+
u.drain = aa;
|
|
4585
4619
|
}
|
|
4586
4620
|
function S(t) {
|
|
4587
4621
|
a = t;
|
|
4588
4622
|
}
|
|
4589
4623
|
}
|
|
4590
4624
|
|
|
4591
|
-
function
|
|
4625
|
+
function aa() {}
|
|
4592
4626
|
|
|
4593
|
-
function
|
|
4627
|
+
function ua() {
|
|
4594
4628
|
this.value = null;
|
|
4595
|
-
this.callback =
|
|
4629
|
+
this.callback = aa;
|
|
4596
4630
|
this.next = null;
|
|
4597
|
-
this.release =
|
|
4631
|
+
this.release = aa;
|
|
4598
4632
|
this.context = null;
|
|
4599
4633
|
this.errorHandler = null;
|
|
4600
4634
|
var t = this;
|
|
@@ -4603,7 +4637,7 @@ function na() {
|
|
|
4603
4637
|
var i = t.errorHandler;
|
|
4604
4638
|
var o = t.value;
|
|
4605
4639
|
t.value = null;
|
|
4606
|
-
t.callback =
|
|
4640
|
+
t.callback = aa;
|
|
4607
4641
|
if (t.errorHandler) {
|
|
4608
4642
|
i(r, o);
|
|
4609
4643
|
}
|
|
@@ -4612,7 +4646,7 @@ function na() {
|
|
|
4612
4646
|
};
|
|
4613
4647
|
}
|
|
4614
4648
|
|
|
4615
|
-
function
|
|
4649
|
+
function ca(t, e, r) {
|
|
4616
4650
|
if (typeof t === "function") {
|
|
4617
4651
|
r = e;
|
|
4618
4652
|
e = t;
|
|
@@ -4623,7 +4657,7 @@ function sa(t, e, r) {
|
|
|
4623
4657
|
r(null, t);
|
|
4624
4658
|
}), r);
|
|
4625
4659
|
}
|
|
4626
|
-
var s =
|
|
4660
|
+
var s = oa(t, n, r);
|
|
4627
4661
|
var i = s.push;
|
|
4628
4662
|
var o = s.unshift;
|
|
4629
4663
|
s.push = a;
|
|
@@ -4640,7 +4674,7 @@ function sa(t, e, r) {
|
|
|
4640
4674
|
e(n);
|
|
4641
4675
|
}));
|
|
4642
4676
|
}));
|
|
4643
|
-
e.catch(
|
|
4677
|
+
e.catch(aa);
|
|
4644
4678
|
return e;
|
|
4645
4679
|
}
|
|
4646
4680
|
function u(t) {
|
|
@@ -4653,7 +4687,7 @@ function sa(t, e, r) {
|
|
|
4653
4687
|
e(n);
|
|
4654
4688
|
}));
|
|
4655
4689
|
}));
|
|
4656
|
-
e.catch(
|
|
4690
|
+
e.catch(aa);
|
|
4657
4691
|
return e;
|
|
4658
4692
|
}
|
|
4659
4693
|
function c() {
|
|
@@ -4673,46 +4707,46 @@ function sa(t, e, r) {
|
|
|
4673
4707
|
}
|
|
4674
4708
|
}
|
|
4675
4709
|
|
|
4676
|
-
|
|
4710
|
+
ta.exports = oa;
|
|
4677
4711
|
|
|
4678
|
-
var
|
|
4712
|
+
var la = ta.exports.promise = ca;
|
|
4679
4713
|
|
|
4680
|
-
var
|
|
4714
|
+
var fa = ta.exports;
|
|
4681
4715
|
|
|
4682
|
-
const
|
|
4716
|
+
const pa = t(fa);
|
|
4683
4717
|
|
|
4684
|
-
var
|
|
4718
|
+
var ha = {};
|
|
4685
4719
|
|
|
4686
4720
|
"use strict";
|
|
4687
4721
|
|
|
4688
|
-
Object.defineProperty(
|
|
4722
|
+
Object.defineProperty(ha, "__esModule", {
|
|
4689
4723
|
value: true
|
|
4690
4724
|
});
|
|
4691
4725
|
|
|
4692
|
-
var
|
|
4726
|
+
var da = ha.joinPathSegments = Sa = ha.replacePathSegmentSeparator = va = ha.isAppliedFilter = ga = ha.isFatalError = void 0;
|
|
4693
4727
|
|
|
4694
|
-
function
|
|
4728
|
+
function _a(t, e) {
|
|
4695
4729
|
if (t.errorFilter === null) {
|
|
4696
4730
|
return true;
|
|
4697
4731
|
}
|
|
4698
4732
|
return !t.errorFilter(e);
|
|
4699
4733
|
}
|
|
4700
4734
|
|
|
4701
|
-
var
|
|
4735
|
+
var ga = ha.isFatalError = _a;
|
|
4702
4736
|
|
|
4703
|
-
function
|
|
4737
|
+
function ya(t, e) {
|
|
4704
4738
|
return t === null || t(e);
|
|
4705
4739
|
}
|
|
4706
4740
|
|
|
4707
|
-
var
|
|
4741
|
+
var va = ha.isAppliedFilter = ya;
|
|
4708
4742
|
|
|
4709
|
-
function
|
|
4743
|
+
function ma(t, e) {
|
|
4710
4744
|
return t.split(/[/\\]/).join(e);
|
|
4711
4745
|
}
|
|
4712
4746
|
|
|
4713
|
-
var
|
|
4747
|
+
var Sa = ha.replacePathSegmentSeparator = ma;
|
|
4714
4748
|
|
|
4715
|
-
function
|
|
4749
|
+
function Aa(t, e, r) {
|
|
4716
4750
|
if (t === "") {
|
|
4717
4751
|
return e;
|
|
4718
4752
|
}
|
|
@@ -4722,51 +4756,51 @@ function ga(t, e, r) {
|
|
|
4722
4756
|
return t + r + e;
|
|
4723
4757
|
}
|
|
4724
4758
|
|
|
4725
|
-
|
|
4759
|
+
da = ha.joinPathSegments = Aa;
|
|
4726
4760
|
|
|
4727
|
-
var
|
|
4761
|
+
var Ea = {};
|
|
4728
4762
|
|
|
4729
4763
|
"use strict";
|
|
4730
4764
|
|
|
4731
|
-
Object.defineProperty(
|
|
4765
|
+
Object.defineProperty(Ea, "__esModule", {
|
|
4732
4766
|
value: true
|
|
4733
4767
|
});
|
|
4734
4768
|
|
|
4735
|
-
const
|
|
4769
|
+
const ba = ha;
|
|
4736
4770
|
|
|
4737
|
-
let
|
|
4771
|
+
let Ra = class Reader {
|
|
4738
4772
|
constructor(t, e) {
|
|
4739
4773
|
this._root = t;
|
|
4740
4774
|
this._settings = e;
|
|
4741
|
-
this._root =
|
|
4775
|
+
this._root = ba.replacePathSegmentSeparator(t, e.pathSegmentSeparator);
|
|
4742
4776
|
}
|
|
4743
4777
|
};
|
|
4744
4778
|
|
|
4745
|
-
var
|
|
4779
|
+
var Pa = Ea.default = Ra;
|
|
4746
4780
|
|
|
4747
4781
|
"use strict";
|
|
4748
4782
|
|
|
4749
|
-
Object.defineProperty(
|
|
4783
|
+
Object.defineProperty(hi, "__esModule", {
|
|
4750
4784
|
value: true
|
|
4751
4785
|
});
|
|
4752
4786
|
|
|
4753
|
-
const
|
|
4787
|
+
const xa = c;
|
|
4754
4788
|
|
|
4755
|
-
const
|
|
4789
|
+
const Ca = di;
|
|
4756
4790
|
|
|
4757
|
-
const
|
|
4791
|
+
const wa = fa;
|
|
4758
4792
|
|
|
4759
|
-
const
|
|
4793
|
+
const Ta = ha;
|
|
4760
4794
|
|
|
4761
|
-
const
|
|
4795
|
+
const ka = Ea;
|
|
4762
4796
|
|
|
4763
|
-
class AsyncReader extends
|
|
4797
|
+
class AsyncReader extends ka.default {
|
|
4764
4798
|
constructor(t, e) {
|
|
4765
4799
|
super(t, e);
|
|
4766
4800
|
this._settings = e;
|
|
4767
|
-
this._scandir =
|
|
4768
|
-
this._emitter = new
|
|
4769
|
-
this._queue =
|
|
4801
|
+
this._scandir = Ca.scandir;
|
|
4802
|
+
this._emitter = new xa.EventEmitter;
|
|
4803
|
+
this._queue = wa(this._worker.bind(this), this._settings.concurrency);
|
|
4770
4804
|
this._isFatalError = false;
|
|
4771
4805
|
this._isDestroyed = false;
|
|
4772
4806
|
this._queue.drain = () => {
|
|
@@ -4826,7 +4860,7 @@ class AsyncReader extends Pa.default {
|
|
|
4826
4860
|
}));
|
|
4827
4861
|
}
|
|
4828
4862
|
_handleError(t) {
|
|
4829
|
-
if (this._isDestroyed || !
|
|
4863
|
+
if (this._isDestroyed || !Ta.isFatalError(this._settings, t)) {
|
|
4830
4864
|
return;
|
|
4831
4865
|
}
|
|
4832
4866
|
this._isFatalError = true;
|
|
@@ -4839,12 +4873,12 @@ class AsyncReader extends Pa.default {
|
|
|
4839
4873
|
}
|
|
4840
4874
|
const r = t.path;
|
|
4841
4875
|
if (e !== undefined) {
|
|
4842
|
-
t.path =
|
|
4876
|
+
t.path = Ta.joinPathSegments(e, t.name, this._settings.pathSegmentSeparator);
|
|
4843
4877
|
}
|
|
4844
|
-
if (
|
|
4878
|
+
if (Ta.isAppliedFilter(this._settings.entryFilter, t)) {
|
|
4845
4879
|
this._emitEntry(t);
|
|
4846
4880
|
}
|
|
4847
|
-
if (t.dirent.isDirectory() &&
|
|
4881
|
+
if (t.dirent.isDirectory() && Ta.isAppliedFilter(this._settings.deepFilter, t)) {
|
|
4848
4882
|
this._pushToQueue(r, e === undefined ? undefined : t.path);
|
|
4849
4883
|
}
|
|
4850
4884
|
}
|
|
@@ -4853,65 +4887,65 @@ class AsyncReader extends Pa.default {
|
|
|
4853
4887
|
}
|
|
4854
4888
|
}
|
|
4855
4889
|
|
|
4856
|
-
var
|
|
4890
|
+
var Oa = hi.default = AsyncReader;
|
|
4857
4891
|
|
|
4858
4892
|
"use strict";
|
|
4859
4893
|
|
|
4860
|
-
Object.defineProperty(
|
|
4894
|
+
Object.defineProperty(pi, "__esModule", {
|
|
4861
4895
|
value: true
|
|
4862
4896
|
});
|
|
4863
4897
|
|
|
4864
|
-
const
|
|
4898
|
+
const La = hi;
|
|
4865
4899
|
|
|
4866
4900
|
class AsyncProvider {
|
|
4867
4901
|
constructor(t, e) {
|
|
4868
4902
|
this._root = t;
|
|
4869
4903
|
this._settings = e;
|
|
4870
|
-
this._reader = new
|
|
4904
|
+
this._reader = new La.default(this._root, this._settings);
|
|
4871
4905
|
this._storage = [];
|
|
4872
4906
|
}
|
|
4873
4907
|
read(t) {
|
|
4874
4908
|
this._reader.onError((e => {
|
|
4875
|
-
|
|
4909
|
+
$a(t, e);
|
|
4876
4910
|
}));
|
|
4877
4911
|
this._reader.onEntry((t => {
|
|
4878
4912
|
this._storage.push(t);
|
|
4879
4913
|
}));
|
|
4880
4914
|
this._reader.onEnd((() => {
|
|
4881
|
-
|
|
4915
|
+
Ma(t, this._storage);
|
|
4882
4916
|
}));
|
|
4883
4917
|
this._reader.read();
|
|
4884
4918
|
}
|
|
4885
4919
|
}
|
|
4886
4920
|
|
|
4887
|
-
var
|
|
4921
|
+
var Ha = pi.default = AsyncProvider;
|
|
4888
4922
|
|
|
4889
|
-
function
|
|
4923
|
+
function $a(t, e) {
|
|
4890
4924
|
t(e);
|
|
4891
4925
|
}
|
|
4892
4926
|
|
|
4893
|
-
function
|
|
4927
|
+
function Ma(t, e) {
|
|
4894
4928
|
t(null, e);
|
|
4895
4929
|
}
|
|
4896
4930
|
|
|
4897
|
-
var
|
|
4931
|
+
var Da = {};
|
|
4898
4932
|
|
|
4899
4933
|
"use strict";
|
|
4900
4934
|
|
|
4901
|
-
Object.defineProperty(
|
|
4935
|
+
Object.defineProperty(Da, "__esModule", {
|
|
4902
4936
|
value: true
|
|
4903
4937
|
});
|
|
4904
4938
|
|
|
4905
|
-
const
|
|
4939
|
+
const Fa = a;
|
|
4906
4940
|
|
|
4907
|
-
const
|
|
4941
|
+
const Ia = hi;
|
|
4908
4942
|
|
|
4909
4943
|
class StreamProvider {
|
|
4910
4944
|
constructor(t, e) {
|
|
4911
4945
|
this._root = t;
|
|
4912
4946
|
this._settings = e;
|
|
4913
|
-
this._reader = new
|
|
4914
|
-
this._stream = new
|
|
4947
|
+
this._reader = new Ia.default(this._root, this._settings);
|
|
4948
|
+
this._stream = new Fa.Readable({
|
|
4915
4949
|
objectMode: true,
|
|
4916
4950
|
read: () => {},
|
|
4917
4951
|
destroy: () => {
|
|
@@ -4936,28 +4970,28 @@ class StreamProvider {
|
|
|
4936
4970
|
}
|
|
4937
4971
|
}
|
|
4938
4972
|
|
|
4939
|
-
var
|
|
4973
|
+
var Na = Da.default = StreamProvider;
|
|
4940
4974
|
|
|
4941
|
-
var
|
|
4975
|
+
var ja = {};
|
|
4942
4976
|
|
|
4943
|
-
var
|
|
4977
|
+
var Ba = {};
|
|
4944
4978
|
|
|
4945
4979
|
"use strict";
|
|
4946
4980
|
|
|
4947
|
-
Object.defineProperty(
|
|
4981
|
+
Object.defineProperty(Ba, "__esModule", {
|
|
4948
4982
|
value: true
|
|
4949
4983
|
});
|
|
4950
4984
|
|
|
4951
|
-
const
|
|
4985
|
+
const Ga = di;
|
|
4952
4986
|
|
|
4953
|
-
const
|
|
4987
|
+
const Ua = ha;
|
|
4954
4988
|
|
|
4955
|
-
const
|
|
4989
|
+
const Wa = Ea;
|
|
4956
4990
|
|
|
4957
|
-
class SyncReader extends
|
|
4991
|
+
class SyncReader extends Wa.default {
|
|
4958
4992
|
constructor() {
|
|
4959
4993
|
super(...arguments);
|
|
4960
|
-
this._scandir =
|
|
4994
|
+
this._scandir = Ga.scandirSync;
|
|
4961
4995
|
this._storage = [];
|
|
4962
4996
|
this._queue = new Set;
|
|
4963
4997
|
}
|
|
@@ -4988,7 +5022,7 @@ class SyncReader extends Na.default {
|
|
|
4988
5022
|
}
|
|
4989
5023
|
}
|
|
4990
5024
|
_handleError(t) {
|
|
4991
|
-
if (!
|
|
5025
|
+
if (!Ua.isFatalError(this._settings, t)) {
|
|
4992
5026
|
return;
|
|
4993
5027
|
}
|
|
4994
5028
|
throw t;
|
|
@@ -4996,12 +5030,12 @@ class SyncReader extends Na.default {
|
|
|
4996
5030
|
_handleEntry(t, e) {
|
|
4997
5031
|
const r = t.path;
|
|
4998
5032
|
if (e !== undefined) {
|
|
4999
|
-
t.path =
|
|
5033
|
+
t.path = Ua.joinPathSegments(e, t.name, this._settings.pathSegmentSeparator);
|
|
5000
5034
|
}
|
|
5001
|
-
if (
|
|
5035
|
+
if (Ua.isAppliedFilter(this._settings.entryFilter, t)) {
|
|
5002
5036
|
this._pushToStorage(t);
|
|
5003
5037
|
}
|
|
5004
|
-
if (t.dirent.isDirectory() &&
|
|
5038
|
+
if (t.dirent.isDirectory() && Ua.isAppliedFilter(this._settings.deepFilter, t)) {
|
|
5005
5039
|
this._pushToQueue(r, e === undefined ? undefined : t.path);
|
|
5006
5040
|
}
|
|
5007
5041
|
}
|
|
@@ -5010,42 +5044,42 @@ class SyncReader extends Na.default {
|
|
|
5010
5044
|
}
|
|
5011
5045
|
}
|
|
5012
5046
|
|
|
5013
|
-
var
|
|
5047
|
+
var Ka = Ba.default = SyncReader;
|
|
5014
5048
|
|
|
5015
5049
|
"use strict";
|
|
5016
5050
|
|
|
5017
|
-
Object.defineProperty(
|
|
5051
|
+
Object.defineProperty(ja, "__esModule", {
|
|
5018
5052
|
value: true
|
|
5019
5053
|
});
|
|
5020
5054
|
|
|
5021
|
-
const
|
|
5055
|
+
const Va = Ba;
|
|
5022
5056
|
|
|
5023
5057
|
class SyncProvider {
|
|
5024
5058
|
constructor(t, e) {
|
|
5025
5059
|
this._root = t;
|
|
5026
5060
|
this._settings = e;
|
|
5027
|
-
this._reader = new
|
|
5061
|
+
this._reader = new Va.default(this._root, this._settings);
|
|
5028
5062
|
}
|
|
5029
5063
|
read() {
|
|
5030
5064
|
return this._reader.read();
|
|
5031
5065
|
}
|
|
5032
5066
|
}
|
|
5033
5067
|
|
|
5034
|
-
var
|
|
5068
|
+
var Qa = ja.default = SyncProvider;
|
|
5035
5069
|
|
|
5036
|
-
var
|
|
5070
|
+
var qa = {};
|
|
5037
5071
|
|
|
5038
5072
|
"use strict";
|
|
5039
5073
|
|
|
5040
|
-
Object.defineProperty(
|
|
5074
|
+
Object.defineProperty(qa, "__esModule", {
|
|
5041
5075
|
value: true
|
|
5042
5076
|
});
|
|
5043
5077
|
|
|
5044
|
-
const
|
|
5078
|
+
const Xa = s;
|
|
5045
5079
|
|
|
5046
|
-
const
|
|
5080
|
+
const Ya = di;
|
|
5047
5081
|
|
|
5048
|
-
let
|
|
5082
|
+
let Za = class Settings {
|
|
5049
5083
|
constructor(t = {}) {
|
|
5050
5084
|
this._options = t;
|
|
5051
5085
|
this.basePath = this._getValue(this._options.basePath, undefined);
|
|
@@ -5053,8 +5087,8 @@ let Va = class Settings {
|
|
|
5053
5087
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
5054
5088
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
5055
5089
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
5056
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
5057
|
-
this.fsScandirSettings = new
|
|
5090
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, Xa.sep);
|
|
5091
|
+
this.fsScandirSettings = new Ya.Settings({
|
|
5058
5092
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
5059
5093
|
fs: this._options.fs,
|
|
5060
5094
|
pathSegmentSeparator: this._options.pathSegmentSeparator,
|
|
@@ -5067,90 +5101,90 @@ let Va = class Settings {
|
|
|
5067
5101
|
}
|
|
5068
5102
|
};
|
|
5069
5103
|
|
|
5070
|
-
var
|
|
5104
|
+
var za = qa.default = Za;
|
|
5071
5105
|
|
|
5072
5106
|
"use strict";
|
|
5073
5107
|
|
|
5074
|
-
Object.defineProperty(
|
|
5108
|
+
Object.defineProperty(fi, "__esModule", {
|
|
5075
5109
|
value: true
|
|
5076
5110
|
});
|
|
5077
5111
|
|
|
5078
|
-
var
|
|
5112
|
+
var Ja = fi.Settings = cu = fi.walkStream = au = fi.walkSync = iu = fi.walk = void 0;
|
|
5079
5113
|
|
|
5080
|
-
const
|
|
5114
|
+
const tu = pi;
|
|
5081
5115
|
|
|
5082
|
-
const
|
|
5116
|
+
const eu = Da;
|
|
5083
5117
|
|
|
5084
|
-
const
|
|
5118
|
+
const ru = ja;
|
|
5085
5119
|
|
|
5086
|
-
const
|
|
5120
|
+
const nu = qa;
|
|
5087
5121
|
|
|
5088
|
-
|
|
5122
|
+
Ja = fi.Settings = nu.default;
|
|
5089
5123
|
|
|
5090
|
-
function
|
|
5124
|
+
function su(t, e, r) {
|
|
5091
5125
|
if (typeof e === "function") {
|
|
5092
|
-
new
|
|
5126
|
+
new tu.default(t, lu()).read(e);
|
|
5093
5127
|
return;
|
|
5094
5128
|
}
|
|
5095
|
-
new
|
|
5129
|
+
new tu.default(t, lu(e)).read(r);
|
|
5096
5130
|
}
|
|
5097
5131
|
|
|
5098
|
-
var
|
|
5132
|
+
var iu = fi.walk = su;
|
|
5099
5133
|
|
|
5100
|
-
function
|
|
5101
|
-
const r =
|
|
5102
|
-
const n = new
|
|
5134
|
+
function ou(t, e) {
|
|
5135
|
+
const r = lu(e);
|
|
5136
|
+
const n = new ru.default(t, r);
|
|
5103
5137
|
return n.read();
|
|
5104
5138
|
}
|
|
5105
5139
|
|
|
5106
|
-
var
|
|
5140
|
+
var au = fi.walkSync = ou;
|
|
5107
5141
|
|
|
5108
|
-
function
|
|
5109
|
-
const r =
|
|
5110
|
-
const n = new
|
|
5142
|
+
function uu(t, e) {
|
|
5143
|
+
const r = lu(e);
|
|
5144
|
+
const n = new eu.default(t, r);
|
|
5111
5145
|
return n.read();
|
|
5112
5146
|
}
|
|
5113
5147
|
|
|
5114
|
-
var
|
|
5148
|
+
var cu = fi.walkStream = uu;
|
|
5115
5149
|
|
|
5116
|
-
function
|
|
5117
|
-
if (t instanceof
|
|
5150
|
+
function lu(t = {}) {
|
|
5151
|
+
if (t instanceof nu.default) {
|
|
5118
5152
|
return t;
|
|
5119
5153
|
}
|
|
5120
|
-
return new
|
|
5154
|
+
return new nu.default(t);
|
|
5121
5155
|
}
|
|
5122
5156
|
|
|
5123
|
-
var
|
|
5157
|
+
var fu = {};
|
|
5124
5158
|
|
|
5125
5159
|
"use strict";
|
|
5126
5160
|
|
|
5127
|
-
Object.defineProperty(
|
|
5161
|
+
Object.defineProperty(fu, "__esModule", {
|
|
5128
5162
|
value: true
|
|
5129
5163
|
});
|
|
5130
5164
|
|
|
5131
|
-
const
|
|
5165
|
+
const pu = s;
|
|
5132
5166
|
|
|
5133
|
-
const
|
|
5167
|
+
const hu = gi;
|
|
5134
5168
|
|
|
5135
|
-
const
|
|
5169
|
+
const du = p;
|
|
5136
5170
|
|
|
5137
5171
|
class Reader {
|
|
5138
5172
|
constructor(t) {
|
|
5139
5173
|
this._settings = t;
|
|
5140
|
-
this._fsStatSettings = new
|
|
5174
|
+
this._fsStatSettings = new hu.Settings({
|
|
5141
5175
|
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
5142
5176
|
fs: this._settings.fs,
|
|
5143
5177
|
throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
|
|
5144
5178
|
});
|
|
5145
5179
|
}
|
|
5146
5180
|
_getFullEntryPath(t) {
|
|
5147
|
-
return
|
|
5181
|
+
return pu.resolve(this._settings.cwd, t);
|
|
5148
5182
|
}
|
|
5149
5183
|
_makeEntry(t, e) {
|
|
5150
5184
|
const r = {
|
|
5151
5185
|
name: e,
|
|
5152
5186
|
path: e,
|
|
5153
|
-
dirent:
|
|
5187
|
+
dirent: du.fs.createDirentFromStats(e, t)
|
|
5154
5188
|
};
|
|
5155
5189
|
if (this._settings.stats) {
|
|
5156
5190
|
r.stats = t;
|
|
@@ -5158,40 +5192,40 @@ class Reader {
|
|
|
5158
5192
|
return r;
|
|
5159
5193
|
}
|
|
5160
5194
|
_isFatalError(t) {
|
|
5161
|
-
return !
|
|
5195
|
+
return !du.errno.isEnoentCodeError(t) && !this._settings.suppressErrors;
|
|
5162
5196
|
}
|
|
5163
5197
|
}
|
|
5164
5198
|
|
|
5165
|
-
var
|
|
5199
|
+
var _u = fu.default = Reader;
|
|
5166
5200
|
|
|
5167
|
-
var
|
|
5201
|
+
var gu = {};
|
|
5168
5202
|
|
|
5169
5203
|
"use strict";
|
|
5170
5204
|
|
|
5171
|
-
Object.defineProperty(
|
|
5205
|
+
Object.defineProperty(gu, "__esModule", {
|
|
5172
5206
|
value: true
|
|
5173
5207
|
});
|
|
5174
5208
|
|
|
5175
|
-
const
|
|
5209
|
+
const yu = a;
|
|
5176
5210
|
|
|
5177
|
-
const
|
|
5211
|
+
const vu = gi;
|
|
5178
5212
|
|
|
5179
|
-
const
|
|
5213
|
+
const mu = fi;
|
|
5180
5214
|
|
|
5181
|
-
const
|
|
5215
|
+
const Su = fu;
|
|
5182
5216
|
|
|
5183
|
-
class ReaderStream extends
|
|
5217
|
+
class ReaderStream extends Su.default {
|
|
5184
5218
|
constructor() {
|
|
5185
5219
|
super(...arguments);
|
|
5186
|
-
this._walkStream =
|
|
5187
|
-
this._stat =
|
|
5220
|
+
this._walkStream = mu.walkStream;
|
|
5221
|
+
this._stat = vu.stat;
|
|
5188
5222
|
}
|
|
5189
5223
|
dynamic(t, e) {
|
|
5190
5224
|
return this._walkStream(t, e);
|
|
5191
5225
|
}
|
|
5192
5226
|
static(t, e) {
|
|
5193
5227
|
const r = t.map(this._getFullEntryPath, this);
|
|
5194
|
-
const n = new
|
|
5228
|
+
const n = new yu.PassThrough({
|
|
5195
5229
|
objectMode: true
|
|
5196
5230
|
});
|
|
5197
5231
|
n._write = (s, i, o) => this._getEntry(r[s], t[s], e).then((t => {
|
|
@@ -5223,25 +5257,25 @@ class ReaderStream extends _u.default {
|
|
|
5223
5257
|
}
|
|
5224
5258
|
}
|
|
5225
5259
|
|
|
5226
|
-
var
|
|
5260
|
+
var Au = gu.default = ReaderStream;
|
|
5227
5261
|
|
|
5228
5262
|
"use strict";
|
|
5229
5263
|
|
|
5230
|
-
Object.defineProperty(
|
|
5264
|
+
Object.defineProperty(li, "__esModule", {
|
|
5231
5265
|
value: true
|
|
5232
5266
|
});
|
|
5233
5267
|
|
|
5234
|
-
const
|
|
5268
|
+
const Eu = fi;
|
|
5235
5269
|
|
|
5236
|
-
const
|
|
5270
|
+
const bu = fu;
|
|
5237
5271
|
|
|
5238
|
-
const
|
|
5272
|
+
const Ru = gu;
|
|
5239
5273
|
|
|
5240
|
-
class ReaderAsync extends
|
|
5274
|
+
class ReaderAsync extends bu.default {
|
|
5241
5275
|
constructor() {
|
|
5242
5276
|
super(...arguments);
|
|
5243
|
-
this._walkAsync =
|
|
5244
|
-
this._readerStream = new
|
|
5277
|
+
this._walkAsync = Eu.walk;
|
|
5278
|
+
this._readerStream = new Ru.default(this._settings);
|
|
5245
5279
|
}
|
|
5246
5280
|
dynamic(t, e) {
|
|
5247
5281
|
return new Promise(((r, n) => {
|
|
@@ -5265,23 +5299,23 @@ class ReaderAsync extends vu.default {
|
|
|
5265
5299
|
}
|
|
5266
5300
|
}
|
|
5267
5301
|
|
|
5268
|
-
var
|
|
5302
|
+
var Pu = li.default = ReaderAsync;
|
|
5269
5303
|
|
|
5270
|
-
var
|
|
5304
|
+
var xu = {};
|
|
5271
5305
|
|
|
5272
|
-
var
|
|
5306
|
+
var Cu = {};
|
|
5273
5307
|
|
|
5274
|
-
var
|
|
5308
|
+
var wu = {};
|
|
5275
5309
|
|
|
5276
|
-
var
|
|
5310
|
+
var Tu = {};
|
|
5277
5311
|
|
|
5278
5312
|
"use strict";
|
|
5279
5313
|
|
|
5280
|
-
Object.defineProperty(
|
|
5314
|
+
Object.defineProperty(Tu, "__esModule", {
|
|
5281
5315
|
value: true
|
|
5282
5316
|
});
|
|
5283
5317
|
|
|
5284
|
-
const
|
|
5318
|
+
const ku = p;
|
|
5285
5319
|
|
|
5286
5320
|
class Matcher {
|
|
5287
5321
|
constructor(t, e, r) {
|
|
@@ -5304,9 +5338,9 @@ class Matcher {
|
|
|
5304
5338
|
}
|
|
5305
5339
|
}
|
|
5306
5340
|
_getPatternSegments(t) {
|
|
5307
|
-
const e =
|
|
5341
|
+
const e = ku.pattern.getPatternParts(t, this._micromatchOptions);
|
|
5308
5342
|
return e.map((t => {
|
|
5309
|
-
const e =
|
|
5343
|
+
const e = ku.pattern.isDynamicPattern(t, this._settings);
|
|
5310
5344
|
if (!e) {
|
|
5311
5345
|
return {
|
|
5312
5346
|
dynamic: false,
|
|
@@ -5316,26 +5350,26 @@ class Matcher {
|
|
|
5316
5350
|
return {
|
|
5317
5351
|
dynamic: true,
|
|
5318
5352
|
pattern: t,
|
|
5319
|
-
patternRe:
|
|
5353
|
+
patternRe: ku.pattern.makeRe(t, this._micromatchOptions)
|
|
5320
5354
|
};
|
|
5321
5355
|
}));
|
|
5322
5356
|
}
|
|
5323
5357
|
_splitSegmentsIntoSections(t) {
|
|
5324
|
-
return
|
|
5358
|
+
return ku.array.splitWhen(t, (t => t.dynamic && ku.pattern.hasGlobStar(t.pattern)));
|
|
5325
5359
|
}
|
|
5326
5360
|
}
|
|
5327
5361
|
|
|
5328
|
-
var
|
|
5362
|
+
var Ou = Tu.default = Matcher;
|
|
5329
5363
|
|
|
5330
5364
|
"use strict";
|
|
5331
5365
|
|
|
5332
|
-
Object.defineProperty(
|
|
5366
|
+
Object.defineProperty(wu, "__esModule", {
|
|
5333
5367
|
value: true
|
|
5334
5368
|
});
|
|
5335
5369
|
|
|
5336
|
-
const
|
|
5370
|
+
const Lu = Tu;
|
|
5337
5371
|
|
|
5338
|
-
class PartialMatcher extends
|
|
5372
|
+
class PartialMatcher extends Lu.default {
|
|
5339
5373
|
match(t) {
|
|
5340
5374
|
const e = t.split("/");
|
|
5341
5375
|
const r = e.length;
|
|
@@ -5363,17 +5397,17 @@ class PartialMatcher extends Cu.default {
|
|
|
5363
5397
|
}
|
|
5364
5398
|
}
|
|
5365
5399
|
|
|
5366
|
-
var
|
|
5400
|
+
var Hu = wu.default = PartialMatcher;
|
|
5367
5401
|
|
|
5368
5402
|
"use strict";
|
|
5369
5403
|
|
|
5370
|
-
Object.defineProperty(
|
|
5404
|
+
Object.defineProperty(Cu, "__esModule", {
|
|
5371
5405
|
value: true
|
|
5372
5406
|
});
|
|
5373
5407
|
|
|
5374
|
-
const
|
|
5408
|
+
const $u = p;
|
|
5375
5409
|
|
|
5376
|
-
const
|
|
5410
|
+
const Mu = wu;
|
|
5377
5411
|
|
|
5378
5412
|
class DeepFilter {
|
|
5379
5413
|
constructor(t, e) {
|
|
@@ -5386,11 +5420,11 @@ class DeepFilter {
|
|
|
5386
5420
|
return e => this._filter(t, e, n, s);
|
|
5387
5421
|
}
|
|
5388
5422
|
_getMatcher(t) {
|
|
5389
|
-
return new
|
|
5423
|
+
return new Mu.default(t, this._settings, this._micromatchOptions);
|
|
5390
5424
|
}
|
|
5391
5425
|
_getNegativePatternsRe(t) {
|
|
5392
|
-
const e = t.filter(
|
|
5393
|
-
return
|
|
5426
|
+
const e = t.filter($u.pattern.isAffectDepthOfReadingPattern);
|
|
5427
|
+
return $u.pattern.convertPatternsToRe(e, this._micromatchOptions);
|
|
5394
5428
|
}
|
|
5395
5429
|
_filter(t, e, r, n) {
|
|
5396
5430
|
if (this._isSkippedByDeep(t, e.path)) {
|
|
@@ -5399,7 +5433,7 @@ class DeepFilter {
|
|
|
5399
5433
|
if (this._isSkippedSymbolicLink(e)) {
|
|
5400
5434
|
return false;
|
|
5401
5435
|
}
|
|
5402
|
-
const s =
|
|
5436
|
+
const s = $u.path.removeLeadingDotSegment(e.path);
|
|
5403
5437
|
if (this._isSkippedByPositivePatterns(s, r)) {
|
|
5404
5438
|
return false;
|
|
5405
5439
|
}
|
|
@@ -5426,21 +5460,21 @@ class DeepFilter {
|
|
|
5426
5460
|
return !this._settings.baseNameMatch && !e.match(t);
|
|
5427
5461
|
}
|
|
5428
5462
|
_isSkippedByNegativePatterns(t, e) {
|
|
5429
|
-
return
|
|
5463
|
+
return !$u.pattern.matchAny(t, e);
|
|
5430
5464
|
}
|
|
5431
5465
|
}
|
|
5432
5466
|
|
|
5433
|
-
var
|
|
5467
|
+
var Du = Cu.default = DeepFilter;
|
|
5434
5468
|
|
|
5435
|
-
var
|
|
5469
|
+
var Fu = {};
|
|
5436
5470
|
|
|
5437
5471
|
"use strict";
|
|
5438
5472
|
|
|
5439
|
-
Object.defineProperty(
|
|
5473
|
+
Object.defineProperty(Fu, "__esModule", {
|
|
5440
5474
|
value: true
|
|
5441
5475
|
});
|
|
5442
5476
|
|
|
5443
|
-
const
|
|
5477
|
+
const Iu = p;
|
|
5444
5478
|
|
|
5445
5479
|
class EntryFilter {
|
|
5446
5480
|
constructor(t, e) {
|
|
@@ -5449,29 +5483,35 @@ class EntryFilter {
|
|
|
5449
5483
|
this.index = new Map;
|
|
5450
5484
|
}
|
|
5451
5485
|
getFilter(t, e) {
|
|
5452
|
-
const r =
|
|
5453
|
-
const
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5486
|
+
const [r, n] = Iu.pattern.partitionAbsoluteAndRelative(e);
|
|
5487
|
+
const s = {
|
|
5488
|
+
positive: {
|
|
5489
|
+
all: Iu.pattern.convertPatternsToRe(t, this._micromatchOptions)
|
|
5490
|
+
},
|
|
5491
|
+
negative: {
|
|
5492
|
+
absolute: Iu.pattern.convertPatternsToRe(r, Object.assign(Object.assign({}, this._micromatchOptions), {
|
|
5493
|
+
dot: true
|
|
5494
|
+
})),
|
|
5495
|
+
relative: Iu.pattern.convertPatternsToRe(n, Object.assign(Object.assign({}, this._micromatchOptions), {
|
|
5496
|
+
dot: true
|
|
5497
|
+
}))
|
|
5498
|
+
}
|
|
5499
|
+
};
|
|
5500
|
+
return t => this._filter(t, s);
|
|
5457
5501
|
}
|
|
5458
|
-
_filter(t, e
|
|
5459
|
-
const
|
|
5460
|
-
if (this._settings.unique && this._isDuplicateEntry(
|
|
5502
|
+
_filter(t, e) {
|
|
5503
|
+
const r = Iu.path.removeLeadingDotSegment(t.path);
|
|
5504
|
+
if (this._settings.unique && this._isDuplicateEntry(r)) {
|
|
5461
5505
|
return false;
|
|
5462
5506
|
}
|
|
5463
5507
|
if (this._onlyFileFilter(t) || this._onlyDirectoryFilter(t)) {
|
|
5464
5508
|
return false;
|
|
5465
5509
|
}
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
const s = t.dirent.isDirectory();
|
|
5470
|
-
const i = this._isMatchToPatterns(n, e, s) && !this._isMatchToPatterns(n, r, s);
|
|
5471
|
-
if (this._settings.unique && i) {
|
|
5472
|
-
this._createIndexRecord(n);
|
|
5510
|
+
const n = this._isMatchToPatternsSet(r, e, t.dirent.isDirectory());
|
|
5511
|
+
if (this._settings.unique && n) {
|
|
5512
|
+
this._createIndexRecord(r);
|
|
5473
5513
|
}
|
|
5474
|
-
return
|
|
5514
|
+
return n;
|
|
5475
5515
|
}
|
|
5476
5516
|
_isDuplicateEntry(t) {
|
|
5477
5517
|
return this.index.has(t);
|
|
@@ -5485,33 +5525,51 @@ class EntryFilter {
|
|
|
5485
5525
|
_onlyDirectoryFilter(t) {
|
|
5486
5526
|
return this._settings.onlyDirectories && !t.dirent.isDirectory();
|
|
5487
5527
|
}
|
|
5488
|
-
|
|
5489
|
-
|
|
5528
|
+
_isMatchToPatternsSet(t, e, r) {
|
|
5529
|
+
const n = this._isMatchToPatterns(t, e.positive.all, r);
|
|
5530
|
+
if (!n) {
|
|
5531
|
+
return false;
|
|
5532
|
+
}
|
|
5533
|
+
const s = this._isMatchToPatterns(t, e.negative.relative, r);
|
|
5534
|
+
if (s) {
|
|
5535
|
+
return false;
|
|
5536
|
+
}
|
|
5537
|
+
const i = this._isMatchToAbsoluteNegative(t, e.negative.absolute, r);
|
|
5538
|
+
if (i) {
|
|
5539
|
+
return false;
|
|
5540
|
+
}
|
|
5541
|
+
return true;
|
|
5542
|
+
}
|
|
5543
|
+
_isMatchToAbsoluteNegative(t, e, r) {
|
|
5544
|
+
if (e.length === 0) {
|
|
5490
5545
|
return false;
|
|
5491
5546
|
}
|
|
5492
|
-
const
|
|
5493
|
-
return
|
|
5547
|
+
const n = Iu.path.makeAbsolute(this._settings.cwd, t);
|
|
5548
|
+
return this._isMatchToPatterns(n, e, r);
|
|
5494
5549
|
}
|
|
5495
5550
|
_isMatchToPatterns(t, e, r) {
|
|
5496
|
-
|
|
5551
|
+
if (e.length === 0) {
|
|
5552
|
+
return false;
|
|
5553
|
+
}
|
|
5554
|
+
const n = Iu.pattern.matchAny(t, e);
|
|
5497
5555
|
if (!n && r) {
|
|
5498
|
-
return
|
|
5556
|
+
return Iu.pattern.matchAny(t + "/", e);
|
|
5499
5557
|
}
|
|
5500
5558
|
return n;
|
|
5501
5559
|
}
|
|
5502
5560
|
}
|
|
5503
5561
|
|
|
5504
|
-
var
|
|
5562
|
+
var Nu = Fu.default = EntryFilter;
|
|
5505
5563
|
|
|
5506
|
-
var
|
|
5564
|
+
var ju = {};
|
|
5507
5565
|
|
|
5508
5566
|
"use strict";
|
|
5509
5567
|
|
|
5510
|
-
Object.defineProperty(
|
|
5568
|
+
Object.defineProperty(ju, "__esModule", {
|
|
5511
5569
|
value: true
|
|
5512
5570
|
});
|
|
5513
5571
|
|
|
5514
|
-
const
|
|
5572
|
+
const Bu = p;
|
|
5515
5573
|
|
|
5516
5574
|
class ErrorFilter {
|
|
5517
5575
|
constructor(t) {
|
|
@@ -5521,21 +5579,21 @@ class ErrorFilter {
|
|
|
5521
5579
|
return t => this._isNonFatalError(t);
|
|
5522
5580
|
}
|
|
5523
5581
|
_isNonFatalError(t) {
|
|
5524
|
-
return
|
|
5582
|
+
return Bu.errno.isEnoentCodeError(t) || this._settings.suppressErrors;
|
|
5525
5583
|
}
|
|
5526
5584
|
}
|
|
5527
5585
|
|
|
5528
|
-
var
|
|
5586
|
+
var Gu = ju.default = ErrorFilter;
|
|
5529
5587
|
|
|
5530
|
-
var
|
|
5588
|
+
var Uu = {};
|
|
5531
5589
|
|
|
5532
5590
|
"use strict";
|
|
5533
5591
|
|
|
5534
|
-
Object.defineProperty(
|
|
5592
|
+
Object.defineProperty(Uu, "__esModule", {
|
|
5535
5593
|
value: true
|
|
5536
5594
|
});
|
|
5537
5595
|
|
|
5538
|
-
const
|
|
5596
|
+
const Wu = p;
|
|
5539
5597
|
|
|
5540
5598
|
class EntryTransformer {
|
|
5541
5599
|
constructor(t) {
|
|
@@ -5547,8 +5605,8 @@ class EntryTransformer {
|
|
|
5547
5605
|
_transform(t) {
|
|
5548
5606
|
let e = t.path;
|
|
5549
5607
|
if (this._settings.absolute) {
|
|
5550
|
-
e =
|
|
5551
|
-
e =
|
|
5608
|
+
e = Wu.path.makeAbsolute(this._settings.cwd, e);
|
|
5609
|
+
e = Wu.path.unixify(e);
|
|
5552
5610
|
}
|
|
5553
5611
|
if (this._settings.markDirectories && t.dirent.isDirectory()) {
|
|
5554
5612
|
e += "/";
|
|
@@ -5562,34 +5620,34 @@ class EntryTransformer {
|
|
|
5562
5620
|
}
|
|
5563
5621
|
}
|
|
5564
5622
|
|
|
5565
|
-
var
|
|
5623
|
+
var Ku = Uu.default = EntryTransformer;
|
|
5566
5624
|
|
|
5567
5625
|
"use strict";
|
|
5568
5626
|
|
|
5569
|
-
Object.defineProperty(
|
|
5627
|
+
Object.defineProperty(xu, "__esModule", {
|
|
5570
5628
|
value: true
|
|
5571
5629
|
});
|
|
5572
5630
|
|
|
5573
|
-
const
|
|
5631
|
+
const Vu = s;
|
|
5574
5632
|
|
|
5575
|
-
const
|
|
5633
|
+
const Qu = Cu;
|
|
5576
5634
|
|
|
5577
|
-
const
|
|
5635
|
+
const qu = Fu;
|
|
5578
5636
|
|
|
5579
|
-
const
|
|
5637
|
+
const Xu = ju;
|
|
5580
5638
|
|
|
5581
|
-
const
|
|
5639
|
+
const Yu = Uu;
|
|
5582
5640
|
|
|
5583
5641
|
class Provider {
|
|
5584
5642
|
constructor(t) {
|
|
5585
5643
|
this._settings = t;
|
|
5586
|
-
this.errorFilter = new
|
|
5587
|
-
this.entryFilter = new
|
|
5588
|
-
this.deepFilter = new
|
|
5589
|
-
this.entryTransformer = new
|
|
5644
|
+
this.errorFilter = new Xu.default(this._settings);
|
|
5645
|
+
this.entryFilter = new qu.default(this._settings, this._getMicromatchOptions());
|
|
5646
|
+
this.deepFilter = new Qu.default(this._settings, this._getMicromatchOptions());
|
|
5647
|
+
this.entryTransformer = new Yu.default(this._settings);
|
|
5590
5648
|
}
|
|
5591
5649
|
_getRootDirectory(t) {
|
|
5592
|
-
return
|
|
5650
|
+
return Vu.resolve(this._settings.cwd, t.base);
|
|
5593
5651
|
}
|
|
5594
5652
|
_getReaderOptions(t) {
|
|
5595
5653
|
const e = t.base === "." ? "" : t.base;
|
|
@@ -5621,22 +5679,22 @@ class Provider {
|
|
|
5621
5679
|
}
|
|
5622
5680
|
}
|
|
5623
5681
|
|
|
5624
|
-
var
|
|
5682
|
+
var Zu = xu.default = Provider;
|
|
5625
5683
|
|
|
5626
5684
|
"use strict";
|
|
5627
5685
|
|
|
5628
|
-
Object.defineProperty(
|
|
5686
|
+
Object.defineProperty(ci, "__esModule", {
|
|
5629
5687
|
value: true
|
|
5630
5688
|
});
|
|
5631
5689
|
|
|
5632
|
-
const
|
|
5690
|
+
const zu = li;
|
|
5633
5691
|
|
|
5634
|
-
const
|
|
5692
|
+
const Ju = xu;
|
|
5635
5693
|
|
|
5636
|
-
class ProviderAsync extends
|
|
5694
|
+
class ProviderAsync extends Ju.default {
|
|
5637
5695
|
constructor() {
|
|
5638
5696
|
super(...arguments);
|
|
5639
|
-
this._reader = new
|
|
5697
|
+
this._reader = new zu.default(this._settings);
|
|
5640
5698
|
}
|
|
5641
5699
|
async read(t) {
|
|
5642
5700
|
const e = this._getRootDirectory(t);
|
|
@@ -5652,32 +5710,32 @@ class ProviderAsync extends qu.default {
|
|
|
5652
5710
|
}
|
|
5653
5711
|
}
|
|
5654
5712
|
|
|
5655
|
-
var
|
|
5713
|
+
var tc = ci.default = ProviderAsync;
|
|
5656
5714
|
|
|
5657
|
-
var
|
|
5715
|
+
var ec = {};
|
|
5658
5716
|
|
|
5659
5717
|
"use strict";
|
|
5660
5718
|
|
|
5661
|
-
Object.defineProperty(
|
|
5719
|
+
Object.defineProperty(ec, "__esModule", {
|
|
5662
5720
|
value: true
|
|
5663
5721
|
});
|
|
5664
5722
|
|
|
5665
|
-
const
|
|
5723
|
+
const rc = a;
|
|
5666
5724
|
|
|
5667
|
-
const
|
|
5725
|
+
const nc = gu;
|
|
5668
5726
|
|
|
5669
|
-
const
|
|
5727
|
+
const sc = xu;
|
|
5670
5728
|
|
|
5671
|
-
class ProviderStream extends
|
|
5729
|
+
class ProviderStream extends sc.default {
|
|
5672
5730
|
constructor() {
|
|
5673
5731
|
super(...arguments);
|
|
5674
|
-
this._reader = new
|
|
5732
|
+
this._reader = new nc.default(this._settings);
|
|
5675
5733
|
}
|
|
5676
5734
|
read(t) {
|
|
5677
5735
|
const e = this._getRootDirectory(t);
|
|
5678
5736
|
const r = this._getReaderOptions(t);
|
|
5679
5737
|
const n = this.api(e, t, r);
|
|
5680
|
-
const s = new
|
|
5738
|
+
const s = new rc.Readable({
|
|
5681
5739
|
objectMode: true,
|
|
5682
5740
|
read: () => {}
|
|
5683
5741
|
});
|
|
@@ -5693,29 +5751,29 @@ class ProviderStream extends Ju.default {
|
|
|
5693
5751
|
}
|
|
5694
5752
|
}
|
|
5695
5753
|
|
|
5696
|
-
var
|
|
5754
|
+
var ic = ec.default = ProviderStream;
|
|
5697
5755
|
|
|
5698
|
-
var
|
|
5756
|
+
var oc = {};
|
|
5699
5757
|
|
|
5700
|
-
var
|
|
5758
|
+
var ac = {};
|
|
5701
5759
|
|
|
5702
5760
|
"use strict";
|
|
5703
5761
|
|
|
5704
|
-
Object.defineProperty(
|
|
5762
|
+
Object.defineProperty(ac, "__esModule", {
|
|
5705
5763
|
value: true
|
|
5706
5764
|
});
|
|
5707
5765
|
|
|
5708
|
-
const
|
|
5766
|
+
const uc = gi;
|
|
5709
5767
|
|
|
5710
|
-
const
|
|
5768
|
+
const cc = fi;
|
|
5711
5769
|
|
|
5712
|
-
const
|
|
5770
|
+
const lc = fu;
|
|
5713
5771
|
|
|
5714
|
-
class ReaderSync extends
|
|
5772
|
+
class ReaderSync extends lc.default {
|
|
5715
5773
|
constructor() {
|
|
5716
5774
|
super(...arguments);
|
|
5717
|
-
this._walkSync =
|
|
5718
|
-
this._statSync =
|
|
5775
|
+
this._walkSync = cc.walkSync;
|
|
5776
|
+
this._statSync = uc.statSync;
|
|
5719
5777
|
}
|
|
5720
5778
|
dynamic(t, e) {
|
|
5721
5779
|
return this._walkSync(t, e);
|
|
@@ -5748,22 +5806,22 @@ class ReaderSync extends ic.default {
|
|
|
5748
5806
|
}
|
|
5749
5807
|
}
|
|
5750
5808
|
|
|
5751
|
-
var
|
|
5809
|
+
var fc = ac.default = ReaderSync;
|
|
5752
5810
|
|
|
5753
5811
|
"use strict";
|
|
5754
5812
|
|
|
5755
|
-
Object.defineProperty(
|
|
5813
|
+
Object.defineProperty(oc, "__esModule", {
|
|
5756
5814
|
value: true
|
|
5757
5815
|
});
|
|
5758
5816
|
|
|
5759
|
-
const
|
|
5817
|
+
const pc = ac;
|
|
5760
5818
|
|
|
5761
|
-
const
|
|
5819
|
+
const hc = xu;
|
|
5762
5820
|
|
|
5763
|
-
class ProviderSync extends
|
|
5821
|
+
class ProviderSync extends hc.default {
|
|
5764
5822
|
constructor() {
|
|
5765
5823
|
super(...arguments);
|
|
5766
|
-
this._reader = new
|
|
5824
|
+
this._reader = new pc.default(this._settings);
|
|
5767
5825
|
}
|
|
5768
5826
|
read(t) {
|
|
5769
5827
|
const e = this._getRootDirectory(t);
|
|
@@ -5779,9 +5837,9 @@ class ProviderSync extends uc.default {
|
|
|
5779
5837
|
}
|
|
5780
5838
|
}
|
|
5781
5839
|
|
|
5782
|
-
var
|
|
5840
|
+
var dc = oc.default = ProviderSync;
|
|
5783
5841
|
|
|
5784
|
-
var
|
|
5842
|
+
var _c = {};
|
|
5785
5843
|
|
|
5786
5844
|
(function(t) {
|
|
5787
5845
|
"use strict";
|
|
@@ -5840,29 +5898,29 @@ var lc = {};
|
|
|
5840
5898
|
}
|
|
5841
5899
|
}
|
|
5842
5900
|
t.default = Settings;
|
|
5843
|
-
})(
|
|
5901
|
+
})(_c);
|
|
5844
5902
|
|
|
5845
|
-
const
|
|
5903
|
+
const gc = t(_c);
|
|
5846
5904
|
|
|
5847
5905
|
"use strict";
|
|
5848
5906
|
|
|
5849
|
-
const
|
|
5907
|
+
const yc = f;
|
|
5850
5908
|
|
|
5851
|
-
const
|
|
5909
|
+
const vc = ci;
|
|
5852
5910
|
|
|
5853
|
-
const
|
|
5911
|
+
const mc = ec;
|
|
5854
5912
|
|
|
5855
|
-
const
|
|
5913
|
+
const Sc = oc;
|
|
5856
5914
|
|
|
5857
|
-
const
|
|
5915
|
+
const Ac = _c;
|
|
5858
5916
|
|
|
5859
|
-
const
|
|
5917
|
+
const Ec = p;
|
|
5860
5918
|
|
|
5861
|
-
async function
|
|
5862
|
-
|
|
5863
|
-
const r =
|
|
5919
|
+
async function bc(t, e) {
|
|
5920
|
+
Pc(t);
|
|
5921
|
+
const r = Rc(t, vc.default, e);
|
|
5864
5922
|
const n = await Promise.all(r);
|
|
5865
|
-
return
|
|
5923
|
+
return Ec.array.flatten(n);
|
|
5866
5924
|
}
|
|
5867
5925
|
|
|
5868
5926
|
(function(t) {
|
|
@@ -5871,94 +5929,94 @@ async function vc(t, e) {
|
|
|
5871
5929
|
t.globStream = r;
|
|
5872
5930
|
t.async = t;
|
|
5873
5931
|
function e(t, e) {
|
|
5874
|
-
|
|
5875
|
-
const r =
|
|
5876
|
-
return
|
|
5932
|
+
Pc(t);
|
|
5933
|
+
const r = Rc(t, Sc.default, e);
|
|
5934
|
+
return Ec.array.flatten(r);
|
|
5877
5935
|
}
|
|
5878
5936
|
t.sync = e;
|
|
5879
5937
|
function r(t, e) {
|
|
5880
|
-
|
|
5881
|
-
const r =
|
|
5882
|
-
return
|
|
5938
|
+
Pc(t);
|
|
5939
|
+
const r = Rc(t, mc.default, e);
|
|
5940
|
+
return Ec.stream.merge(r);
|
|
5883
5941
|
}
|
|
5884
5942
|
t.stream = r;
|
|
5885
5943
|
function n(t, e) {
|
|
5886
|
-
|
|
5944
|
+
Pc(t);
|
|
5887
5945
|
const r = [].concat(t);
|
|
5888
|
-
const n = new
|
|
5889
|
-
return
|
|
5946
|
+
const n = new Ac.default(e);
|
|
5947
|
+
return yc.generate(r, n);
|
|
5890
5948
|
}
|
|
5891
5949
|
t.generateTasks = n;
|
|
5892
5950
|
function s(t, e) {
|
|
5893
|
-
|
|
5894
|
-
const r = new
|
|
5895
|
-
return
|
|
5951
|
+
Pc(t);
|
|
5952
|
+
const r = new Ac.default(e);
|
|
5953
|
+
return Ec.pattern.isDynamicPattern(t, r);
|
|
5896
5954
|
}
|
|
5897
5955
|
t.isDynamicPattern = s;
|
|
5898
5956
|
function i(t) {
|
|
5899
|
-
|
|
5900
|
-
return
|
|
5957
|
+
Pc(t);
|
|
5958
|
+
return Ec.path.escape(t);
|
|
5901
5959
|
}
|
|
5902
5960
|
t.escapePath = i;
|
|
5903
5961
|
function o(t) {
|
|
5904
|
-
|
|
5905
|
-
return
|
|
5962
|
+
Pc(t);
|
|
5963
|
+
return Ec.path.convertPathToPattern(t);
|
|
5906
5964
|
}
|
|
5907
5965
|
t.convertPathToPattern = o;
|
|
5908
5966
|
let a;
|
|
5909
5967
|
(function(t) {
|
|
5910
5968
|
function e(t) {
|
|
5911
|
-
|
|
5912
|
-
return
|
|
5969
|
+
Pc(t);
|
|
5970
|
+
return Ec.path.escapePosixPath(t);
|
|
5913
5971
|
}
|
|
5914
5972
|
t.escapePath = e;
|
|
5915
5973
|
function r(t) {
|
|
5916
|
-
|
|
5917
|
-
return
|
|
5974
|
+
Pc(t);
|
|
5975
|
+
return Ec.path.convertPosixPathToPattern(t);
|
|
5918
5976
|
}
|
|
5919
5977
|
t.convertPathToPattern = r;
|
|
5920
5978
|
})(a = t.posix || (t.posix = {}));
|
|
5921
5979
|
let u;
|
|
5922
5980
|
(function(t) {
|
|
5923
5981
|
function e(t) {
|
|
5924
|
-
|
|
5925
|
-
return
|
|
5982
|
+
Pc(t);
|
|
5983
|
+
return Ec.path.escapeWindowsPath(t);
|
|
5926
5984
|
}
|
|
5927
5985
|
t.escapePath = e;
|
|
5928
5986
|
function r(t) {
|
|
5929
|
-
|
|
5930
|
-
return
|
|
5987
|
+
Pc(t);
|
|
5988
|
+
return Ec.path.convertWindowsPathToPattern(t);
|
|
5931
5989
|
}
|
|
5932
5990
|
t.convertPathToPattern = r;
|
|
5933
5991
|
})(u = t.win32 || (t.win32 = {}));
|
|
5934
|
-
})(
|
|
5992
|
+
})(bc || (bc = {}));
|
|
5935
5993
|
|
|
5936
|
-
function
|
|
5994
|
+
function Rc(t, e, r) {
|
|
5937
5995
|
const n = [].concat(t);
|
|
5938
|
-
const s = new
|
|
5939
|
-
const i =
|
|
5996
|
+
const s = new Ac.default(r);
|
|
5997
|
+
const i = yc.generate(n, s);
|
|
5940
5998
|
const o = new e(s);
|
|
5941
5999
|
return i.map(o.read, o);
|
|
5942
6000
|
}
|
|
5943
6001
|
|
|
5944
|
-
function
|
|
6002
|
+
function Pc(t) {
|
|
5945
6003
|
const e = [].concat(t);
|
|
5946
|
-
const r = e.every((t =>
|
|
6004
|
+
const r = e.every((t => Ec.string.isString(t) && !Ec.string.isEmpty(t)));
|
|
5947
6005
|
if (!r) {
|
|
5948
6006
|
throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
5949
6007
|
}
|
|
5950
6008
|
}
|
|
5951
6009
|
|
|
5952
|
-
var
|
|
6010
|
+
var xc = bc;
|
|
5953
6011
|
|
|
5954
|
-
const
|
|
6012
|
+
const Cc = t(xc);
|
|
5955
6013
|
|
|
5956
|
-
const
|
|
6014
|
+
const wc = /(.*)\..*/i;
|
|
5957
6015
|
|
|
5958
|
-
function
|
|
6016
|
+
function Tc(t, e) {
|
|
5959
6017
|
e = {
|
|
5960
6018
|
cwd: process.cwd(),
|
|
5961
|
-
glob:
|
|
6019
|
+
glob: xc.sync,
|
|
5962
6020
|
...e
|
|
5963
6021
|
};
|
|
5964
6022
|
let r = null;
|
|
@@ -5971,18 +6029,18 @@ function Rc(t, e) {
|
|
|
5971
6029
|
cwd: e.cwd
|
|
5972
6030
|
});
|
|
5973
6031
|
const i = s.map((t => ({
|
|
5974
|
-
name:
|
|
6032
|
+
name: wc.exec(n.basename(t))[1],
|
|
5975
6033
|
path: n.resolve(e.cwd, t),
|
|
5976
6034
|
opts: r
|
|
5977
6035
|
})));
|
|
5978
6036
|
return i;
|
|
5979
6037
|
}
|
|
5980
6038
|
|
|
5981
|
-
function
|
|
6039
|
+
function kc(t, e) {
|
|
5982
6040
|
if (Array.isArray(t)) {
|
|
5983
|
-
return l(t.map((t =>
|
|
6041
|
+
return l(t.map((t => Tc(t, e))));
|
|
5984
6042
|
}
|
|
5985
|
-
return
|
|
6043
|
+
return Tc(t, e);
|
|
5986
6044
|
}
|
|
5987
6045
|
|
|
5988
|
-
export {
|
|
6046
|
+
export { kc as listModules };
|