@netlify/plugin-nextjs 5.7.1 → 5.7.3
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/content/prerendered.js +3 -2
- package/dist/build/content/server.js +2 -2
- package/dist/build/content/static.js +1 -1
- package/dist/build/functions/edge.js +24 -8
- package/dist/build/functions/server.js +1 -1
- package/dist/build/plugin-context.js +1 -4
- package/dist/build/verification.js +2 -2
- package/dist/esm-chunks/{chunk-EFGWM7RS.js → chunk-APO262HE.js} +28 -4
- package/dist/esm-chunks/{chunk-FHR56UHE.js → chunk-KGYJQ2U2.js} +58 -48
- package/dist/esm-chunks/{package-GZ5FMVI4.js → package-EEQP43EX.js} +12 -12
- package/dist/run/handlers/tracing.js +2152 -671
- package/dist/run/headers.js +2 -2
- package/dist/run/regional-blob-store.cjs +53 -24
- package/edge-runtime/lib/response.ts +9 -12
- package/edge-runtime/middleware.ts +0 -1
- package/package.json +1 -1
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "../../esm-chunks/chunk-GNGHTHMQ.js";
|
|
14
14
|
import {
|
|
15
15
|
require_out
|
|
16
|
-
} from "../../esm-chunks/chunk-
|
|
16
|
+
} from "../../esm-chunks/chunk-KGYJQ2U2.js";
|
|
17
17
|
import {
|
|
18
18
|
require_semver
|
|
19
|
-
} from "../../esm-chunks/chunk-
|
|
19
|
+
} from "../../esm-chunks/chunk-APO262HE.js";
|
|
20
20
|
import {
|
|
21
21
|
__toESM
|
|
22
22
|
} from "../../esm-chunks/chunk-OEQOKJGE.js";
|
|
@@ -210,6 +210,7 @@ var copyPrerenderedContent = async (ctx) => {
|
|
|
210
210
|
const key = routeToFilePath(route);
|
|
211
211
|
let value;
|
|
212
212
|
switch (true) {
|
|
213
|
+
// Parallel route default layout has no prerendered page
|
|
213
214
|
case (meta.dataRoute?.endsWith("/default.rsc") && !existsSync(join(ctx.publishDir, "server/app", `${key}.html`))):
|
|
214
215
|
return;
|
|
215
216
|
case meta.dataRoute?.endsWith(".json"):
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "../../esm-chunks/chunk-GNGHTHMQ.js";
|
|
14
14
|
import {
|
|
15
15
|
require_out
|
|
16
|
-
} from "../../esm-chunks/chunk-
|
|
16
|
+
} from "../../esm-chunks/chunk-KGYJQ2U2.js";
|
|
17
17
|
import {
|
|
18
18
|
require_semver
|
|
19
|
-
} from "../../esm-chunks/chunk-
|
|
19
|
+
} from "../../esm-chunks/chunk-APO262HE.js";
|
|
20
20
|
import {
|
|
21
21
|
__toESM
|
|
22
22
|
} from "../../esm-chunks/chunk-OEQOKJGE.js";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
require_out
|
|
9
|
-
} from "../../esm-chunks/chunk-
|
|
9
|
+
} from "../../esm-chunks/chunk-KGYJQ2U2.js";
|
|
10
10
|
import {
|
|
11
11
|
__commonJS,
|
|
12
12
|
__toESM
|
|
@@ -106,8 +106,7 @@ var require_dist = __commonJS({
|
|
|
106
106
|
options = {};
|
|
107
107
|
}
|
|
108
108
|
var tokens = lexer(str);
|
|
109
|
-
var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a;
|
|
110
|
-
var defaultPattern = "[^".concat(escapeString(options.delimiter || "/#?"), "]+?");
|
|
109
|
+
var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a, _b = options.delimiter, delimiter = _b === void 0 ? "/#?" : _b;
|
|
111
110
|
var result = [];
|
|
112
111
|
var key = 0;
|
|
113
112
|
var i = 0;
|
|
@@ -131,6 +130,24 @@ var require_dist = __commonJS({
|
|
|
131
130
|
}
|
|
132
131
|
return result2;
|
|
133
132
|
};
|
|
133
|
+
var isSafe = function(value2) {
|
|
134
|
+
for (var _i = 0, delimiter_1 = delimiter; _i < delimiter_1.length; _i++) {
|
|
135
|
+
var char2 = delimiter_1[_i];
|
|
136
|
+
if (value2.indexOf(char2) > -1)
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
return false;
|
|
140
|
+
};
|
|
141
|
+
var safePattern = function(prefix2) {
|
|
142
|
+
var prev = result[result.length - 1];
|
|
143
|
+
var prevText = prefix2 || (prev && typeof prev === "string" ? prev : "");
|
|
144
|
+
if (prev && !prevText) {
|
|
145
|
+
throw new TypeError('Must have text between two parameters, missing text after "'.concat(prev.name, '"'));
|
|
146
|
+
}
|
|
147
|
+
if (!prevText || isSafe(prevText))
|
|
148
|
+
return "[^".concat(escapeString(delimiter), "]+?");
|
|
149
|
+
return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter), "])+?");
|
|
150
|
+
};
|
|
134
151
|
while (i < tokens.length) {
|
|
135
152
|
var char = tryConsume("CHAR");
|
|
136
153
|
var name = tryConsume("NAME");
|
|
@@ -149,7 +166,7 @@ var require_dist = __commonJS({
|
|
|
149
166
|
name: name || key++,
|
|
150
167
|
prefix,
|
|
151
168
|
suffix: "",
|
|
152
|
-
pattern: pattern ||
|
|
169
|
+
pattern: pattern || safePattern(prefix),
|
|
153
170
|
modifier: tryConsume("MODIFIER") || ""
|
|
154
171
|
});
|
|
155
172
|
continue;
|
|
@@ -172,7 +189,7 @@ var require_dist = __commonJS({
|
|
|
172
189
|
mustConsume("CLOSE");
|
|
173
190
|
result.push({
|
|
174
191
|
name: name_1 || (pattern_1 ? key++ : ""),
|
|
175
|
-
pattern: name_1 && !pattern_1 ?
|
|
192
|
+
pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,
|
|
176
193
|
prefix,
|
|
177
194
|
suffix,
|
|
178
195
|
modifier: tryConsume("MODIFIER") || ""
|
|
@@ -348,10 +365,9 @@ var require_dist = __commonJS({
|
|
|
348
365
|
}
|
|
349
366
|
} else {
|
|
350
367
|
if (token.modifier === "+" || token.modifier === "*") {
|
|
351
|
-
|
|
352
|
-
} else {
|
|
353
|
-
route += "(".concat(token.pattern, ")").concat(token.modifier);
|
|
368
|
+
throw new TypeError('Can not repeat "'.concat(token.name, '" without a prefix and suffix'));
|
|
354
369
|
}
|
|
370
|
+
route += "(".concat(token.pattern, ")").concat(token.modifier);
|
|
355
371
|
}
|
|
356
372
|
} else {
|
|
357
373
|
route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
require_semver
|
|
9
|
-
} from "../esm-chunks/chunk-
|
|
9
|
+
} from "../esm-chunks/chunk-APO262HE.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM
|
|
12
12
|
} from "../esm-chunks/chunk-OEQOKJGE.js";
|
|
@@ -110,9 +110,6 @@ var PluginContext = class {
|
|
|
110
110
|
return this.constants.NETLIFY_BUILD_VERSION || "v0.0.0";
|
|
111
111
|
}
|
|
112
112
|
get useRegionalBlobs() {
|
|
113
|
-
if (!(this.featureFlags || {})["next-runtime-regional-blobs"]) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
113
|
const REQUIRED_BUILD_VERSION = ">=29.41.5";
|
|
117
114
|
return (0, import_semver.satisfies)(this.buildVersion, REQUIRED_BUILD_VERSION, { includePrerelease: true });
|
|
118
115
|
}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
require_out
|
|
9
|
-
} from "../esm-chunks/chunk-
|
|
9
|
+
} from "../esm-chunks/chunk-KGYJQ2U2.js";
|
|
10
10
|
import {
|
|
11
11
|
require_semver
|
|
12
|
-
} from "../esm-chunks/chunk-
|
|
12
|
+
} from "../esm-chunks/chunk-APO262HE.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM
|
|
15
15
|
} from "../esm-chunks/chunk-OEQOKJGE.js";
|
|
@@ -336,6 +336,8 @@ var require_semver = __commonJS({
|
|
|
336
336
|
this.inc("patch", identifier, identifierBase);
|
|
337
337
|
this.inc("pre", identifier, identifierBase);
|
|
338
338
|
break;
|
|
339
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
340
|
+
// prepatch.
|
|
339
341
|
case "prerelease":
|
|
340
342
|
if (this.prerelease.length === 0) {
|
|
341
343
|
this.inc("patch", identifier, identifierBase);
|
|
@@ -363,6 +365,8 @@ var require_semver = __commonJS({
|
|
|
363
365
|
}
|
|
364
366
|
this.prerelease = [];
|
|
365
367
|
break;
|
|
368
|
+
// This probably shouldn't be used publicly.
|
|
369
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
366
370
|
case "pre": {
|
|
367
371
|
const base = Number(identifierBase) ? 1 : 0;
|
|
368
372
|
if (!identifier && identifierBase === false) {
|
|
@@ -811,6 +815,7 @@ var require_lrucache = __commonJS({
|
|
|
811
815
|
// node_modules/semver/classes/range.js
|
|
812
816
|
var require_range = __commonJS({
|
|
813
817
|
"node_modules/semver/classes/range.js"(exports, module) {
|
|
818
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
814
819
|
var Range = class _Range {
|
|
815
820
|
constructor(range, options) {
|
|
816
821
|
options = parseOptions(options);
|
|
@@ -824,13 +829,13 @@ var require_range = __commonJS({
|
|
|
824
829
|
if (range instanceof Comparator) {
|
|
825
830
|
this.raw = range.value;
|
|
826
831
|
this.set = [[range]];
|
|
827
|
-
this.
|
|
832
|
+
this.formatted = void 0;
|
|
828
833
|
return this;
|
|
829
834
|
}
|
|
830
835
|
this.options = options;
|
|
831
836
|
this.loose = !!options.loose;
|
|
832
837
|
this.includePrerelease = !!options.includePrerelease;
|
|
833
|
-
this.raw = range.trim().
|
|
838
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
834
839
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
835
840
|
if (!this.set.length) {
|
|
836
841
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
@@ -849,10 +854,27 @@ var require_range = __commonJS({
|
|
|
849
854
|
}
|
|
850
855
|
}
|
|
851
856
|
}
|
|
852
|
-
this.
|
|
857
|
+
this.formatted = void 0;
|
|
858
|
+
}
|
|
859
|
+
get range() {
|
|
860
|
+
if (this.formatted === void 0) {
|
|
861
|
+
this.formatted = "";
|
|
862
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
863
|
+
if (i > 0) {
|
|
864
|
+
this.formatted += "||";
|
|
865
|
+
}
|
|
866
|
+
const comps = this.set[i];
|
|
867
|
+
for (let k = 0; k < comps.length; k++) {
|
|
868
|
+
if (k > 0) {
|
|
869
|
+
this.formatted += " ";
|
|
870
|
+
}
|
|
871
|
+
this.formatted += comps[k].toString().trim();
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
return this.formatted;
|
|
853
876
|
}
|
|
854
877
|
format() {
|
|
855
|
-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
856
878
|
return this.range;
|
|
857
879
|
}
|
|
858
880
|
toString() {
|
|
@@ -1388,6 +1410,7 @@ var require_min_version = __commonJS({
|
|
|
1388
1410
|
compver.prerelease.push(0);
|
|
1389
1411
|
}
|
|
1390
1412
|
compver.raw = compver.format();
|
|
1413
|
+
/* fallthrough */
|
|
1391
1414
|
case "":
|
|
1392
1415
|
case ">=":
|
|
1393
1416
|
if (!setMin || gt(compver, setMin)) {
|
|
@@ -1397,6 +1420,7 @@ var require_min_version = __commonJS({
|
|
|
1397
1420
|
case "<":
|
|
1398
1421
|
case "<=":
|
|
1399
1422
|
break;
|
|
1423
|
+
/* istanbul ignore next */
|
|
1400
1424
|
default:
|
|
1401
1425
|
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1402
1426
|
}
|
|
@@ -324,7 +324,7 @@ var require_utils = __commonJS({
|
|
|
324
324
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
325
325
|
};
|
|
326
326
|
exports.escapeNode = (block, n = 0, type) => {
|
|
327
|
-
|
|
327
|
+
const node = block.nodes[n];
|
|
328
328
|
if (!node) return;
|
|
329
329
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
330
330
|
if (node.escaped !== true) {
|
|
@@ -369,8 +369,14 @@ var require_utils = __commonJS({
|
|
|
369
369
|
const result = [];
|
|
370
370
|
const flat = (arr) => {
|
|
371
371
|
for (let i = 0; i < arr.length; i++) {
|
|
372
|
-
|
|
373
|
-
Array.isArray(ele)
|
|
372
|
+
const ele = arr[i];
|
|
373
|
+
if (Array.isArray(ele)) {
|
|
374
|
+
flat(ele);
|
|
375
|
+
continue;
|
|
376
|
+
}
|
|
377
|
+
if (ele !== void 0) {
|
|
378
|
+
result.push(ele);
|
|
379
|
+
}
|
|
374
380
|
}
|
|
375
381
|
return result;
|
|
376
382
|
};
|
|
@@ -386,9 +392,9 @@ var require_stringify = __commonJS({
|
|
|
386
392
|
"use strict";
|
|
387
393
|
var utils = require_utils();
|
|
388
394
|
module.exports = (ast, options = {}) => {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
395
|
+
const stringify = (node, parent = {}) => {
|
|
396
|
+
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
397
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
392
398
|
let output = "";
|
|
393
399
|
if (node.value) {
|
|
394
400
|
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
|
|
@@ -400,7 +406,7 @@ var require_stringify = __commonJS({
|
|
|
400
406
|
return node.value;
|
|
401
407
|
}
|
|
402
408
|
if (node.nodes) {
|
|
403
|
-
for (
|
|
409
|
+
for (const child of node.nodes) {
|
|
404
410
|
output += stringify(child);
|
|
405
411
|
}
|
|
406
412
|
}
|
|
@@ -686,7 +692,7 @@ var require_fill_range = __commonJS({
|
|
|
686
692
|
while (input.length < maxLength) input = "0" + input;
|
|
687
693
|
return negative ? "-" + input : input;
|
|
688
694
|
};
|
|
689
|
-
var toSequence = (parts, options) => {
|
|
695
|
+
var toSequence = (parts, options, maxLen) => {
|
|
690
696
|
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
691
697
|
parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
692
698
|
let prefix = options.capture ? "" : "?:";
|
|
@@ -694,10 +700,10 @@ var require_fill_range = __commonJS({
|
|
|
694
700
|
let negatives = "";
|
|
695
701
|
let result;
|
|
696
702
|
if (parts.positives.length) {
|
|
697
|
-
positives = parts.positives.join("|");
|
|
703
|
+
positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|");
|
|
698
704
|
}
|
|
699
705
|
if (parts.negatives.length) {
|
|
700
|
-
negatives = `-(${prefix}${parts.negatives.join("|")})`;
|
|
706
|
+
negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`;
|
|
701
707
|
}
|
|
702
708
|
if (positives && negatives) {
|
|
703
709
|
result = `${positives}|${negatives}`;
|
|
@@ -774,7 +780,7 @@ var require_fill_range = __commonJS({
|
|
|
774
780
|
index++;
|
|
775
781
|
}
|
|
776
782
|
if (options.toRegex === true) {
|
|
777
|
-
return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options });
|
|
783
|
+
return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: false, ...options });
|
|
778
784
|
}
|
|
779
785
|
return range;
|
|
780
786
|
};
|
|
@@ -839,16 +845,17 @@ var require_compile = __commonJS({
|
|
|
839
845
|
var fill = require_fill_range();
|
|
840
846
|
var utils = require_utils();
|
|
841
847
|
var compile = (ast, options = {}) => {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
848
|
+
const walk = (node, parent = {}) => {
|
|
849
|
+
const invalidBlock = utils.isInvalidBrace(parent);
|
|
850
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
851
|
+
const invalid = invalidBlock === true || invalidNode === true;
|
|
852
|
+
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
847
853
|
let output = "";
|
|
848
854
|
if (node.isOpen === true) {
|
|
849
855
|
return prefix + node.value;
|
|
850
856
|
}
|
|
851
857
|
if (node.isClose === true) {
|
|
858
|
+
console.log("node.isClose", prefix, node.value);
|
|
852
859
|
return prefix + node.value;
|
|
853
860
|
}
|
|
854
861
|
if (node.type === "open") {
|
|
@@ -864,14 +871,14 @@ var require_compile = __commonJS({
|
|
|
864
871
|
return node.value;
|
|
865
872
|
}
|
|
866
873
|
if (node.nodes && node.ranges > 0) {
|
|
867
|
-
|
|
868
|
-
|
|
874
|
+
const args = utils.reduce(node.nodes);
|
|
875
|
+
const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
|
|
869
876
|
if (range.length !== 0) {
|
|
870
877
|
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
871
878
|
}
|
|
872
879
|
}
|
|
873
880
|
if (node.nodes) {
|
|
874
|
-
for (
|
|
881
|
+
for (const child of node.nodes) {
|
|
875
882
|
output += walk(child, node);
|
|
876
883
|
}
|
|
877
884
|
}
|
|
@@ -891,16 +898,16 @@ var require_expand = __commonJS({
|
|
|
891
898
|
var stringify = require_stringify();
|
|
892
899
|
var utils = require_utils();
|
|
893
900
|
var append = (queue = "", stash = "", enclose = false) => {
|
|
894
|
-
|
|
901
|
+
const result = [];
|
|
895
902
|
queue = [].concat(queue);
|
|
896
903
|
stash = [].concat(stash);
|
|
897
904
|
if (!stash.length) return queue;
|
|
898
905
|
if (!queue.length) {
|
|
899
906
|
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
900
907
|
}
|
|
901
|
-
for (
|
|
908
|
+
for (const item of queue) {
|
|
902
909
|
if (Array.isArray(item)) {
|
|
903
|
-
for (
|
|
910
|
+
for (const value of item) {
|
|
904
911
|
result.push(append(value, stash, enclose));
|
|
905
912
|
}
|
|
906
913
|
} else {
|
|
@@ -913,8 +920,8 @@ var require_expand = __commonJS({
|
|
|
913
920
|
return utils.flatten(result);
|
|
914
921
|
};
|
|
915
922
|
var expand = (ast, options = {}) => {
|
|
916
|
-
|
|
917
|
-
|
|
923
|
+
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
924
|
+
const walk = (node, parent = {}) => {
|
|
918
925
|
node.queue = [];
|
|
919
926
|
let p = parent;
|
|
920
927
|
let q = parent.queue;
|
|
@@ -931,7 +938,7 @@ var require_expand = __commonJS({
|
|
|
931
938
|
return;
|
|
932
939
|
}
|
|
933
940
|
if (node.nodes && node.ranges > 0) {
|
|
934
|
-
|
|
941
|
+
const args = utils.reduce(node.nodes);
|
|
935
942
|
if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
|
|
936
943
|
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
937
944
|
}
|
|
@@ -943,7 +950,7 @@ var require_expand = __commonJS({
|
|
|
943
950
|
node.nodes = [];
|
|
944
951
|
return;
|
|
945
952
|
}
|
|
946
|
-
|
|
953
|
+
const enclose = utils.encloseBrace(node);
|
|
947
954
|
let queue = node.queue;
|
|
948
955
|
let block = node;
|
|
949
956
|
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
@@ -951,7 +958,7 @@ var require_expand = __commonJS({
|
|
|
951
958
|
queue = block.queue;
|
|
952
959
|
}
|
|
953
960
|
for (let i = 0; i < node.nodes.length; i++) {
|
|
954
|
-
|
|
961
|
+
const child = node.nodes[i];
|
|
955
962
|
if (child.type === "comma" && node.type === "brace") {
|
|
956
963
|
if (i === 1) queue.push("");
|
|
957
964
|
queue.push("");
|
|
@@ -982,7 +989,7 @@ var require_constants = __commonJS({
|
|
|
982
989
|
"node_modules/braces/lib/constants.js"(exports, module) {
|
|
983
990
|
"use strict";
|
|
984
991
|
module.exports = {
|
|
985
|
-
MAX_LENGTH:
|
|
992
|
+
MAX_LENGTH: 1e4,
|
|
986
993
|
// Digits
|
|
987
994
|
CHAR_0: "0",
|
|
988
995
|
/* 0 */
|
|
@@ -1116,21 +1123,20 @@ var require_parse = __commonJS({
|
|
|
1116
1123
|
if (typeof input !== "string") {
|
|
1117
1124
|
throw new TypeError("Expected a string");
|
|
1118
1125
|
}
|
|
1119
|
-
|
|
1120
|
-
|
|
1126
|
+
const opts = options || {};
|
|
1127
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
1121
1128
|
if (input.length > max) {
|
|
1122
1129
|
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
1123
1130
|
}
|
|
1124
|
-
|
|
1125
|
-
|
|
1131
|
+
const ast = { type: "root", input, nodes: [] };
|
|
1132
|
+
const stack = [ast];
|
|
1126
1133
|
let block = ast;
|
|
1127
1134
|
let prev = ast;
|
|
1128
1135
|
let brackets = 0;
|
|
1129
|
-
|
|
1136
|
+
const length = input.length;
|
|
1130
1137
|
let index = 0;
|
|
1131
1138
|
let depth = 0;
|
|
1132
1139
|
let value;
|
|
1133
|
-
let memo = {};
|
|
1134
1140
|
const advance = () => input[index++];
|
|
1135
1141
|
const push = (node) => {
|
|
1136
1142
|
if (node.type === "text" && prev.type === "dot") {
|
|
@@ -1163,7 +1169,6 @@ var require_parse = __commonJS({
|
|
|
1163
1169
|
}
|
|
1164
1170
|
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
1165
1171
|
brackets++;
|
|
1166
|
-
let closed = true;
|
|
1167
1172
|
let next;
|
|
1168
1173
|
while (index < length && (next = advance())) {
|
|
1169
1174
|
value += next;
|
|
@@ -1202,7 +1207,7 @@ var require_parse = __commonJS({
|
|
|
1202
1207
|
continue;
|
|
1203
1208
|
}
|
|
1204
1209
|
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
1205
|
-
|
|
1210
|
+
const open = value;
|
|
1206
1211
|
let next;
|
|
1207
1212
|
if (options.keepQuotes !== true) {
|
|
1208
1213
|
value = "";
|
|
@@ -1223,8 +1228,8 @@ var require_parse = __commonJS({
|
|
|
1223
1228
|
}
|
|
1224
1229
|
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
1225
1230
|
depth++;
|
|
1226
|
-
|
|
1227
|
-
|
|
1231
|
+
const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
|
|
1232
|
+
const brace = {
|
|
1228
1233
|
type: "brace",
|
|
1229
1234
|
open: true,
|
|
1230
1235
|
close: false,
|
|
@@ -1244,7 +1249,7 @@ var require_parse = __commonJS({
|
|
|
1244
1249
|
push({ type: "text", value });
|
|
1245
1250
|
continue;
|
|
1246
1251
|
}
|
|
1247
|
-
|
|
1252
|
+
const type = "close";
|
|
1248
1253
|
block = stack.pop();
|
|
1249
1254
|
block.close = true;
|
|
1250
1255
|
push({ type, value });
|
|
@@ -1255,7 +1260,7 @@ var require_parse = __commonJS({
|
|
|
1255
1260
|
if (value === CHAR_COMMA && depth > 0) {
|
|
1256
1261
|
if (block.ranges > 0) {
|
|
1257
1262
|
block.ranges = 0;
|
|
1258
|
-
|
|
1263
|
+
const open = block.nodes.shift();
|
|
1259
1264
|
block.nodes = [open, { type: "text", value: stringify(block) }];
|
|
1260
1265
|
}
|
|
1261
1266
|
push({ type: "comma", value });
|
|
@@ -1263,7 +1268,7 @@ var require_parse = __commonJS({
|
|
|
1263
1268
|
continue;
|
|
1264
1269
|
}
|
|
1265
1270
|
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
1266
|
-
|
|
1271
|
+
const siblings = block.nodes;
|
|
1267
1272
|
if (depth === 0 || siblings.length === 0) {
|
|
1268
1273
|
push({ type: "text", value });
|
|
1269
1274
|
continue;
|
|
@@ -1284,7 +1289,7 @@ var require_parse = __commonJS({
|
|
|
1284
1289
|
}
|
|
1285
1290
|
if (prev.type === "range") {
|
|
1286
1291
|
siblings.pop();
|
|
1287
|
-
|
|
1292
|
+
const before = siblings[siblings.length - 1];
|
|
1288
1293
|
before.value += prev.value + value;
|
|
1289
1294
|
prev = before;
|
|
1290
1295
|
block.ranges--;
|
|
@@ -1306,8 +1311,8 @@ var require_parse = __commonJS({
|
|
|
1306
1311
|
node.invalid = true;
|
|
1307
1312
|
}
|
|
1308
1313
|
});
|
|
1309
|
-
|
|
1310
|
-
|
|
1314
|
+
const parent = stack[stack.length - 1];
|
|
1315
|
+
const index2 = parent.nodes.indexOf(block);
|
|
1311
1316
|
parent.nodes.splice(index2, 1, ...block.nodes);
|
|
1312
1317
|
}
|
|
1313
1318
|
} while (stack.length > 0);
|
|
@@ -1329,8 +1334,8 @@ var require_braces = __commonJS({
|
|
|
1329
1334
|
var braces = (input, options = {}) => {
|
|
1330
1335
|
let output = [];
|
|
1331
1336
|
if (Array.isArray(input)) {
|
|
1332
|
-
for (
|
|
1333
|
-
|
|
1337
|
+
for (const pattern of input) {
|
|
1338
|
+
const result = braces.create(pattern, options);
|
|
1334
1339
|
if (Array.isArray(result)) {
|
|
1335
1340
|
output.push(...result);
|
|
1336
1341
|
} else {
|
|
@@ -2899,7 +2904,11 @@ var require_micromatch = __commonJS({
|
|
|
2899
2904
|
var braces = require_braces();
|
|
2900
2905
|
var picomatch = require_picomatch2();
|
|
2901
2906
|
var utils = require_utils2();
|
|
2902
|
-
var isEmptyString = (
|
|
2907
|
+
var isEmptyString = (v) => v === "" || v === "./";
|
|
2908
|
+
var hasBraces = (v) => {
|
|
2909
|
+
const index = v.indexOf("{");
|
|
2910
|
+
return index > -1 && v.indexOf("}", index) > -1;
|
|
2911
|
+
};
|
|
2903
2912
|
var micromatch = (list, patterns, options) => {
|
|
2904
2913
|
patterns = [].concat(patterns);
|
|
2905
2914
|
list = [].concat(list);
|
|
@@ -3034,7 +3043,7 @@ var require_micromatch = __commonJS({
|
|
|
3034
3043
|
};
|
|
3035
3044
|
micromatch.braces = (pattern, options) => {
|
|
3036
3045
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3037
|
-
if (options && options.nobrace === true ||
|
|
3046
|
+
if (options && options.nobrace === true || !hasBraces(pattern)) {
|
|
3038
3047
|
return [pattern];
|
|
3039
3048
|
}
|
|
3040
3049
|
return braces(pattern, options);
|
|
@@ -3043,6 +3052,7 @@ var require_micromatch = __commonJS({
|
|
|
3043
3052
|
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3044
3053
|
return micromatch.braces(pattern, { ...options, expand: true });
|
|
3045
3054
|
};
|
|
3055
|
+
micromatch.hasBraces = hasBraces;
|
|
3046
3056
|
module.exports = micromatch;
|
|
3047
3057
|
}
|
|
3048
3058
|
});
|
|
@@ -8,7 +8,7 @@ import "./chunk-OEQOKJGE.js";
|
|
|
8
8
|
|
|
9
9
|
// package.json
|
|
10
10
|
var name = "@netlify/plugin-nextjs";
|
|
11
|
-
var version = "5.7.
|
|
11
|
+
var version = "5.7.3";
|
|
12
12
|
var description = "Run Next.js seamlessly on Netlify";
|
|
13
13
|
var main = "./dist/index.js";
|
|
14
14
|
var type = "module";
|
|
@@ -57,14 +57,14 @@ var bugs = {
|
|
|
57
57
|
var homepage = "https://github.com/netlify/next-runtime#readme";
|
|
58
58
|
var devDependencies = {
|
|
59
59
|
"@fastly/http-compute-js": "1.1.4",
|
|
60
|
-
"@netlify/blobs": "^
|
|
61
|
-
"@netlify/build": "^29.
|
|
62
|
-
"@netlify/edge-bundler": "^12.
|
|
63
|
-
"@netlify/edge-functions": "^2.
|
|
60
|
+
"@netlify/blobs": "^8.0.1",
|
|
61
|
+
"@netlify/build": "^29.54.8",
|
|
62
|
+
"@netlify/edge-bundler": "^12.2.3",
|
|
63
|
+
"@netlify/edge-functions": "^2.11.0",
|
|
64
64
|
"@netlify/eslint-config-node": "^7.0.1",
|
|
65
|
-
"@netlify/functions": "^2.8.
|
|
66
|
-
"@netlify/serverless-functions-api": "^1.
|
|
67
|
-
"@netlify/zip-it-and-ship-it": "^9.
|
|
65
|
+
"@netlify/functions": "^2.8.2",
|
|
66
|
+
"@netlify/serverless-functions-api": "^1.29.0",
|
|
67
|
+
"@netlify/zip-it-and-ship-it": "^9.39.6",
|
|
68
68
|
"@opentelemetry/api": "^1.8.0",
|
|
69
69
|
"@opentelemetry/exporter-trace-otlp-http": "^0.51.0",
|
|
70
70
|
"@opentelemetry/resources": "^1.24.0",
|
|
@@ -73,12 +73,12 @@ var devDependencies = {
|
|
|
73
73
|
"@opentelemetry/semantic-conventions": "^1.24.0",
|
|
74
74
|
"@playwright/test": "^1.43.1",
|
|
75
75
|
"@types/node": "^20.12.7",
|
|
76
|
-
"@types/picomatch": "^
|
|
77
|
-
"@types/uuid": "^
|
|
76
|
+
"@types/picomatch": "^3.0.0",
|
|
77
|
+
"@types/uuid": "^10.0.0",
|
|
78
78
|
"@vercel/nft": "^0.27.0",
|
|
79
79
|
cheerio: "^1.0.0-rc.12",
|
|
80
80
|
"clean-package": "^2.2.0",
|
|
81
|
-
esbuild: "^0.
|
|
81
|
+
esbuild: "^0.24.0",
|
|
82
82
|
execa: "^8.0.1",
|
|
83
83
|
"fast-glob": "^3.3.2",
|
|
84
84
|
"fs-monkey": "^1.0.6",
|
|
@@ -97,7 +97,7 @@ var devDependencies = {
|
|
|
97
97
|
semver: "^7.6.0",
|
|
98
98
|
typescript: "^5.4.5",
|
|
99
99
|
unionfs: "^4.5.4",
|
|
100
|
-
uuid: "^
|
|
100
|
+
uuid: "^10.0.0",
|
|
101
101
|
vitest: "^1.5.3"
|
|
102
102
|
};
|
|
103
103
|
var clean_package = {
|