vercel 54.14.5 → 54.15.0
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/chunks/{add-5Z2AAQMM.js → add-6XHROCMP.js} +5 -5
- package/dist/chunks/{chunk-EBIX223X.js → chunk-3RIVJWW5.js} +1 -1
- package/dist/chunks/{chunk-X23JL3ZL.js → chunk-574PHXNT.js} +9 -4
- package/dist/chunks/{chunk-PXJA4KXE.js → chunk-6A62YUBE.js} +3 -3
- package/dist/chunks/{chunk-25XEQWUS.js → chunk-6SL223IW.js} +1 -1
- package/dist/chunks/{chunk-MOVGWTDQ.js → chunk-6TPH3ZBU.js} +6 -5
- package/dist/chunks/{chunk-6ABEFMPX.js → chunk-AG6TBL6C.js} +1 -1
- package/dist/chunks/{chunk-6R3YPU76.js → chunk-CENOYXK3.js} +382 -7
- package/dist/chunks/{chunk-R5MIXAJF.js → chunk-DCN3SOR6.js} +2 -2
- package/dist/chunks/{chunk-ZR4XADWC.js → chunk-EAEEBPMD.js} +2 -2
- package/dist/chunks/{chunk-ETVOM3IR.js → chunk-HSXUEJ4T.js} +1 -1
- package/dist/chunks/{chunk-PSG6ZBGQ.js → chunk-LABX5FSJ.js} +1 -1
- package/dist/chunks/{chunk-2GOVUIMY.js → chunk-LOPPFUV3.js} +2 -2
- package/dist/chunks/{chunk-KSSRTKN4.js → chunk-OEYKL4IY.js} +4 -4
- package/dist/chunks/{chunk-IXTKPQYW.js → chunk-OQD4G5FW.js} +4 -4
- package/dist/chunks/{chunk-LJ5WXXG6.js → chunk-QH7WYDEP.js} +11 -0
- package/dist/chunks/{chunk-2N7NBUQX.js → chunk-RHXSECUF.js} +206 -31
- package/dist/chunks/{chunk-YIAUEFUY.js → chunk-SFPJ3VR7.js} +210 -12
- package/dist/chunks/{chunk-JLLN34XF.js → chunk-TLVKY7WL.js} +4 -4
- package/dist/chunks/{chunk-6H2YVMJJ.js → chunk-UZD3DM6V.js} +1 -1
- package/dist/chunks/{chunk-45S2Y3TD.js → chunk-WGH26RJV.js} +1 -1
- package/dist/chunks/{compile-vercel-config-UMUHH55E.js → compile-vercel-config-ATU3UBFK.js} +1 -1
- package/dist/chunks/{delete-NO2U3UGV.js → delete-WIN4UHQY.js} +3 -3
- package/dist/chunks/{disable-AGDDHVKZ.js → disable-24KUO3TS.js} +3 -3
- package/dist/chunks/{discard-Q5HML52L.js → discard-B6ATZCPD.js} +3 -3
- package/dist/chunks/{edit-HSHJAKHM.js → edit-DIYIVLFQ.js} +7 -7
- package/dist/chunks/{enable-YMJAXOGA.js → enable-BF7NKTV7.js} +3 -3
- package/dist/chunks/{export-RCACOTPE.js → export-HHONDN7V.js} +3 -3
- package/dist/chunks/{inspect-OJHOQHD2.js → inspect-GSYKUMK5.js} +4 -4
- package/dist/chunks/{list-LLUDMAWA.js → list-OSJGB5AE.js} +4 -4
- package/dist/chunks/{list-R7V2P6TM.js → list-PZ4DRWLO.js} +2 -2
- package/dist/chunks/{ls-KAI6V7SU.js → ls-QBCHGSIC.js} +5 -5
- package/dist/chunks/{publish-KCYVRDAT.js → publish-QYPZQ66O.js} +3 -3
- package/dist/chunks/{query-MBJLAQRX.js → query-BDMX4CF6.js} +2 -2
- package/dist/chunks/{reorder-C5BJWFJM.js → reorder-YDTGTTJB.js} +3 -3
- package/dist/chunks/{restore-F63NO7XP.js → restore-LXO2ZBAF.js} +3 -3
- package/dist/chunks/{rm-HT7YO3JX.js → rm-3L7FVCDA.js} +5 -5
- package/dist/chunks/{rule-inspect-IHEUI5JT.js → rule-inspect-T57QBYJR.js} +5 -5
- package/dist/chunks/{rules-ZUBTVSNC.js → rules-E5DTNMFG.js} +7 -7
- package/dist/chunks/{schema-VAQSZY2H.js → schema-VYVJ4GYP.js} +2 -2
- package/dist/chunks/{update-BS5FBLIP.js → update-LT3LZVEZ.js} +5 -5
- package/dist/commands/build/index.js +115 -83
- package/dist/commands/deploy/index.js +11 -11
- package/dist/commands/dev/index.js +9 -9
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +8 -8
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +4824 -1591
- package/dist/index.js +8 -8
- package/dist/version.mjs +1 -1
- package/package.json +17 -17
|
@@ -20940,6 +20940,7 @@ var require_superstatic = __commonJS({
|
|
|
20940
20940
|
var superstatic_exports = {};
|
|
20941
20941
|
__export2(superstatic_exports, {
|
|
20942
20942
|
collectHasSegments: () => collectHasSegments,
|
|
20943
|
+
compilePathToRegexpTemplate: () => compilePathToRegexpTemplate2,
|
|
20943
20944
|
convertCleanUrls: () => convertCleanUrls,
|
|
20944
20945
|
convertHeaders: () => convertHeaders,
|
|
20945
20946
|
convertRedirects: () => convertRedirects,
|
|
@@ -21083,6 +21084,22 @@ var require_superstatic = __commonJS({
|
|
|
21083
21084
|
}
|
|
21084
21085
|
route = { src, destination };
|
|
21085
21086
|
}
|
|
21087
|
+
if (r.transforms) {
|
|
21088
|
+
route.transforms = r.transforms.map((transform) => {
|
|
21089
|
+
if (transform.type !== "request.path") {
|
|
21090
|
+
return { ...transform };
|
|
21091
|
+
}
|
|
21092
|
+
return {
|
|
21093
|
+
...transform,
|
|
21094
|
+
args: compilePathToRegexpTemplateFromSegments(
|
|
21095
|
+
transform.args,
|
|
21096
|
+
segments,
|
|
21097
|
+
hasSegments,
|
|
21098
|
+
transform.env
|
|
21099
|
+
)
|
|
21100
|
+
};
|
|
21101
|
+
});
|
|
21102
|
+
}
|
|
21086
21103
|
if (typeof r.env !== "undefined") {
|
|
21087
21104
|
route.env = r.env;
|
|
21088
21105
|
}
|
|
@@ -21223,6 +21240,81 @@ var require_superstatic = __commonJS({
|
|
|
21223
21240
|
}
|
|
21224
21241
|
var escapeSegment = (str, segmentName) => str.replace(new RegExp(`:${segmentName}`, "g"), `__ESC_COLON_${segmentName}`);
|
|
21225
21242
|
var unescapeSegments = (str) => str.replace(/__ESC_COLON_/gi, ":");
|
|
21243
|
+
var pathTemplateSegmentNameRegex = /^([a-zA-Z_][a-zA-Z0-9_]*)/;
|
|
21244
|
+
function isEscaped(value, index) {
|
|
21245
|
+
let backslashCount = 0;
|
|
21246
|
+
for (let i = index - 1; i >= 0 && value[i] === "\\"; i--) {
|
|
21247
|
+
backslashCount++;
|
|
21248
|
+
}
|
|
21249
|
+
return backslashCount % 2 === 1;
|
|
21250
|
+
}
|
|
21251
|
+
function collectPathTemplateSegments(template) {
|
|
21252
|
+
const segments = [];
|
|
21253
|
+
for (let i = 0; i < template.length; i++) {
|
|
21254
|
+
if (template[i] !== ":" || isEscaped(template, i)) {
|
|
21255
|
+
continue;
|
|
21256
|
+
}
|
|
21257
|
+
const match = template.slice(i + 1).match(pathTemplateSegmentNameRegex);
|
|
21258
|
+
if (match) {
|
|
21259
|
+
segments.push(match[1]);
|
|
21260
|
+
i += match[1].length;
|
|
21261
|
+
}
|
|
21262
|
+
}
|
|
21263
|
+
return segments;
|
|
21264
|
+
}
|
|
21265
|
+
function collectNamedDollarReferences(template) {
|
|
21266
|
+
const references = [];
|
|
21267
|
+
for (let i = 0; i < template.length; i++) {
|
|
21268
|
+
if (template[i] !== "$" || isEscaped(template, i)) {
|
|
21269
|
+
continue;
|
|
21270
|
+
}
|
|
21271
|
+
const remainder = template.slice(i + 1);
|
|
21272
|
+
const bracedMatch = remainder.match(/^\{([a-zA-Z_][a-zA-Z0-9_]*)\}/);
|
|
21273
|
+
const unbracedMatch = remainder.match(pathTemplateSegmentNameRegex);
|
|
21274
|
+
const name = bracedMatch?.[1] || unbracedMatch?.[1];
|
|
21275
|
+
if (name) {
|
|
21276
|
+
references.push(name);
|
|
21277
|
+
}
|
|
21278
|
+
}
|
|
21279
|
+
return references;
|
|
21280
|
+
}
|
|
21281
|
+
function compilePathToRegexpTemplateFromSegments(template, segments, hasItemSegments, env = []) {
|
|
21282
|
+
const indexes = {};
|
|
21283
|
+
segments.forEach((name, index) => {
|
|
21284
|
+
indexes[name] = toSegmentDest(index);
|
|
21285
|
+
});
|
|
21286
|
+
hasItemSegments.forEach((name) => {
|
|
21287
|
+
indexes[name] = `$${name}`;
|
|
21288
|
+
});
|
|
21289
|
+
for (const name of collectPathTemplateSegments(template)) {
|
|
21290
|
+
if (!(name in indexes)) {
|
|
21291
|
+
throw new Error(
|
|
21292
|
+
`Path template references parameter ":${name}" that is not present in the source or has conditions.`
|
|
21293
|
+
);
|
|
21294
|
+
}
|
|
21295
|
+
}
|
|
21296
|
+
const routeParameters = /* @__PURE__ */ new Set([
|
|
21297
|
+
...segments.filter((name) => name !== UN_NAMED_SEGMENT),
|
|
21298
|
+
...hasItemSegments
|
|
21299
|
+
]);
|
|
21300
|
+
for (const name of collectNamedDollarReferences(template)) {
|
|
21301
|
+
if (routeParameters.has(name) && !env.includes(name)) {
|
|
21302
|
+
throw new Error(
|
|
21303
|
+
`Path template references route parameter "${name}" as \`$${name}\`. Use \`:${name}\` path-to-regexp syntax in high-level rewrites, or list "${name}" in the transform env allowlist if it is an environment variable.`
|
|
21304
|
+
);
|
|
21305
|
+
}
|
|
21306
|
+
}
|
|
21307
|
+
return safelyCompile(template, indexes, true);
|
|
21308
|
+
}
|
|
21309
|
+
function compilePathToRegexpTemplate2(source, template, has, env) {
|
|
21310
|
+
const { segments } = sourceToRegex2(source);
|
|
21311
|
+
return compilePathToRegexpTemplateFromSegments(
|
|
21312
|
+
template,
|
|
21313
|
+
segments,
|
|
21314
|
+
collectHasSegments(has),
|
|
21315
|
+
env
|
|
21316
|
+
);
|
|
21317
|
+
}
|
|
21226
21318
|
function replaceSegments(segments, hasItemSegments, destination, isRedirect, internalParamNames) {
|
|
21227
21319
|
const namedSegments = segments.filter((name) => name !== UN_NAMED_SEGMENT);
|
|
21228
21320
|
const canNeedReplacing = destination.includes(":") && namedSegments.length > 0 || hasItemSegments.length > 0 || !isRedirect;
|
|
@@ -21624,7 +21716,8 @@ var require_schemas = __commonJS({
|
|
|
21624
21716
|
redirectsSchema: () => redirectsSchema2,
|
|
21625
21717
|
rewritesSchema: () => rewritesSchema2,
|
|
21626
21718
|
routesSchema: () => routesSchema2,
|
|
21627
|
-
trailingSlashSchema: () => trailingSlashSchema2
|
|
21719
|
+
trailingSlashSchema: () => trailingSlashSchema2,
|
|
21720
|
+
transformsSchema: () => transformsSchema
|
|
21628
21721
|
});
|
|
21629
21722
|
module.exports = __toCommonJS2(schemas_exports);
|
|
21630
21723
|
var mitigateSchema = {
|
|
@@ -21789,18 +21882,23 @@ var require_schemas = __commonJS({
|
|
|
21789
21882
|
}
|
|
21790
21883
|
};
|
|
21791
21884
|
var transformsSchema = {
|
|
21792
|
-
description: "A list of transform rules to adjust
|
|
21885
|
+
description: "A list of transform rules to adjust a request path, request query parameters, or request/response headers",
|
|
21793
21886
|
type: "array",
|
|
21794
21887
|
minItems: 1,
|
|
21795
21888
|
items: {
|
|
21796
21889
|
type: "object",
|
|
21797
21890
|
additionalProperties: false,
|
|
21798
|
-
required: ["type", "op"
|
|
21891
|
+
required: ["type", "op"],
|
|
21799
21892
|
properties: {
|
|
21800
21893
|
type: {
|
|
21801
21894
|
description: "The scope of the transform to apply",
|
|
21802
21895
|
type: "string",
|
|
21803
|
-
enum: [
|
|
21896
|
+
enum: [
|
|
21897
|
+
"request.headers",
|
|
21898
|
+
"request.query",
|
|
21899
|
+
"response.headers",
|
|
21900
|
+
"request.path"
|
|
21901
|
+
]
|
|
21804
21902
|
},
|
|
21805
21903
|
op: {
|
|
21806
21904
|
description: "The operation to perform on the target",
|
|
@@ -21986,10 +22084,90 @@ var require_schemas = __commonJS({
|
|
|
21986
22084
|
}
|
|
21987
22085
|
}
|
|
21988
22086
|
}
|
|
22087
|
+
},
|
|
22088
|
+
{
|
|
22089
|
+
if: {
|
|
22090
|
+
required: ["type"],
|
|
22091
|
+
properties: {
|
|
22092
|
+
type: {
|
|
22093
|
+
enum: ["request.headers", "request.query", "response.headers"]
|
|
22094
|
+
}
|
|
22095
|
+
}
|
|
22096
|
+
},
|
|
22097
|
+
// biome-ignore lint/suspicious/noThenProperty: JSON Schema if/then keyword
|
|
22098
|
+
then: {
|
|
22099
|
+
required: ["target"]
|
|
22100
|
+
}
|
|
22101
|
+
},
|
|
22102
|
+
{
|
|
22103
|
+
if: {
|
|
22104
|
+
required: ["type"],
|
|
22105
|
+
properties: {
|
|
22106
|
+
type: {
|
|
22107
|
+
enum: ["request.path"]
|
|
22108
|
+
}
|
|
22109
|
+
}
|
|
22110
|
+
},
|
|
22111
|
+
// biome-ignore lint/suspicious/noThenProperty: JSON Schema if/then keyword
|
|
22112
|
+
then: {
|
|
22113
|
+
required: ["args"],
|
|
22114
|
+
not: {
|
|
22115
|
+
required: ["target"]
|
|
22116
|
+
},
|
|
22117
|
+
properties: {
|
|
22118
|
+
op: {
|
|
22119
|
+
enum: ["set"]
|
|
22120
|
+
},
|
|
22121
|
+
args: {
|
|
22122
|
+
description: "The runtime-visible request path. Must be an origin-form path without query or fragment.",
|
|
22123
|
+
type: "string",
|
|
22124
|
+
maxLength: 2048,
|
|
22125
|
+
pattern: "^/(?!/)(?!.*[?#\\s\\x00-\\x1F\\x7F]).*$"
|
|
22126
|
+
}
|
|
22127
|
+
}
|
|
22128
|
+
}
|
|
21989
22129
|
}
|
|
21990
22130
|
]
|
|
21991
22131
|
}
|
|
21992
22132
|
};
|
|
22133
|
+
var rewriteTransformsSchema = {
|
|
22134
|
+
description: "A list of request path transforms using path-to-regexp parameters.",
|
|
22135
|
+
type: "array",
|
|
22136
|
+
minItems: 1,
|
|
22137
|
+
items: {
|
|
22138
|
+
type: "object",
|
|
22139
|
+
additionalProperties: false,
|
|
22140
|
+
required: ["type", "op", "args"],
|
|
22141
|
+
properties: {
|
|
22142
|
+
type: {
|
|
22143
|
+
description: "The request path to expose to the target runtime",
|
|
22144
|
+
type: "string",
|
|
22145
|
+
enum: ["request.path"]
|
|
22146
|
+
},
|
|
22147
|
+
op: {
|
|
22148
|
+
description: "Replace the runtime-visible request path",
|
|
22149
|
+
type: "string",
|
|
22150
|
+
enum: ["set"]
|
|
22151
|
+
},
|
|
22152
|
+
args: {
|
|
22153
|
+
description: "An origin-form request path. Route parameters use path-to-regexp syntax such as `/:path*`.",
|
|
22154
|
+
type: "string",
|
|
22155
|
+
maxLength: 2048,
|
|
22156
|
+
pattern: "^/(?!/)(?!.*[?#\\s\\x00-\\x1F\\x7F]).*$"
|
|
22157
|
+
},
|
|
22158
|
+
env: {
|
|
22159
|
+
description: "An array of environment variable names that should be replaced at runtime in the args value",
|
|
22160
|
+
type: "array",
|
|
22161
|
+
minItems: 1,
|
|
22162
|
+
maxItems: 64,
|
|
22163
|
+
items: {
|
|
22164
|
+
type: "string",
|
|
22165
|
+
maxLength: 256
|
|
22166
|
+
}
|
|
22167
|
+
}
|
|
22168
|
+
}
|
|
22169
|
+
}
|
|
22170
|
+
};
|
|
21993
22171
|
var routesSchema2 = {
|
|
21994
22172
|
type: "array",
|
|
21995
22173
|
description: "A list of routes objects used to rewrite paths to point towards other internal or external paths",
|
|
@@ -22169,6 +22347,7 @@ var require_schemas = __commonJS({
|
|
|
22169
22347
|
description: "An absolute pathname to an existing resource, an external URL, or a service-targeted destination object.",
|
|
22170
22348
|
anyOf: [{ type: "string", maxLength: 4096 }, serviceDestinationSchema]
|
|
22171
22349
|
},
|
|
22350
|
+
transforms: rewriteTransformsSchema,
|
|
22172
22351
|
has: hasSchema,
|
|
22173
22352
|
missing: hasSchema,
|
|
22174
22353
|
statusCode: {
|
|
@@ -22337,6 +22516,7 @@ var require_dist5 = __commonJS({
|
|
|
22337
22516
|
var src_exports = {};
|
|
22338
22517
|
__export2(src_exports, {
|
|
22339
22518
|
appendRoutesToPhase: () => import_append.appendRoutesToPhase,
|
|
22519
|
+
compilePathToRegexpTemplate: () => import_superstatic2.compilePathToRegexpTemplate,
|
|
22340
22520
|
getCleanUrls: () => import_superstatic2.getCleanUrls,
|
|
22341
22521
|
getOwnershipGuard: () => import_service_route_ownership.getOwnershipGuard,
|
|
22342
22522
|
getTransformedRoutes: () => getTransformedRoutes,
|
|
@@ -22510,7 +22690,8 @@ var require_dist5 = __commonJS({
|
|
|
22510
22690
|
function checkPatternSyntax(type, index, {
|
|
22511
22691
|
source,
|
|
22512
22692
|
destination,
|
|
22513
|
-
has
|
|
22693
|
+
has,
|
|
22694
|
+
transforms
|
|
22514
22695
|
}) {
|
|
22515
22696
|
let sourceSegments = /* @__PURE__ */ new Set();
|
|
22516
22697
|
const destinationSegments = /* @__PURE__ */ new Set();
|
|
@@ -22550,6 +22731,19 @@ var require_dist5 = __commonJS({
|
|
|
22550
22731
|
}
|
|
22551
22732
|
}
|
|
22552
22733
|
}
|
|
22734
|
+
for (const transform of transforms || []) {
|
|
22735
|
+
if (transform.type !== "request.path") {
|
|
22736
|
+
continue;
|
|
22737
|
+
}
|
|
22738
|
+
try {
|
|
22739
|
+
(0, import_superstatic.compilePathToRegexpTemplate)(source, transform.args, has, transform.env);
|
|
22740
|
+
} catch (error) {
|
|
22741
|
+
return {
|
|
22742
|
+
message: `${type} at index ${index} has an invalid \`request.path\` transform: ${error instanceof Error ? error.message : String(error)}`,
|
|
22743
|
+
link: "https://vercel.link/invalid-route-destination-segment"
|
|
22744
|
+
};
|
|
22745
|
+
}
|
|
22746
|
+
}
|
|
22553
22747
|
return null;
|
|
22554
22748
|
}
|
|
22555
22749
|
function checkRedirect(r, index) {
|
|
@@ -22841,7 +23035,8 @@ var require_utils3 = __commonJS({
|
|
|
22841
23035
|
isFrontendFramework: () => isFrontendFramework,
|
|
22842
23036
|
isRouteOwningBuilder: () => isRouteOwningBuilder2,
|
|
22843
23037
|
isStaticBuild: () => isStaticBuild2,
|
|
22844
|
-
readVercelConfig: () => readVercelConfig
|
|
23038
|
+
readVercelConfig: () => readVercelConfig,
|
|
23039
|
+
stripTrailingSlash: () => stripTrailingSlash
|
|
22845
23040
|
});
|
|
22846
23041
|
module.exports = __toCommonJS2(utils_exports);
|
|
22847
23042
|
var import_framework_helpers = __require("@vercel/build-utils/dist/framework-helpers");
|
|
@@ -22851,6 +23046,10 @@ var require_utils3 = __commonJS({
|
|
|
22851
23046
|
var DETECTION_FRAMEWORKS = import_frameworks2.frameworkList.filter(
|
|
22852
23047
|
(framework) => !framework.experimental || framework.runtimeFramework
|
|
22853
23048
|
);
|
|
23049
|
+
function stripTrailingSlash(p) {
|
|
23050
|
+
const stripped = p.replace(/\/+$/, "");
|
|
23051
|
+
return stripped === "" ? "." : stripped;
|
|
23052
|
+
}
|
|
22854
23053
|
async function hasFile(fs5, filePath) {
|
|
22855
23054
|
try {
|
|
22856
23055
|
return await fs5.isFile(filePath);
|
|
@@ -23327,7 +23526,7 @@ var require_resolve2 = __commonJS({
|
|
|
23327
23526
|
if (!root) {
|
|
23328
23527
|
return { fs: fs5 };
|
|
23329
23528
|
}
|
|
23330
|
-
const normalizedRoot = import_path12.posix.normalize(root);
|
|
23529
|
+
const normalizedRoot = (0, import_utils4.stripTrailingSlash)(import_path12.posix.normalize(root));
|
|
23331
23530
|
if (!await fs5.hasPath(normalizedRoot)) {
|
|
23332
23531
|
return {
|
|
23333
23532
|
fs: fs5,
|
|
@@ -24251,9 +24450,8 @@ var require_resolve_v2 = __commonJS({
|
|
|
24251
24450
|
return null;
|
|
24252
24451
|
}
|
|
24253
24452
|
async function resolveConfiguredServiceV22(name, config, fs5) {
|
|
24254
|
-
const
|
|
24255
|
-
const
|
|
24256
|
-
const serviceFsResult = normalizedRoot === "." ? { fs: fs5 } : await (0, import_resolve.getServiceFs)(fs5, name, root);
|
|
24453
|
+
const normalizedRoot = (0, import_utils4.stripTrailingSlash)(import_path12.posix.normalize(config.root));
|
|
24454
|
+
const serviceFsResult = normalizedRoot === "." ? { fs: fs5 } : await (0, import_resolve.getServiceFs)(fs5, name, normalizedRoot);
|
|
24257
24455
|
if (serviceFsResult.error) {
|
|
24258
24456
|
return { error: serviceFsResult.error };
|
|
24259
24457
|
}
|
|
@@ -24343,7 +24541,7 @@ var require_resolve_v2 = __commonJS({
|
|
|
24343
24541
|
service: {
|
|
24344
24542
|
schema: "experimentalServicesV2",
|
|
24345
24543
|
name,
|
|
24346
|
-
root,
|
|
24544
|
+
root: normalizedRoot,
|
|
24347
24545
|
framework,
|
|
24348
24546
|
runtime,
|
|
24349
24547
|
entrypoint: entrypointFile,
|
|
@@ -37408,7 +37606,7 @@ var require_package = __commonJS({
|
|
|
37408
37606
|
"../client/package.json"(exports, module) {
|
|
37409
37607
|
module.exports = {
|
|
37410
37608
|
name: "@vercel/client",
|
|
37411
|
-
version: "17.5.
|
|
37609
|
+
version: "17.5.17",
|
|
37412
37610
|
main: "dist/index.js",
|
|
37413
37611
|
typings: "dist/index.d.ts",
|
|
37414
37612
|
homepage: "https://vercel.com",
|
|
@@ -7,17 +7,17 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WGH26RJV.js";
|
|
11
11
|
import {
|
|
12
12
|
getGlobalPathConfig,
|
|
13
13
|
progress,
|
|
14
14
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EAEEBPMD.js";
|
|
16
16
|
import {
|
|
17
17
|
apiCommand,
|
|
18
18
|
listSubcommand2 as listSubcommand,
|
|
19
19
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CENOYXK3.js";
|
|
21
21
|
import {
|
|
22
22
|
require_semver
|
|
23
23
|
} from "./chunk-IB5L4LKZ.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-AWD3IGXU.js";
|
|
27
27
|
import {
|
|
28
28
|
login
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
30
30
|
import {
|
|
31
31
|
TelemetryClient,
|
|
32
32
|
isNativeBinaryInstall
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseSubcommandArgs,
|
|
16
16
|
resolveRoutes,
|
|
17
17
|
withGlobalFlags
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-574PHXNT.js";
|
|
19
19
|
import {
|
|
20
20
|
deleteSubcommand
|
|
21
21
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -26,8 +26,8 @@ import "./chunk-VXYGCOKL.js";
|
|
|
26
26
|
import {
|
|
27
27
|
AGENT_REASON,
|
|
28
28
|
AGENT_STATUS
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-QH7WYDEP.js";
|
|
30
|
+
import "./chunk-SFPJ3VR7.js";
|
|
31
31
|
import "./chunk-HIYWSGI7.js";
|
|
32
32
|
import {
|
|
33
33
|
outputAgentError
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-574PHXNT.js";
|
|
21
21
|
import {
|
|
22
22
|
disableSubcommand
|
|
23
23
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
stamp_default
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QH7WYDEP.js";
|
|
29
|
+
import "./chunk-SFPJ3VR7.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
printDiffSummary,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-574PHXNT.js";
|
|
21
21
|
import {
|
|
22
22
|
discardSubcommand
|
|
23
23
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
stamp_default
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QH7WYDEP.js";
|
|
29
|
+
import "./chunk-SFPJ3VR7.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
printRouteConfig,
|
|
20
20
|
routingRuleToCurrentRoute,
|
|
21
21
|
runInteractiveEditLoop
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RHXSECUF.js";
|
|
23
23
|
import {
|
|
24
24
|
getRouteVersions
|
|
25
25
|
} from "./chunk-AHU7WNL2.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolveRoute,
|
|
32
32
|
shellQuoteRouteIdentifierForSuggestion,
|
|
33
33
|
withGlobalFlags
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-574PHXNT.js";
|
|
35
35
|
import {
|
|
36
36
|
editSubcommand
|
|
37
37
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
stamp_default
|
|
40
40
|
} from "./chunk-64IF634X.js";
|
|
41
41
|
import "./chunk-VXYGCOKL.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-QH7WYDEP.js";
|
|
43
|
+
import "./chunk-SFPJ3VR7.js";
|
|
44
44
|
import "./chunk-HIYWSGI7.js";
|
|
45
45
|
import {
|
|
46
46
|
outputAgentError
|
|
@@ -364,7 +364,7 @@ Editing route "${originalRoute.name}"`);
|
|
|
364
364
|
}
|
|
365
365
|
await runInteractiveEditLoop(client, route);
|
|
366
366
|
}
|
|
367
|
-
populateRouteEnv(route.route);
|
|
367
|
+
populateRouteEnv(route.route, route.srcSyntax);
|
|
368
368
|
if (JSON.stringify(route) === JSON.stringify(originalRoute)) {
|
|
369
369
|
output_manager_default.log("No changes made.");
|
|
370
370
|
return 0;
|
|
@@ -554,7 +554,7 @@ async function handleAIEdit(client, projectId, teamId, originalRoute, aiPrompt,
|
|
|
554
554
|
manualRoute.srcSyntax = routeInput.srcSyntax;
|
|
555
555
|
manualRoute.route = routeInput.route;
|
|
556
556
|
await runInteractiveEditLoop(client, manualRoute);
|
|
557
|
-
populateRouteEnv(manualRoute.route);
|
|
557
|
+
populateRouteEnv(manualRoute.route, manualRoute.srcSyntax);
|
|
558
558
|
const editStamp = stamp_default();
|
|
559
559
|
output_manager_default.spinner(`Updating route "${manualRoute.name}"`);
|
|
560
560
|
try {
|
|
@@ -596,7 +596,7 @@ async function handleAIEdit(client, projectId, teamId, originalRoute, aiPrompt,
|
|
|
596
596
|
}
|
|
597
597
|
async function applyAIEdit(client, projectId, teamId, originalRoute, generated, existingStagingVersion, skipConfirmation) {
|
|
598
598
|
const routeInput = generatedRouteToAddInput(generated);
|
|
599
|
-
populateRouteEnv(routeInput.route);
|
|
599
|
+
populateRouteEnv(routeInput.route, routeInput.srcSyntax);
|
|
600
600
|
const editStamp = stamp_default();
|
|
601
601
|
output_manager_default.spinner(`Updating route "${routeInput.name}"`);
|
|
602
602
|
try {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-574PHXNT.js";
|
|
21
21
|
import {
|
|
22
22
|
enableSubcommand
|
|
23
23
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
stamp_default
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QH7WYDEP.js";
|
|
29
|
+
import "./chunk-SFPJ3VR7.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
getRoutes,
|
|
10
10
|
parseSubcommandArgs,
|
|
11
11
|
withGlobalFlags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-574PHXNT.js";
|
|
13
13
|
import {
|
|
14
14
|
exportSubcommand
|
|
15
15
|
} from "./chunk-IB56QKCM.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-QH7WYDEP.js";
|
|
17
|
+
import "./chunk-SFPJ3VR7.js";
|
|
18
18
|
import "./chunk-HIYWSGI7.js";
|
|
19
19
|
import {
|
|
20
20
|
outputAgentError
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
emitAlertsScopeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6A62YUBE.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
import "./chunk-SGPBULVT.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT_REASON
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QH7WYDEP.js";
|
|
25
25
|
import {
|
|
26
26
|
getScope
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6SL223IW.js";
|
|
28
28
|
import {
|
|
29
29
|
getLinkedProject,
|
|
30
30
|
getProjectByNameOrId
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
32
32
|
import "./chunk-HIYWSGI7.js";
|
|
33
33
|
import {
|
|
34
34
|
buildCommandWithGlobalFlags,
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6A62YUBE.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
normalizeRepeatableStringFilters,
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
import "./chunk-SGPBULVT.js";
|
|
26
26
|
import {
|
|
27
27
|
AGENT_REASON
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-QH7WYDEP.js";
|
|
29
|
+
import "./chunk-6SL223IW.js";
|
|
30
|
+
import "./chunk-SFPJ3VR7.js";
|
|
31
31
|
import "./chunk-HIYWSGI7.js";
|
|
32
32
|
import {
|
|
33
33
|
buildCommandWithGlobalFlags,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
} from "./chunk-56AJHIQC.js";
|
|
25
25
|
import {
|
|
26
26
|
getScope
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6SL223IW.js";
|
|
28
28
|
import {
|
|
29
29
|
getLinkedProject,
|
|
30
30
|
getProjectByNameOrId
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
32
32
|
import "./chunk-HIYWSGI7.js";
|
|
33
33
|
import "./chunk-NHGCQRK5.js";
|
|
34
34
|
import "./chunk-N2T234LO.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-LOPPFUV3.js";
|
|
13
|
+
import "./chunk-6A62YUBE.js";
|
|
14
14
|
import "./chunk-D7MGZH35.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
} from "./chunk-SGPBULVT.js";
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-QH7WYDEP.js";
|
|
24
|
+
import "./chunk-6SL223IW.js";
|
|
25
|
+
import "./chunk-SFPJ3VR7.js";
|
|
26
26
|
import "./chunk-HIYWSGI7.js";
|
|
27
27
|
import {
|
|
28
28
|
outputAgentError
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
printDiffSummary,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-574PHXNT.js";
|
|
21
21
|
import {
|
|
22
22
|
publishSubcommand
|
|
23
23
|
} from "./chunk-IB56QKCM.js";
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
stamp_default
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QH7WYDEP.js";
|
|
29
|
+
import "./chunk-SFPJ3VR7.js";
|
|
30
30
|
import "./chunk-HIYWSGI7.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|