@netlify/plugin-nextjs 5.2.2 → 5.3.1
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/dist/build/advanced-api-routes.js +1 -1
- package/dist/build/cache.js +1 -1
- package/dist/build/content/prerendered.js +4 -4
- package/dist/build/content/server.js +10 -9
- package/dist/build/content/static.js +4 -4
- package/dist/build/functions/edge.js +2 -2
- package/dist/build/functions/server.js +4 -4
- package/dist/build/image-cdn.js +17 -33
- package/dist/build/plugin-context.js +17 -5
- package/dist/build/verification.js +2 -10
- package/dist/esm-chunks/{chunk-PDPDW32D.js → chunk-5QSXBV7L.js} +1 -1
- package/dist/esm-chunks/{chunk-PJG75HGC.js → chunk-EFGWM7RS.js} +38 -655
- package/dist/esm-chunks/{chunk-VZNKO4OO.js → chunk-FHR56UHE.js} +56 -111
- package/dist/esm-chunks/{chunk-Y3K5Q6FP.js → chunk-GNGHTHMQ.js} +51 -86
- package/dist/esm-chunks/{chunk-5JVNISGM.js → chunk-OEQOKJGE.js} +1 -2
- package/dist/esm-chunks/{package-YOCAX5OR.js → package-JXSICZZN.js} +9 -9
- package/dist/index.js +4 -9
- package/dist/run/config.js +1 -1
- package/dist/run/constants.js +1 -1
- package/dist/run/handlers/cache.cjs +8 -10
- package/dist/run/handlers/server.js +353 -501
- package/dist/run/handlers/tracer.cjs +36 -60
- package/dist/run/handlers/tracing.js +1192 -1592
- package/dist/run/headers.js +1 -1
- package/dist/run/next.cjs +42 -78
- package/dist/run/revalidate.js +1 -1
- package/dist/run/{systemlog.js → systemlog.cjs} +31 -11
- package/dist/shared/blobkey.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import {
|
|
8
8
|
__commonJS,
|
|
9
9
|
__require
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OEQOKJGE.js";
|
|
11
11
|
|
|
12
12
|
// node_modules/fast-glob/out/utils/array.js
|
|
13
13
|
var require_array = __commonJS({
|
|
@@ -136,8 +136,7 @@ var require_is_extglob = __commonJS({
|
|
|
136
136
|
}
|
|
137
137
|
var match;
|
|
138
138
|
while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
139
|
-
if (match[2])
|
|
140
|
-
return true;
|
|
139
|
+
if (match[2]) return true;
|
|
141
140
|
str = str.slice(match.index + match[0].length);
|
|
142
141
|
}
|
|
143
142
|
return false;
|
|
@@ -320,16 +319,13 @@ var require_utils = __commonJS({
|
|
|
320
319
|
};
|
|
321
320
|
exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
|
|
322
321
|
exports.exceedsLimit = (min, max, step = 1, limit) => {
|
|
323
|
-
if (limit === false)
|
|
324
|
-
|
|
325
|
-
if (!exports.isInteger(min) || !exports.isInteger(max))
|
|
326
|
-
return false;
|
|
322
|
+
if (limit === false) return false;
|
|
323
|
+
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
327
324
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
328
325
|
};
|
|
329
326
|
exports.escapeNode = (block, n = 0, type) => {
|
|
330
327
|
let node = block.nodes[n];
|
|
331
|
-
if (!node)
|
|
332
|
-
return;
|
|
328
|
+
if (!node) return;
|
|
333
329
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
334
330
|
if (node.escaped !== true) {
|
|
335
331
|
node.value = "\\" + node.value;
|
|
@@ -338,8 +334,7 @@ var require_utils = __commonJS({
|
|
|
338
334
|
}
|
|
339
335
|
};
|
|
340
336
|
exports.encloseBrace = (node) => {
|
|
341
|
-
if (node.type !== "brace")
|
|
342
|
-
return false;
|
|
337
|
+
if (node.type !== "brace") return false;
|
|
343
338
|
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
344
339
|
node.invalid = true;
|
|
345
340
|
return true;
|
|
@@ -347,10 +342,8 @@ var require_utils = __commonJS({
|
|
|
347
342
|
return false;
|
|
348
343
|
};
|
|
349
344
|
exports.isInvalidBrace = (block) => {
|
|
350
|
-
if (block.type !== "brace")
|
|
351
|
-
|
|
352
|
-
if (block.invalid === true || block.dollar)
|
|
353
|
-
return true;
|
|
345
|
+
if (block.type !== "brace") return false;
|
|
346
|
+
if (block.invalid === true || block.dollar) return true;
|
|
354
347
|
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
355
348
|
block.invalid = true;
|
|
356
349
|
return true;
|
|
@@ -368,10 +361,8 @@ var require_utils = __commonJS({
|
|
|
368
361
|
return node.open === true || node.close === true;
|
|
369
362
|
};
|
|
370
363
|
exports.reduce = (nodes) => nodes.reduce((acc, node) => {
|
|
371
|
-
if (node.type === "text")
|
|
372
|
-
|
|
373
|
-
if (node.type === "range")
|
|
374
|
-
node.type = "text";
|
|
364
|
+
if (node.type === "text") acc.push(node.value);
|
|
365
|
+
if (node.type === "range") node.type = "text";
|
|
375
366
|
return acc;
|
|
376
367
|
}, []);
|
|
377
368
|
exports.flatten = (...args) => {
|
|
@@ -595,8 +586,7 @@ var require_to_regex_range = __commonJS({
|
|
|
595
586
|
}
|
|
596
587
|
function zip(a, b) {
|
|
597
588
|
let arr = [];
|
|
598
|
-
for (let i = 0; i < a.length; i++)
|
|
599
|
-
arr.push([a[i], b[i]]);
|
|
589
|
+
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
600
590
|
return arr;
|
|
601
591
|
}
|
|
602
592
|
function compare(a, b) {
|
|
@@ -665,12 +655,9 @@ var require_fill_range = __commonJS({
|
|
|
665
655
|
var zeros = (input) => {
|
|
666
656
|
let value = `${input}`;
|
|
667
657
|
let index = -1;
|
|
668
|
-
if (value[0] === "-")
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
return false;
|
|
672
|
-
while (value[++index] === "0")
|
|
673
|
-
;
|
|
658
|
+
if (value[0] === "-") value = value.slice(1);
|
|
659
|
+
if (value === "0") return false;
|
|
660
|
+
while (value[++index] === "0") ;
|
|
674
661
|
return index > 0;
|
|
675
662
|
};
|
|
676
663
|
var stringify = (start, end, options) => {
|
|
@@ -682,8 +669,7 @@ var require_fill_range = __commonJS({
|
|
|
682
669
|
var pad = (input, maxLength, toNumber) => {
|
|
683
670
|
if (maxLength > 0) {
|
|
684
671
|
let dash = input[0] === "-" ? "-" : "";
|
|
685
|
-
if (dash)
|
|
686
|
-
input = input.slice(1);
|
|
672
|
+
if (dash) input = input.slice(1);
|
|
687
673
|
input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
|
|
688
674
|
}
|
|
689
675
|
if (toNumber === false) {
|
|
@@ -697,8 +683,7 @@ var require_fill_range = __commonJS({
|
|
|
697
683
|
input = input.slice(1);
|
|
698
684
|
maxLength--;
|
|
699
685
|
}
|
|
700
|
-
while (input.length < maxLength)
|
|
701
|
-
input = "0" + input;
|
|
686
|
+
while (input.length < maxLength) input = "0" + input;
|
|
702
687
|
return negative ? "-" + input : input;
|
|
703
688
|
};
|
|
704
689
|
var toSequence = (parts, options) => {
|
|
@@ -729,8 +714,7 @@ var require_fill_range = __commonJS({
|
|
|
729
714
|
return toRegexRange(a, b, { wrap: false, ...options });
|
|
730
715
|
}
|
|
731
716
|
let start = String.fromCharCode(a);
|
|
732
|
-
if (a === b)
|
|
733
|
-
return start;
|
|
717
|
+
if (a === b) return start;
|
|
734
718
|
let stop = String.fromCharCode(b);
|
|
735
719
|
return `[${start}-${stop}]`;
|
|
736
720
|
};
|
|
@@ -746,8 +730,7 @@ var require_fill_range = __commonJS({
|
|
|
746
730
|
return new RangeError("Invalid range arguments: " + util.inspect(...args));
|
|
747
731
|
};
|
|
748
732
|
var invalidRange = (start, end, options) => {
|
|
749
|
-
if (options.strictRanges === true)
|
|
750
|
-
throw rangeError([start, end]);
|
|
733
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
751
734
|
return [];
|
|
752
735
|
};
|
|
753
736
|
var invalidStep = (step, options) => {
|
|
@@ -760,14 +743,11 @@ var require_fill_range = __commonJS({
|
|
|
760
743
|
let a = Number(start);
|
|
761
744
|
let b = Number(end);
|
|
762
745
|
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
763
|
-
if (options.strictRanges === true)
|
|
764
|
-
throw rangeError([start, end]);
|
|
746
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
765
747
|
return [];
|
|
766
748
|
}
|
|
767
|
-
if (a === 0)
|
|
768
|
-
|
|
769
|
-
if (b === 0)
|
|
770
|
-
b = 0;
|
|
749
|
+
if (a === 0) a = 0;
|
|
750
|
+
if (b === 0) b = 0;
|
|
771
751
|
let descending = a > b;
|
|
772
752
|
let startString = String(start);
|
|
773
753
|
let endString = String(end);
|
|
@@ -837,12 +817,10 @@ var require_fill_range = __commonJS({
|
|
|
837
817
|
return fill(start, end, 0, step);
|
|
838
818
|
}
|
|
839
819
|
let opts = { ...options };
|
|
840
|
-
if (opts.capture === true)
|
|
841
|
-
opts.wrap = true;
|
|
820
|
+
if (opts.capture === true) opts.wrap = true;
|
|
842
821
|
step = step || opts.step || 1;
|
|
843
822
|
if (!isNumber(step)) {
|
|
844
|
-
if (step != null && !isObject(step))
|
|
845
|
-
return invalidStep(step, opts);
|
|
823
|
+
if (step != null && !isObject(step)) return invalidStep(step, opts);
|
|
846
824
|
return fill(start, end, 1, step);
|
|
847
825
|
}
|
|
848
826
|
if (isNumber(start) && isNumber(end)) {
|
|
@@ -916,8 +894,7 @@ var require_expand = __commonJS({
|
|
|
916
894
|
let result = [];
|
|
917
895
|
queue = [].concat(queue);
|
|
918
896
|
stash = [].concat(stash);
|
|
919
|
-
if (!stash.length)
|
|
920
|
-
return queue;
|
|
897
|
+
if (!stash.length) return queue;
|
|
921
898
|
if (!queue.length) {
|
|
922
899
|
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
923
900
|
}
|
|
@@ -928,8 +905,7 @@ var require_expand = __commonJS({
|
|
|
928
905
|
}
|
|
929
906
|
} else {
|
|
930
907
|
for (let ele of stash) {
|
|
931
|
-
if (enclose === true && typeof ele === "string")
|
|
932
|
-
ele = `{${ele}}`;
|
|
908
|
+
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
933
909
|
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
934
910
|
}
|
|
935
911
|
}
|
|
@@ -977,8 +953,7 @@ var require_expand = __commonJS({
|
|
|
977
953
|
for (let i = 0; i < node.nodes.length; i++) {
|
|
978
954
|
let child = node.nodes[i];
|
|
979
955
|
if (child.type === "comma" && node.type === "brace") {
|
|
980
|
-
if (i === 1)
|
|
981
|
-
queue.push("");
|
|
956
|
+
if (i === 1) queue.push("");
|
|
982
957
|
queue.push("");
|
|
983
958
|
continue;
|
|
984
959
|
}
|
|
@@ -1238,8 +1213,7 @@ var require_parse = __commonJS({
|
|
|
1238
1213
|
continue;
|
|
1239
1214
|
}
|
|
1240
1215
|
if (next === open) {
|
|
1241
|
-
if (options.keepQuotes === true)
|
|
1242
|
-
value += next;
|
|
1216
|
+
if (options.keepQuotes === true) value += next;
|
|
1243
1217
|
break;
|
|
1244
1218
|
}
|
|
1245
1219
|
value += next;
|
|
@@ -1326,12 +1300,9 @@ var require_parse = __commonJS({
|
|
|
1326
1300
|
if (block.type !== "root") {
|
|
1327
1301
|
block.nodes.forEach((node) => {
|
|
1328
1302
|
if (!node.nodes) {
|
|
1329
|
-
if (node.type === "open")
|
|
1330
|
-
|
|
1331
|
-
if (node.type
|
|
1332
|
-
node.isClose = true;
|
|
1333
|
-
if (!node.nodes)
|
|
1334
|
-
node.type = "text";
|
|
1303
|
+
if (node.type === "open") node.isOpen = true;
|
|
1304
|
+
if (node.type === "close") node.isClose = true;
|
|
1305
|
+
if (!node.nodes) node.type = "text";
|
|
1335
1306
|
node.invalid = true;
|
|
1336
1307
|
}
|
|
1337
1308
|
});
|
|
@@ -1644,10 +1615,8 @@ var require_utils2 = __commonJS({
|
|
|
1644
1615
|
};
|
|
1645
1616
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
1646
1617
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
1647
|
-
if (idx === -1)
|
|
1648
|
-
|
|
1649
|
-
if (input[idx - 1] === "\\")
|
|
1650
|
-
return exports.escapeLast(input, char, idx - 1);
|
|
1618
|
+
if (idx === -1) return input;
|
|
1619
|
+
if (input[idx - 1] === "\\") return exports.escapeLast(input, char, idx - 1);
|
|
1651
1620
|
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
1652
1621
|
};
|
|
1653
1622
|
exports.removePrefix = (input, state = {}) => {
|
|
@@ -1806,8 +1775,7 @@ var require_scan = __commonJS({
|
|
|
1806
1775
|
slashes.push(index);
|
|
1807
1776
|
tokens.push(token);
|
|
1808
1777
|
token = { value: "", depth: 0, isGlob: false };
|
|
1809
|
-
if (finished === true)
|
|
1810
|
-
continue;
|
|
1778
|
+
if (finished === true) continue;
|
|
1811
1779
|
if (prev === CHAR_DOT && index === start + 1) {
|
|
1812
1780
|
start += 2;
|
|
1813
1781
|
continue;
|
|
@@ -1843,8 +1811,7 @@ var require_scan = __commonJS({
|
|
|
1843
1811
|
}
|
|
1844
1812
|
}
|
|
1845
1813
|
if (code === CHAR_ASTERISK) {
|
|
1846
|
-
if (prev === CHAR_ASTERISK)
|
|
1847
|
-
isGlobstar = token.isGlobstar = true;
|
|
1814
|
+
if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
|
|
1848
1815
|
isGlob = token.isGlob = true;
|
|
1849
1816
|
finished = true;
|
|
1850
1817
|
if (scanToEnd === true) {
|
|
@@ -1937,8 +1904,7 @@ var require_scan = __commonJS({
|
|
|
1937
1904
|
}
|
|
1938
1905
|
}
|
|
1939
1906
|
if (opts.unescape === true) {
|
|
1940
|
-
if (glob)
|
|
1941
|
-
glob = utils.removeBackslashes(glob);
|
|
1907
|
+
if (glob) glob = utils.removeBackslashes(glob);
|
|
1942
1908
|
if (base && backslashes === true) {
|
|
1943
1909
|
base = utils.removeBackslashes(base);
|
|
1944
1910
|
}
|
|
@@ -2148,8 +2114,7 @@ var require_parse2 = __commonJS({
|
|
|
2148
2114
|
if (extglobs.length && tok.type !== "paren") {
|
|
2149
2115
|
extglobs[extglobs.length - 1].inner += tok.value;
|
|
2150
2116
|
}
|
|
2151
|
-
if (tok.value || tok.output)
|
|
2152
|
-
append(tok);
|
|
2117
|
+
if (tok.value || tok.output) append(tok);
|
|
2153
2118
|
if (prev && prev.type === "text" && tok.type === "text") {
|
|
2154
2119
|
prev.value += tok.value;
|
|
2155
2120
|
prev.output = (prev.output || "") + tok.value;
|
|
@@ -2464,8 +2429,7 @@ var require_parse2 = __commonJS({
|
|
|
2464
2429
|
}
|
|
2465
2430
|
if (value === ".") {
|
|
2466
2431
|
if (state.braces > 0 && prev.type === "dot") {
|
|
2467
|
-
if (prev.value === ".")
|
|
2468
|
-
prev.output = DOT_LITERAL;
|
|
2432
|
+
if (prev.value === ".") prev.output = DOT_LITERAL;
|
|
2469
2433
|
const brace = braces[braces.length - 1];
|
|
2470
2434
|
prev.type = "dots";
|
|
2471
2435
|
prev.output += value;
|
|
@@ -2680,20 +2644,17 @@ var require_parse2 = __commonJS({
|
|
|
2680
2644
|
push(token);
|
|
2681
2645
|
}
|
|
2682
2646
|
while (state.brackets > 0) {
|
|
2683
|
-
if (opts.strictBrackets === true)
|
|
2684
|
-
throw new SyntaxError(syntaxError("closing", "]"));
|
|
2647
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
|
|
2685
2648
|
state.output = utils.escapeLast(state.output, "[");
|
|
2686
2649
|
decrement("brackets");
|
|
2687
2650
|
}
|
|
2688
2651
|
while (state.parens > 0) {
|
|
2689
|
-
if (opts.strictBrackets === true)
|
|
2690
|
-
throw new SyntaxError(syntaxError("closing", ")"));
|
|
2652
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
|
|
2691
2653
|
state.output = utils.escapeLast(state.output, "(");
|
|
2692
2654
|
decrement("parens");
|
|
2693
2655
|
}
|
|
2694
2656
|
while (state.braces > 0) {
|
|
2695
|
-
if (opts.strictBrackets === true)
|
|
2696
|
-
throw new SyntaxError(syntaxError("closing", "}"));
|
|
2657
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
|
|
2697
2658
|
state.output = utils.escapeLast(state.output, "{");
|
|
2698
2659
|
decrement("braces");
|
|
2699
2660
|
}
|
|
@@ -2740,8 +2701,7 @@ var require_parse2 = __commonJS({
|
|
|
2740
2701
|
star = `(${star})`;
|
|
2741
2702
|
}
|
|
2742
2703
|
const globstar = (opts2) => {
|
|
2743
|
-
if (opts2.noglobstar === true)
|
|
2744
|
-
return star;
|
|
2704
|
+
if (opts2.noglobstar === true) return star;
|
|
2745
2705
|
return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2746
2706
|
};
|
|
2747
2707
|
const create = (str) => {
|
|
@@ -2764,11 +2724,9 @@ var require_parse2 = __commonJS({
|
|
|
2764
2724
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2765
2725
|
default: {
|
|
2766
2726
|
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
2767
|
-
if (!match)
|
|
2768
|
-
return;
|
|
2727
|
+
if (!match) return;
|
|
2769
2728
|
const source2 = create(match[1]);
|
|
2770
|
-
if (!source2)
|
|
2771
|
-
return;
|
|
2729
|
+
if (!source2) return;
|
|
2772
2730
|
return source2 + DOT_LITERAL + match[2];
|
|
2773
2731
|
}
|
|
2774
2732
|
}
|
|
@@ -2800,8 +2758,7 @@ var require_picomatch = __commonJS({
|
|
|
2800
2758
|
const arrayMatcher = (str) => {
|
|
2801
2759
|
for (const isMatch of fns) {
|
|
2802
2760
|
const state2 = isMatch(str);
|
|
2803
|
-
if (state2)
|
|
2804
|
-
return state2;
|
|
2761
|
+
if (state2) return state2;
|
|
2805
2762
|
}
|
|
2806
2763
|
return false;
|
|
2807
2764
|
};
|
|
@@ -2878,8 +2835,7 @@ var require_picomatch = __commonJS({
|
|
|
2878
2835
|
};
|
|
2879
2836
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
2880
2837
|
picomatch.parse = (pattern, options) => {
|
|
2881
|
-
if (Array.isArray(pattern))
|
|
2882
|
-
return pattern.map((p) => picomatch.parse(p, options));
|
|
2838
|
+
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
|
|
2883
2839
|
return parse(pattern, { ...options, fastpaths: false });
|
|
2884
2840
|
};
|
|
2885
2841
|
picomatch.scan = (input, options) => scan(input, options);
|
|
@@ -2918,8 +2874,7 @@ var require_picomatch = __commonJS({
|
|
|
2918
2874
|
const opts = options || {};
|
|
2919
2875
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
2920
2876
|
} catch (err) {
|
|
2921
|
-
if (options && options.debug === true)
|
|
2922
|
-
throw err;
|
|
2877
|
+
if (options && options.debug === true) throw err;
|
|
2923
2878
|
return /$^/;
|
|
2924
2879
|
}
|
|
2925
2880
|
};
|
|
@@ -2961,13 +2916,11 @@ var require_micromatch = __commonJS({
|
|
|
2961
2916
|
for (let i = 0; i < patterns.length; i++) {
|
|
2962
2917
|
let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
|
|
2963
2918
|
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
2964
|
-
if (negated)
|
|
2965
|
-
negatives++;
|
|
2919
|
+
if (negated) negatives++;
|
|
2966
2920
|
for (let item of list) {
|
|
2967
2921
|
let matched = isMatch(item, true);
|
|
2968
2922
|
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
2969
|
-
if (!match)
|
|
2970
|
-
continue;
|
|
2923
|
+
if (!match) continue;
|
|
2971
2924
|
if (negated) {
|
|
2972
2925
|
omit.add(matched.output);
|
|
2973
2926
|
} else {
|
|
@@ -2997,8 +2950,7 @@ var require_micromatch = __commonJS({
|
|
|
2997
2950
|
let result = /* @__PURE__ */ new Set();
|
|
2998
2951
|
let items = [];
|
|
2999
2952
|
let onResult = (state) => {
|
|
3000
|
-
if (options.onResult)
|
|
3001
|
-
options.onResult(state);
|
|
2953
|
+
if (options.onResult) options.onResult(state);
|
|
3002
2954
|
items.push(state.output);
|
|
3003
2955
|
};
|
|
3004
2956
|
let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
|
|
@@ -3032,8 +2984,7 @@ var require_micromatch = __commonJS({
|
|
|
3032
2984
|
}
|
|
3033
2985
|
let keys = micromatch(Object.keys(obj), patterns, options);
|
|
3034
2986
|
let res = {};
|
|
3035
|
-
for (let key of keys)
|
|
3036
|
-
res[key] = obj[key];
|
|
2987
|
+
for (let key of keys) res[key] = obj[key];
|
|
3037
2988
|
return res;
|
|
3038
2989
|
};
|
|
3039
2990
|
micromatch.some = (list, patterns, options) => {
|
|
@@ -3082,16 +3033,14 @@ var require_micromatch = __commonJS({
|
|
|
3082
3033
|
return res;
|
|
3083
3034
|
};
|
|
3084
3035
|
micromatch.braces = (pattern, options) => {
|
|
3085
|
-
if (typeof pattern !== "string")
|
|
3086
|
-
throw new TypeError("Expected a string");
|
|
3036
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3087
3037
|
if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) {
|
|
3088
3038
|
return [pattern];
|
|
3089
3039
|
}
|
|
3090
3040
|
return braces(pattern, options);
|
|
3091
3041
|
};
|
|
3092
3042
|
micromatch.braceExpand = (pattern, options) => {
|
|
3093
|
-
if (typeof pattern !== "string")
|
|
3094
|
-
throw new TypeError("Expected a string");
|
|
3043
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3095
3044
|
return micromatch.braces(pattern, { ...options, expand: true });
|
|
3096
3045
|
};
|
|
3097
3046
|
module.exports = micromatch;
|
|
@@ -3699,14 +3648,11 @@ var require_run_parallel = __commonJS({
|
|
|
3699
3648
|
}
|
|
3700
3649
|
function done(err) {
|
|
3701
3650
|
function end() {
|
|
3702
|
-
if (cb)
|
|
3703
|
-
cb(err, results);
|
|
3651
|
+
if (cb) cb(err, results);
|
|
3704
3652
|
cb = null;
|
|
3705
3653
|
}
|
|
3706
|
-
if (isSync)
|
|
3707
|
-
|
|
3708
|
-
else
|
|
3709
|
-
end();
|
|
3654
|
+
if (isSync) queueMicrotask2(end);
|
|
3655
|
+
else end();
|
|
3710
3656
|
}
|
|
3711
3657
|
function each(i, err, result) {
|
|
3712
3658
|
results[i] = result;
|
|
@@ -4156,8 +4102,7 @@ var require_queue = __commonJS({
|
|
|
4156
4102
|
return tasks;
|
|
4157
4103
|
}
|
|
4158
4104
|
function resume() {
|
|
4159
|
-
if (!self.paused)
|
|
4160
|
-
return;
|
|
4105
|
+
if (!self.paused) return;
|
|
4161
4106
|
self.paused = false;
|
|
4162
4107
|
for (var i = 0; i < self.concurrency; i++) {
|
|
4163
4108
|
_running++;
|