vercel 39.4.1 → 39.4.2
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/index.js +439 -18
- package/package.json +9 -9
package/dist/index.js
CHANGED
@@ -46156,7 +46156,7 @@ var require_package = __commonJS2({
|
|
46156
46156
|
"../client/package.json"(exports2, module2) {
|
46157
46157
|
module2.exports = {
|
46158
46158
|
name: "@vercel/client",
|
46159
|
-
version: "13.5.
|
46159
|
+
version: "13.5.6",
|
46160
46160
|
main: "dist/index.js",
|
46161
46161
|
typings: "dist/index.d.ts",
|
46162
46162
|
homepage: "https://vercel.com",
|
@@ -46197,7 +46197,7 @@ var require_package = __commonJS2({
|
|
46197
46197
|
dependencies: {
|
46198
46198
|
"@vercel/build-utils": "9.1.0",
|
46199
46199
|
"@vercel/error-utils": "2.0.3",
|
46200
|
-
"@vercel/routing-utils": "5.0.
|
46200
|
+
"@vercel/routing-utils": "5.0.1",
|
46201
46201
|
"async-retry": "1.2.3",
|
46202
46202
|
"async-sema": "3.0.0",
|
46203
46203
|
"fs-extra": "8.0.1",
|
@@ -109973,6 +109973,396 @@ var require_dist21 = __commonJS2({
|
|
109973
109973
|
}
|
109974
109974
|
});
|
109975
109975
|
|
109976
|
+
// ../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js
|
109977
|
+
var require_dist22 = __commonJS2({
|
109978
|
+
"../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports2) {
|
109979
|
+
"use strict";
|
109980
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
109981
|
+
exports2.pathToRegexp = exports2.tokensToRegexp = exports2.regexpToFunction = exports2.match = exports2.tokensToFunction = exports2.compile = exports2.parse = void 0;
|
109982
|
+
function lexer(str) {
|
109983
|
+
var tokens = [];
|
109984
|
+
var i = 0;
|
109985
|
+
while (i < str.length) {
|
109986
|
+
var char = str[i];
|
109987
|
+
if (char === "*" || char === "+" || char === "?") {
|
109988
|
+
tokens.push({ type: "MODIFIER", index: i, value: str[i++] });
|
109989
|
+
continue;
|
109990
|
+
}
|
109991
|
+
if (char === "\\") {
|
109992
|
+
tokens.push({ type: "ESCAPED_CHAR", index: i++, value: str[i++] });
|
109993
|
+
continue;
|
109994
|
+
}
|
109995
|
+
if (char === "{") {
|
109996
|
+
tokens.push({ type: "OPEN", index: i, value: str[i++] });
|
109997
|
+
continue;
|
109998
|
+
}
|
109999
|
+
if (char === "}") {
|
110000
|
+
tokens.push({ type: "CLOSE", index: i, value: str[i++] });
|
110001
|
+
continue;
|
110002
|
+
}
|
110003
|
+
if (char === ":") {
|
110004
|
+
var name = "";
|
110005
|
+
var j = i + 1;
|
110006
|
+
while (j < str.length) {
|
110007
|
+
var code2 = str.charCodeAt(j);
|
110008
|
+
if (
|
110009
|
+
// `0-9`
|
110010
|
+
code2 >= 48 && code2 <= 57 || // `A-Z`
|
110011
|
+
code2 >= 65 && code2 <= 90 || // `a-z`
|
110012
|
+
code2 >= 97 && code2 <= 122 || // `_`
|
110013
|
+
code2 === 95
|
110014
|
+
) {
|
110015
|
+
name += str[j++];
|
110016
|
+
continue;
|
110017
|
+
}
|
110018
|
+
break;
|
110019
|
+
}
|
110020
|
+
if (!name)
|
110021
|
+
throw new TypeError("Missing parameter name at ".concat(i));
|
110022
|
+
tokens.push({ type: "NAME", index: i, value: name });
|
110023
|
+
i = j;
|
110024
|
+
continue;
|
110025
|
+
}
|
110026
|
+
if (char === "(") {
|
110027
|
+
var count = 1;
|
110028
|
+
var pattern = "";
|
110029
|
+
var j = i + 1;
|
110030
|
+
if (str[j] === "?") {
|
110031
|
+
throw new TypeError('Pattern cannot start with "?" at '.concat(j));
|
110032
|
+
}
|
110033
|
+
while (j < str.length) {
|
110034
|
+
if (str[j] === "\\") {
|
110035
|
+
pattern += str[j++] + str[j++];
|
110036
|
+
continue;
|
110037
|
+
}
|
110038
|
+
if (str[j] === ")") {
|
110039
|
+
count--;
|
110040
|
+
if (count === 0) {
|
110041
|
+
j++;
|
110042
|
+
break;
|
110043
|
+
}
|
110044
|
+
} else if (str[j] === "(") {
|
110045
|
+
count++;
|
110046
|
+
if (str[j + 1] !== "?") {
|
110047
|
+
throw new TypeError("Capturing groups are not allowed at ".concat(j));
|
110048
|
+
}
|
110049
|
+
}
|
110050
|
+
pattern += str[j++];
|
110051
|
+
}
|
110052
|
+
if (count)
|
110053
|
+
throw new TypeError("Unbalanced pattern at ".concat(i));
|
110054
|
+
if (!pattern)
|
110055
|
+
throw new TypeError("Missing pattern at ".concat(i));
|
110056
|
+
tokens.push({ type: "PATTERN", index: i, value: pattern });
|
110057
|
+
i = j;
|
110058
|
+
continue;
|
110059
|
+
}
|
110060
|
+
tokens.push({ type: "CHAR", index: i, value: str[i++] });
|
110061
|
+
}
|
110062
|
+
tokens.push({ type: "END", index: i, value: "" });
|
110063
|
+
return tokens;
|
110064
|
+
}
|
110065
|
+
function parse9(str, options) {
|
110066
|
+
if (options === void 0) {
|
110067
|
+
options = {};
|
110068
|
+
}
|
110069
|
+
var tokens = lexer(str);
|
110070
|
+
var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a, _b = options.delimiter, delimiter3 = _b === void 0 ? "/#?" : _b;
|
110071
|
+
var result = [];
|
110072
|
+
var key = 0;
|
110073
|
+
var i = 0;
|
110074
|
+
var path11 = "";
|
110075
|
+
var tryConsume = function(type) {
|
110076
|
+
if (i < tokens.length && tokens[i].type === type)
|
110077
|
+
return tokens[i++].value;
|
110078
|
+
};
|
110079
|
+
var mustConsume = function(type) {
|
110080
|
+
var value2 = tryConsume(type);
|
110081
|
+
if (value2 !== void 0)
|
110082
|
+
return value2;
|
110083
|
+
var _a2 = tokens[i], nextType = _a2.type, index = _a2.index;
|
110084
|
+
throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type));
|
110085
|
+
};
|
110086
|
+
var consumeText = function() {
|
110087
|
+
var result2 = "";
|
110088
|
+
var value2;
|
110089
|
+
while (value2 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) {
|
110090
|
+
result2 += value2;
|
110091
|
+
}
|
110092
|
+
return result2;
|
110093
|
+
};
|
110094
|
+
var isSafe = function(value2) {
|
110095
|
+
for (var _i = 0, delimiter_1 = delimiter3; _i < delimiter_1.length; _i++) {
|
110096
|
+
var char2 = delimiter_1[_i];
|
110097
|
+
if (value2.indexOf(char2) > -1)
|
110098
|
+
return true;
|
110099
|
+
}
|
110100
|
+
return false;
|
110101
|
+
};
|
110102
|
+
var safePattern = function(prefix2) {
|
110103
|
+
var prev = result[result.length - 1];
|
110104
|
+
var prevText = prefix2 || (prev && typeof prev === "string" ? prev : "");
|
110105
|
+
if (prev && !prevText) {
|
110106
|
+
throw new TypeError('Must have text between two parameters, missing text after "'.concat(prev.name, '"'));
|
110107
|
+
}
|
110108
|
+
if (!prevText || isSafe(prevText))
|
110109
|
+
return "[^".concat(escapeString(delimiter3), "]+?");
|
110110
|
+
return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter3), "])+?");
|
110111
|
+
};
|
110112
|
+
while (i < tokens.length) {
|
110113
|
+
var char = tryConsume("CHAR");
|
110114
|
+
var name = tryConsume("NAME");
|
110115
|
+
var pattern = tryConsume("PATTERN");
|
110116
|
+
if (name || pattern) {
|
110117
|
+
var prefix = char || "";
|
110118
|
+
if (prefixes.indexOf(prefix) === -1) {
|
110119
|
+
path11 += prefix;
|
110120
|
+
prefix = "";
|
110121
|
+
}
|
110122
|
+
if (path11) {
|
110123
|
+
result.push(path11);
|
110124
|
+
path11 = "";
|
110125
|
+
}
|
110126
|
+
result.push({
|
110127
|
+
name: name || key++,
|
110128
|
+
prefix,
|
110129
|
+
suffix: "",
|
110130
|
+
pattern: pattern || safePattern(prefix),
|
110131
|
+
modifier: tryConsume("MODIFIER") || ""
|
110132
|
+
});
|
110133
|
+
continue;
|
110134
|
+
}
|
110135
|
+
var value = char || tryConsume("ESCAPED_CHAR");
|
110136
|
+
if (value) {
|
110137
|
+
path11 += value;
|
110138
|
+
continue;
|
110139
|
+
}
|
110140
|
+
if (path11) {
|
110141
|
+
result.push(path11);
|
110142
|
+
path11 = "";
|
110143
|
+
}
|
110144
|
+
var open5 = tryConsume("OPEN");
|
110145
|
+
if (open5) {
|
110146
|
+
var prefix = consumeText();
|
110147
|
+
var name_1 = tryConsume("NAME") || "";
|
110148
|
+
var pattern_1 = tryConsume("PATTERN") || "";
|
110149
|
+
var suffix = consumeText();
|
110150
|
+
mustConsume("CLOSE");
|
110151
|
+
result.push({
|
110152
|
+
name: name_1 || (pattern_1 ? key++ : ""),
|
110153
|
+
pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,
|
110154
|
+
prefix,
|
110155
|
+
suffix,
|
110156
|
+
modifier: tryConsume("MODIFIER") || ""
|
110157
|
+
});
|
110158
|
+
continue;
|
110159
|
+
}
|
110160
|
+
mustConsume("END");
|
110161
|
+
}
|
110162
|
+
return result;
|
110163
|
+
}
|
110164
|
+
exports2.parse = parse9;
|
110165
|
+
function compile(str, options) {
|
110166
|
+
return tokensToFunction(parse9(str, options), options);
|
110167
|
+
}
|
110168
|
+
exports2.compile = compile;
|
110169
|
+
function tokensToFunction(tokens, options) {
|
110170
|
+
if (options === void 0) {
|
110171
|
+
options = {};
|
110172
|
+
}
|
110173
|
+
var reFlags = flags(options);
|
110174
|
+
var _a = options.encode, encode = _a === void 0 ? function(x) {
|
110175
|
+
return x;
|
110176
|
+
} : _a, _b = options.validate, validate2 = _b === void 0 ? true : _b;
|
110177
|
+
var matches = tokens.map(function(token) {
|
110178
|
+
if (typeof token === "object") {
|
110179
|
+
return new RegExp("^(?:".concat(token.pattern, ")$"), reFlags);
|
110180
|
+
}
|
110181
|
+
});
|
110182
|
+
return function(data) {
|
110183
|
+
var path11 = "";
|
110184
|
+
for (var i = 0; i < tokens.length; i++) {
|
110185
|
+
var token = tokens[i];
|
110186
|
+
if (typeof token === "string") {
|
110187
|
+
path11 += token;
|
110188
|
+
continue;
|
110189
|
+
}
|
110190
|
+
var value = data ? data[token.name] : void 0;
|
110191
|
+
var optional = token.modifier === "?" || token.modifier === "*";
|
110192
|
+
var repeat = token.modifier === "*" || token.modifier === "+";
|
110193
|
+
if (Array.isArray(value)) {
|
110194
|
+
if (!repeat) {
|
110195
|
+
throw new TypeError('Expected "'.concat(token.name, '" to not repeat, but got an array'));
|
110196
|
+
}
|
110197
|
+
if (value.length === 0) {
|
110198
|
+
if (optional)
|
110199
|
+
continue;
|
110200
|
+
throw new TypeError('Expected "'.concat(token.name, '" to not be empty'));
|
110201
|
+
}
|
110202
|
+
for (var j = 0; j < value.length; j++) {
|
110203
|
+
var segment = encode(value[j], token);
|
110204
|
+
if (validate2 && !matches[i].test(segment)) {
|
110205
|
+
throw new TypeError('Expected all "'.concat(token.name, '" to match "').concat(token.pattern, '", but got "').concat(segment, '"'));
|
110206
|
+
}
|
110207
|
+
path11 += token.prefix + segment + token.suffix;
|
110208
|
+
}
|
110209
|
+
continue;
|
110210
|
+
}
|
110211
|
+
if (typeof value === "string" || typeof value === "number") {
|
110212
|
+
var segment = encode(String(value), token);
|
110213
|
+
if (validate2 && !matches[i].test(segment)) {
|
110214
|
+
throw new TypeError('Expected "'.concat(token.name, '" to match "').concat(token.pattern, '", but got "').concat(segment, '"'));
|
110215
|
+
}
|
110216
|
+
path11 += token.prefix + segment + token.suffix;
|
110217
|
+
continue;
|
110218
|
+
}
|
110219
|
+
if (optional)
|
110220
|
+
continue;
|
110221
|
+
var typeOfMessage = repeat ? "an array" : "a string";
|
110222
|
+
throw new TypeError('Expected "'.concat(token.name, '" to be ').concat(typeOfMessage));
|
110223
|
+
}
|
110224
|
+
return path11;
|
110225
|
+
};
|
110226
|
+
}
|
110227
|
+
exports2.tokensToFunction = tokensToFunction;
|
110228
|
+
function match(str, options) {
|
110229
|
+
var keys = [];
|
110230
|
+
var re = pathToRegexp(str, keys, options);
|
110231
|
+
return regexpToFunction(re, keys, options);
|
110232
|
+
}
|
110233
|
+
exports2.match = match;
|
110234
|
+
function regexpToFunction(re, keys, options) {
|
110235
|
+
if (options === void 0) {
|
110236
|
+
options = {};
|
110237
|
+
}
|
110238
|
+
var _a = options.decode, decode = _a === void 0 ? function(x) {
|
110239
|
+
return x;
|
110240
|
+
} : _a;
|
110241
|
+
return function(pathname) {
|
110242
|
+
var m = re.exec(pathname);
|
110243
|
+
if (!m)
|
110244
|
+
return false;
|
110245
|
+
var path11 = m[0], index = m.index;
|
110246
|
+
var params2 = /* @__PURE__ */ Object.create(null);
|
110247
|
+
var _loop_1 = function(i2) {
|
110248
|
+
if (m[i2] === void 0)
|
110249
|
+
return "continue";
|
110250
|
+
var key = keys[i2 - 1];
|
110251
|
+
if (key.modifier === "*" || key.modifier === "+") {
|
110252
|
+
params2[key.name] = m[i2].split(key.prefix + key.suffix).map(function(value) {
|
110253
|
+
return decode(value, key);
|
110254
|
+
});
|
110255
|
+
} else {
|
110256
|
+
params2[key.name] = decode(m[i2], key);
|
110257
|
+
}
|
110258
|
+
};
|
110259
|
+
for (var i = 1; i < m.length; i++) {
|
110260
|
+
_loop_1(i);
|
110261
|
+
}
|
110262
|
+
return { path: path11, index, params: params2 };
|
110263
|
+
};
|
110264
|
+
}
|
110265
|
+
exports2.regexpToFunction = regexpToFunction;
|
110266
|
+
function escapeString(str) {
|
110267
|
+
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
110268
|
+
}
|
110269
|
+
function flags(options) {
|
110270
|
+
return options && options.sensitive ? "" : "i";
|
110271
|
+
}
|
110272
|
+
function regexpToRegexp(path11, keys) {
|
110273
|
+
if (!keys)
|
110274
|
+
return path11;
|
110275
|
+
var groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g;
|
110276
|
+
var index = 0;
|
110277
|
+
var execResult = groupsRegex.exec(path11.source);
|
110278
|
+
while (execResult) {
|
110279
|
+
keys.push({
|
110280
|
+
// Use parenthesized substring match if available, index otherwise
|
110281
|
+
name: execResult[1] || index++,
|
110282
|
+
prefix: "",
|
110283
|
+
suffix: "",
|
110284
|
+
modifier: "",
|
110285
|
+
pattern: ""
|
110286
|
+
});
|
110287
|
+
execResult = groupsRegex.exec(path11.source);
|
110288
|
+
}
|
110289
|
+
return path11;
|
110290
|
+
}
|
110291
|
+
function arrayToRegexp(paths, keys, options) {
|
110292
|
+
var parts = paths.map(function(path11) {
|
110293
|
+
return pathToRegexp(path11, keys, options).source;
|
110294
|
+
});
|
110295
|
+
return new RegExp("(?:".concat(parts.join("|"), ")"), flags(options));
|
110296
|
+
}
|
110297
|
+
function stringToRegexp(path11, keys, options) {
|
110298
|
+
return tokensToRegexp(parse9(path11, options), keys, options);
|
110299
|
+
}
|
110300
|
+
function tokensToRegexp(tokens, keys, options) {
|
110301
|
+
if (options === void 0) {
|
110302
|
+
options = {};
|
110303
|
+
}
|
110304
|
+
var _a = options.strict, strict = _a === void 0 ? false : _a, _b = options.start, start = _b === void 0 ? true : _b, _c = options.end, end = _c === void 0 ? true : _c, _d = options.encode, encode = _d === void 0 ? function(x) {
|
110305
|
+
return x;
|
110306
|
+
} : _d, _e = options.delimiter, delimiter3 = _e === void 0 ? "/#?" : _e, _f = options.endsWith, endsWith = _f === void 0 ? "" : _f;
|
110307
|
+
var endsWithRe = "[".concat(escapeString(endsWith), "]|$");
|
110308
|
+
var delimiterRe = "[".concat(escapeString(delimiter3), "]");
|
110309
|
+
var route = start ? "^" : "";
|
110310
|
+
for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
|
110311
|
+
var token = tokens_1[_i];
|
110312
|
+
if (typeof token === "string") {
|
110313
|
+
route += escapeString(encode(token));
|
110314
|
+
} else {
|
110315
|
+
var prefix = escapeString(encode(token.prefix));
|
110316
|
+
var suffix = escapeString(encode(token.suffix));
|
110317
|
+
if (token.pattern) {
|
110318
|
+
if (keys)
|
110319
|
+
keys.push(token);
|
110320
|
+
if (prefix || suffix) {
|
110321
|
+
if (token.modifier === "+" || token.modifier === "*") {
|
110322
|
+
var mod = token.modifier === "*" ? "?" : "";
|
110323
|
+
route += "(?:".concat(prefix, "((?:").concat(token.pattern, ")(?:").concat(suffix).concat(prefix, "(?:").concat(token.pattern, "))*)").concat(suffix, ")").concat(mod);
|
110324
|
+
} else {
|
110325
|
+
route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
|
110326
|
+
}
|
110327
|
+
} else {
|
110328
|
+
if (token.modifier === "+" || token.modifier === "*") {
|
110329
|
+
throw new TypeError('Can not repeat "'.concat(token.name, '" without a prefix and suffix'));
|
110330
|
+
}
|
110331
|
+
route += "(".concat(token.pattern, ")").concat(token.modifier);
|
110332
|
+
}
|
110333
|
+
} else {
|
110334
|
+
route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
|
110335
|
+
}
|
110336
|
+
}
|
110337
|
+
}
|
110338
|
+
if (end) {
|
110339
|
+
if (!strict)
|
110340
|
+
route += "".concat(delimiterRe, "?");
|
110341
|
+
route += !options.endsWith ? "$" : "(?=".concat(endsWithRe, ")");
|
110342
|
+
} else {
|
110343
|
+
var endToken = tokens[tokens.length - 1];
|
110344
|
+
var isEndDelimited = typeof endToken === "string" ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1 : endToken === void 0;
|
110345
|
+
if (!strict) {
|
110346
|
+
route += "(?:".concat(delimiterRe, "(?=").concat(endsWithRe, "))?");
|
110347
|
+
}
|
110348
|
+
if (!isEndDelimited) {
|
110349
|
+
route += "(?=".concat(delimiterRe, "|").concat(endsWithRe, ")");
|
110350
|
+
}
|
110351
|
+
}
|
110352
|
+
return new RegExp(route, flags(options));
|
110353
|
+
}
|
110354
|
+
exports2.tokensToRegexp = tokensToRegexp;
|
110355
|
+
function pathToRegexp(path11, keys, options) {
|
110356
|
+
if (path11 instanceof RegExp)
|
110357
|
+
return regexpToRegexp(path11, keys);
|
110358
|
+
if (Array.isArray(path11))
|
110359
|
+
return arrayToRegexp(path11, keys, options);
|
110360
|
+
return stringToRegexp(path11, keys, options);
|
110361
|
+
}
|
110362
|
+
exports2.pathToRegexp = pathToRegexp;
|
110363
|
+
}
|
110364
|
+
});
|
110365
|
+
|
109976
110366
|
// ../routing-utils/dist/superstatic.js
|
109977
110367
|
var require_superstatic = __commonJS2({
|
109978
110368
|
"../routing-utils/dist/superstatic.js"(exports2, module2) {
|
@@ -110008,6 +110398,37 @@ var require_superstatic = __commonJS2({
|
|
110008
110398
|
module2.exports = __toCommonJS4(superstatic_exports);
|
110009
110399
|
var import_url23 = require("url");
|
110010
110400
|
var import_path_to_regexp = require_dist21();
|
110401
|
+
var import_path_to_regexp_updated = require_dist22();
|
110402
|
+
function pathToRegexp(callerId, path11, keys, options) {
|
110403
|
+
const currentRegExp = (0, import_path_to_regexp.pathToRegexp)(path11, keys, options);
|
110404
|
+
try {
|
110405
|
+
const currentKeys = keys;
|
110406
|
+
const newKeys = [];
|
110407
|
+
const newRegExp = (0, import_path_to_regexp_updated.pathToRegexp)(path11, newKeys, options);
|
110408
|
+
const isDiffRegExp = currentRegExp.toString() !== newRegExp.toString();
|
110409
|
+
if (process.env.FORCE_PATH_TO_REGEXP_LOG || isDiffRegExp) {
|
110410
|
+
const message2 = JSON.stringify({
|
110411
|
+
path: path11,
|
110412
|
+
currentRegExp: currentRegExp.toString(),
|
110413
|
+
newRegExp: newRegExp.toString()
|
110414
|
+
});
|
110415
|
+
console.error(`[vc] PATH TO REGEXP PATH DIFF @ #${callerId}: ${message2}`);
|
110416
|
+
}
|
110417
|
+
const isDiffKeys = keys?.toString() !== newKeys?.toString();
|
110418
|
+
if (process.env.FORCE_PATH_TO_REGEXP_LOG || isDiffKeys) {
|
110419
|
+
const message2 = JSON.stringify({
|
110420
|
+
isDiffKeys,
|
110421
|
+
currentKeys,
|
110422
|
+
newKeys
|
110423
|
+
});
|
110424
|
+
console.error(`[vc] PATH TO REGEXP KEYS DIFF @ #${callerId}: ${message2}`);
|
110425
|
+
}
|
110426
|
+
} catch (err) {
|
110427
|
+
const error3 = err;
|
110428
|
+
console.error(`[vc] PATH TO REGEXP ERROR @ #${callerId}: ${error3.message}`);
|
110429
|
+
}
|
110430
|
+
return currentRegExp;
|
110431
|
+
}
|
110011
110432
|
var UN_NAMED_SEGMENT = "__UN_NAMED_SEGMENT__";
|
110012
110433
|
function getCleanUrls2(filePaths) {
|
110013
110434
|
const htmlFiles = filePaths.map(toRoute).filter((f) => f.endsWith(".html")).map((f) => ({
|
@@ -110163,7 +110584,7 @@ var require_superstatic = __commonJS2({
|
|
110163
110584
|
}
|
110164
110585
|
function sourceToRegex(source) {
|
110165
110586
|
const keys = [];
|
110166
|
-
const r = (
|
110587
|
+
const r = pathToRegexp("632", source, keys, {
|
110167
110588
|
strict: true,
|
110168
110589
|
sensitive: true,
|
110169
110590
|
delimiter: "/"
|
@@ -110236,9 +110657,9 @@ var require_superstatic = __commonJS2({
|
|
110236
110657
|
const hashKeys = [];
|
110237
110658
|
const hostnameKeys = [];
|
110238
110659
|
try {
|
110239
|
-
(
|
110240
|
-
(
|
110241
|
-
(
|
110660
|
+
pathToRegexp("528", pathname, pathnameKeys);
|
110661
|
+
pathToRegexp("834", hash || "", hashKeys);
|
110662
|
+
pathToRegexp("712", hostname2 || "", hostnameKeys);
|
110242
110663
|
} catch (_) {
|
110243
110664
|
}
|
110244
110665
|
destParams = new Set(
|
@@ -110346,7 +110767,7 @@ var require_append = __commonJS2({
|
|
110346
110767
|
appendRoutesToPhase: () => appendRoutesToPhase4
|
110347
110768
|
});
|
110348
110769
|
module2.exports = __toCommonJS4(append_exports);
|
110349
|
-
var import_index =
|
110770
|
+
var import_index = require_dist23();
|
110350
110771
|
function appendRoutesToPhase4({
|
110351
110772
|
routes: prevRoutes,
|
110352
110773
|
newRoutes,
|
@@ -110414,7 +110835,7 @@ var require_merge3 = __commonJS2({
|
|
110414
110835
|
mergeRoutes: () => mergeRoutes3
|
110415
110836
|
});
|
110416
110837
|
module2.exports = __toCommonJS4(merge_exports);
|
110417
|
-
var import_index =
|
110838
|
+
var import_index = require_dist23();
|
110418
110839
|
function getBuilderRoutesMapping(builds) {
|
110419
110840
|
const builderRoutes = {};
|
110420
110841
|
for (const { entrypoint, routes: routes2, use } of builds) {
|
@@ -110856,7 +111277,7 @@ var require_types6 = __commonJS2({
|
|
110856
111277
|
});
|
110857
111278
|
|
110858
111279
|
// ../routing-utils/dist/index.js
|
110859
|
-
var
|
111280
|
+
var require_dist23 = __commonJS2({
|
110860
111281
|
"../routing-utils/dist/index.js"(exports2, module2) {
|
110861
111282
|
"use strict";
|
110862
111283
|
var __defProp4 = Object.defineProperty;
|
@@ -131936,7 +132357,7 @@ var init_validate_config = __esm({
|
|
131936
132357
|
"src/util/validate-config.ts"() {
|
131937
132358
|
"use strict";
|
131938
132359
|
import_ajv2 = __toESM3(require_ajv());
|
131939
|
-
import_routing_utils = __toESM3(
|
132360
|
+
import_routing_utils = __toESM3(require_dist23());
|
131940
132361
|
import_build_utils12 = require("@vercel/build-utils");
|
131941
132362
|
import_client5 = __toESM3(require_dist7());
|
131942
132363
|
imagesSchema = {
|
@@ -133836,7 +134257,7 @@ var init_build2 = __esm({
|
|
133836
134257
|
import_client6 = __toESM3(require_dist7());
|
133837
134258
|
import_frameworks5 = __toESM3(require_frameworks());
|
133838
134259
|
import_fs_detectors4 = __toESM3(require_dist20());
|
133839
|
-
import_routing_utils2 = __toESM3(
|
134260
|
+
import_routing_utils2 = __toESM3(require_dist23());
|
133840
134261
|
init_output_manager();
|
133841
134262
|
init_corepack();
|
133842
134263
|
init_import_builders();
|
@@ -155420,7 +155841,7 @@ var require_src3 = __commonJS2({
|
|
155420
155841
|
});
|
155421
155842
|
|
155422
155843
|
// ../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js
|
155423
|
-
var
|
155844
|
+
var require_dist24 = __commonJS2({
|
155424
155845
|
"../../node_modules/.pnpm/@tootallnate+once@1.1.2/node_modules/@tootallnate/once/dist/index.js"(exports2, module2) {
|
155425
155846
|
"use strict";
|
155426
155847
|
function noop() {
|
@@ -155597,7 +156018,7 @@ var init_path_helpers = __esm({
|
|
155597
156018
|
});
|
155598
156019
|
|
155599
156020
|
// ../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js
|
155600
|
-
var
|
156021
|
+
var require_dist25 = __commonJS2({
|
155601
156022
|
"../../node_modules/.pnpm/pcre-to-regexp@1.0.0/node_modules/pcre-to-regexp/dist/index.js"(exports2, module2) {
|
155602
156023
|
"use strict";
|
155603
156024
|
var characterClasses = {
|
@@ -155932,9 +156353,9 @@ var init_router = __esm({
|
|
155932
156353
|
"src/util/dev/router.ts"() {
|
155933
156354
|
"use strict";
|
155934
156355
|
import_url16 = __toESM3(require("url"));
|
155935
|
-
import_pcre_to_regexp = __toESM3(
|
156356
|
+
import_pcre_to_regexp = __toESM3(require_dist25());
|
155936
156357
|
init_is_url();
|
155937
|
-
import_routing_utils3 = __toESM3(
|
156358
|
+
import_routing_utils3 = __toESM3(require_dist23());
|
155938
156359
|
init_parse_query_string();
|
155939
156360
|
}
|
155940
156361
|
});
|
@@ -156431,7 +156852,7 @@ var init_builder = __esm({
|
|
156431
156852
|
init_tree_kill();
|
156432
156853
|
init_path_helpers();
|
156433
156854
|
init_errors_ts();
|
156434
|
-
import_routing_utils4 = __toESM3(
|
156855
|
+
import_routing_utils4 = __toESM3(require_dist23());
|
156435
156856
|
init_get_update_command();
|
156436
156857
|
init_pkg_name();
|
156437
156858
|
init_import_builders();
|
@@ -156991,7 +157412,7 @@ var init_server = __esm({
|
|
156991
157412
|
import_chokidar = require("chokidar");
|
156992
157413
|
import_dotenv2 = __toESM3(require_main3());
|
156993
157414
|
import_path35 = __toESM3(require("path"));
|
156994
|
-
import_once = __toESM3(
|
157415
|
+
import_once = __toESM3(require_dist24());
|
156995
157416
|
import_directory = __toESM3(require_directory());
|
156996
157417
|
import_get_port = __toESM3(require_get_port());
|
156997
157418
|
import_is_port_reachable = __toESM3(require_is_port_reachable());
|
@@ -156999,7 +157420,7 @@ var init_server = __esm({
|
|
156999
157420
|
import_npm_package_arg2 = __toESM3(require_npa());
|
157000
157421
|
import_json_parse_better_errors3 = __toESM3(require_json_parse_better_errors());
|
157001
157422
|
import_client12 = __toESM3(require_dist7());
|
157002
|
-
import_routing_utils5 = __toESM3(
|
157423
|
+
import_routing_utils5 = __toESM3(require_dist23());
|
157003
157424
|
import_build_utils17 = require("@vercel/build-utils");
|
157004
157425
|
import_fs_detectors6 = __toESM3(require_dist20());
|
157005
157426
|
import_frameworks6 = __toESM3(require_frameworks());
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "39.4.
|
3
|
+
"version": "39.4.2",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -26,12 +26,12 @@
|
|
26
26
|
"@vercel/go": "3.2.1",
|
27
27
|
"@vercel/hydrogen": "1.0.11",
|
28
28
|
"@vercel/next": "4.4.4",
|
29
|
-
"@vercel/node": "5.0.
|
29
|
+
"@vercel/node": "5.0.4",
|
30
30
|
"@vercel/python": "4.7.1",
|
31
|
-
"@vercel/redwood": "2.1.
|
32
|
-
"@vercel/remix-builder": "5.1.
|
31
|
+
"@vercel/redwood": "2.1.13",
|
32
|
+
"@vercel/remix-builder": "5.1.1",
|
33
33
|
"@vercel/ruby": "2.2.0",
|
34
|
-
"@vercel/static-build": "2.5.
|
34
|
+
"@vercel/static-build": "2.5.43",
|
35
35
|
"chokidar": "4.0.0"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
@@ -79,12 +79,12 @@
|
|
79
79
|
"@types/yauzl-promise": "2.1.0",
|
80
80
|
"@vercel-internals/constants": "1.0.4",
|
81
81
|
"@vercel-internals/get-package-json": "1.0.0",
|
82
|
-
"@vercel-internals/types": "3.0.
|
83
|
-
"@vercel/client": "13.5.
|
82
|
+
"@vercel-internals/types": "3.0.6",
|
83
|
+
"@vercel/client": "13.5.6",
|
84
84
|
"@vercel/error-utils": "2.0.3",
|
85
85
|
"@vercel/frameworks": "3.5.0",
|
86
|
-
"@vercel/fs-detectors": "5.3.
|
87
|
-
"@vercel/routing-utils": "5.0.
|
86
|
+
"@vercel/fs-detectors": "5.3.4",
|
87
|
+
"@vercel/routing-utils": "5.0.1",
|
88
88
|
"@vitest/expect": "2.1.3",
|
89
89
|
"ajv": "6.12.3",
|
90
90
|
"alpha-sort": "2.0.1",
|