vercel 54.14.2 → 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-PKT6ULVJ.js → add-6XHROCMP.js} +5 -5
- package/dist/chunks/{chunk-3BR246Y6.js → chunk-3RIVJWW5.js} +2 -11
- package/dist/chunks/{chunk-J7BMPRCU.js → chunk-574PHXNT.js} +9 -4
- package/dist/chunks/{chunk-FLW73SZ3.js → chunk-6A62YUBE.js} +3 -3
- package/dist/chunks/{chunk-G3NXHUFT.js → chunk-6SL223IW.js} +1 -1
- package/dist/chunks/{chunk-2ZSXQQXI.js → chunk-6TPH3ZBU.js} +10 -19
- package/dist/chunks/{chunk-2XEEOHHH.js → chunk-AG6TBL6C.js} +1 -1
- package/dist/chunks/chunk-BRQ6PX3U.js +593 -0
- package/dist/chunks/{chunk-O7RJHL34.js → chunk-CENOYXK3.js} +583 -11
- package/dist/chunks/{chunk-YLGMXYFG.js → chunk-DCN3SOR6.js} +2 -2
- package/dist/chunks/{chunk-OHIZ4SVU.js → chunk-EAEEBPMD.js} +15 -3
- package/dist/chunks/{chunk-2HN6DLIY.js → chunk-HSXUEJ4T.js} +1 -1
- package/dist/chunks/{chunk-SDZ5ICZL.js → chunk-LABX5FSJ.js} +1 -1
- package/dist/chunks/{chunk-JISJDGJF.js → chunk-LOPPFUV3.js} +2 -2
- package/dist/chunks/{chunk-O4V7CMVO.js → chunk-OEYKL4IY.js} +7 -5
- package/dist/chunks/{chunk-372SHB43.js → chunk-OQD4G5FW.js} +4 -4
- package/dist/chunks/{chunk-LJ5WXXG6.js → chunk-QH7WYDEP.js} +11 -0
- package/dist/chunks/{chunk-Z3X747P6.js → chunk-RHXSECUF.js} +206 -31
- package/dist/chunks/{chunk-LQR3CHMH.js → chunk-SFPJ3VR7.js} +421 -799
- package/dist/chunks/{chunk-FEYVO2US.js → chunk-TLVKY7WL.js} +90 -32
- package/dist/chunks/{chunk-4BFK3C7V.js → chunk-UZD3DM6V.js} +1 -1
- package/dist/chunks/{chunk-IPWWE7PB.js → chunk-WGH26RJV.js} +1 -1
- package/dist/chunks/{chunk-ILJH44MK.js → chunk-YE3C5CUX.js} +1 -1
- package/dist/chunks/{compile-vercel-config-3LV7J3IZ.js → compile-vercel-config-ATU3UBFK.js} +1 -1
- package/dist/chunks/{delete-GFW6Y6TZ.js → delete-WIN4UHQY.js} +3 -3
- package/dist/chunks/{disable-PGRAS2ZL.js → disable-24KUO3TS.js} +3 -3
- package/dist/chunks/{discard-S6N5Q4G5.js → discard-B6ATZCPD.js} +3 -3
- package/dist/chunks/{edit-TICKX4ZV.js → edit-DIYIVLFQ.js} +7 -7
- package/dist/chunks/{enable-L3BYWN6S.js → enable-BF7NKTV7.js} +3 -3
- package/dist/chunks/{export-NXS33U5T.js → export-HHONDN7V.js} +3 -3
- package/dist/chunks/{inspect-OOI5JN3Y.js → inspect-GSYKUMK5.js} +4 -4
- package/dist/chunks/{list-77WL6463.js → list-OSJGB5AE.js} +4 -4
- package/dist/chunks/{list-6EHRL2D4.js → list-PZ4DRWLO.js} +2 -2
- package/dist/chunks/{ls-PBSOEXFG.js → ls-QBCHGSIC.js} +5 -5
- package/dist/chunks/{publish-CU2THVYW.js → publish-QYPZQ66O.js} +3 -3
- package/dist/chunks/{query-HEATRYAK.js → query-BDMX4CF6.js} +3 -3
- package/dist/chunks/{reorder-IQVKSM3H.js → reorder-YDTGTTJB.js} +3 -3
- package/dist/chunks/{restore-RDEOBGAS.js → restore-LXO2ZBAF.js} +3 -3
- package/dist/chunks/{rm-MCSGTU4J.js → rm-3L7FVCDA.js} +5 -5
- package/dist/chunks/{rule-inspect-3YK2XSL3.js → rule-inspect-T57QBYJR.js} +5 -5
- package/dist/chunks/{rules-F4MRDDHM.js → rules-E5DTNMFG.js} +7 -7
- package/dist/chunks/{schema-65C5EBJ7.js → schema-VYVJ4GYP.js} +3 -3
- package/dist/chunks/{update-XB4WSRGY.js → update-LT3LZVEZ.js} +5 -5
- package/dist/commands/build/index.js +157 -101
- package/dist/commands/deploy/index.js +13 -12
- package/dist/commands/dev/index.js +70 -23
- package/dist/commands/env/index.js +8 -6
- package/dist/commands/link/index.js +9 -16
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +5371 -1618
- package/dist/index.js +9 -9
- package/dist/version.mjs +1 -1
- package/package.json +21 -21
|
@@ -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
|
buildCommandWithGlobalFlags,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
require_lib,
|
|
19
19
|
require_minimatch,
|
|
20
20
|
require_pluralize
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
22
22
|
import {
|
|
23
23
|
CantParseJSONFile,
|
|
24
24
|
cmd,
|
|
@@ -11455,14 +11455,6 @@ function stripDuplicateSlashes(path2) {
|
|
|
11455
11455
|
function getServiceOutputDir(outputDir, service) {
|
|
11456
11456
|
return join4(outputDir, "services", service.name);
|
|
11457
11457
|
}
|
|
11458
|
-
async function relocateRootBuildOutputToService(args) {
|
|
11459
|
-
const { outputDir, service, workPath } = args;
|
|
11460
|
-
await relocateBuildOutputApiEntries(
|
|
11461
|
-
outputDir,
|
|
11462
|
-
getServiceOutputDir(outputDir, service),
|
|
11463
|
-
workPath
|
|
11464
|
-
);
|
|
11465
|
-
}
|
|
11466
11458
|
async function writeBuildResultV2(args) {
|
|
11467
11459
|
const {
|
|
11468
11460
|
repoRootPath,
|
|
@@ -12000,8 +11992,7 @@ export {
|
|
|
12000
11992
|
getStaticServiceSchedules,
|
|
12001
11993
|
OUTPUT_DIR,
|
|
12002
11994
|
writeBuildResult,
|
|
12003
|
-
isLambda
|
|
12004
|
-
relocateRootBuildOutputToService
|
|
11995
|
+
isLambda
|
|
12005
11996
|
};
|
|
12006
11997
|
/*! Bundled license information:
|
|
12007
11998
|
|
|
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
AGENT_REASON,
|
|
9
9
|
AGENT_STATUS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QH7WYDEP.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
14
14
|
import {
|
|
15
15
|
buildCommandWithYes,
|
|
16
16
|
outputAgentError
|
|
@@ -56,6 +56,9 @@ function getSrcSyntaxLabel(rule) {
|
|
|
56
56
|
const syntax = rule.srcSyntax ?? "regex";
|
|
57
57
|
return SRC_SYNTAX_LABELS[syntax];
|
|
58
58
|
}
|
|
59
|
+
function isTargetTransform(transform) {
|
|
60
|
+
return "target" in transform;
|
|
61
|
+
}
|
|
59
62
|
|
|
60
63
|
// src/commands/routes/shared.ts
|
|
61
64
|
var import_chalk = __toESM(require_source(), 1);
|
|
@@ -213,7 +216,8 @@ function formatCondition(condition) {
|
|
|
213
216
|
var TRANSFORM_TYPE_LABELS = {
|
|
214
217
|
"request.headers": "Request Header",
|
|
215
218
|
"request.query": "Request Query",
|
|
216
|
-
"response.headers": "Response Header"
|
|
219
|
+
"response.headers": "Response Header",
|
|
220
|
+
"request.path": "Request Path"
|
|
217
221
|
};
|
|
218
222
|
var TRANSFORM_OP_LABELS = {
|
|
219
223
|
set: "set",
|
|
@@ -222,7 +226,7 @@ var TRANSFORM_OP_LABELS = {
|
|
|
222
226
|
};
|
|
223
227
|
function formatTransform(transform, includeType = true) {
|
|
224
228
|
const opLabel = TRANSFORM_OP_LABELS[transform.op] ?? transform.op;
|
|
225
|
-
const key = typeof transform.target.key === "string" ? transform.target.key : JSON.stringify(transform.target.key);
|
|
229
|
+
const key = isTargetTransform(transform) ? typeof transform.target.key === "string" ? transform.target.key : JSON.stringify(transform.target.key) : "path";
|
|
226
230
|
const parts = [];
|
|
227
231
|
if (includeType) {
|
|
228
232
|
const typeLabel = TRANSFORM_TYPE_LABELS[transform.type] ?? transform.type;
|
|
@@ -453,6 +457,7 @@ async function getRoutes(client, projectId, options = {}) {
|
|
|
453
457
|
export {
|
|
454
458
|
getRouteTypeLabel,
|
|
455
459
|
getSrcSyntaxLabel,
|
|
460
|
+
isTargetTransform,
|
|
456
461
|
withGlobalFlags,
|
|
457
462
|
shellQuoteRouteIdentifierForSuggestion,
|
|
458
463
|
parseSubcommandArgs,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-D7MGZH35.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_REASON
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QH7WYDEP.js";
|
|
13
13
|
import {
|
|
14
14
|
getScope
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6SL223IW.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
@@ -7,9 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
isJSONObject,
|
|
9
9
|
printIndications,
|
|
10
|
+
progress,
|
|
10
11
|
require_dist as require_dist2,
|
|
11
12
|
sleep
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EAEEBPMD.js";
|
|
13
14
|
import {
|
|
14
15
|
suggestNextCommands
|
|
15
16
|
} from "./chunk-LKBI43XK.js";
|
|
@@ -19,22 +20,24 @@ import {
|
|
|
19
20
|
} from "./chunk-TCF6MGBY.js";
|
|
20
21
|
import {
|
|
21
22
|
CommandTimeout
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CENOYXK3.js";
|
|
24
|
+
import {
|
|
25
|
+
showPluginTipIfNeeded
|
|
26
|
+
} from "./chunk-BRQ6PX3U.js";
|
|
23
27
|
import {
|
|
24
28
|
stamp_default
|
|
25
29
|
} from "./chunk-64IF634X.js";
|
|
26
30
|
import {
|
|
27
31
|
getScope
|
|
28
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6SL223IW.js";
|
|
29
33
|
import {
|
|
30
34
|
getProjectByNameOrId,
|
|
31
35
|
param,
|
|
32
36
|
printAlignedLabel,
|
|
33
37
|
require_dist as require_dist3,
|
|
34
38
|
require_pluralize,
|
|
35
|
-
showPluginTipIfNeeded,
|
|
36
39
|
ua_default
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SFPJ3VR7.js";
|
|
38
41
|
import {
|
|
39
42
|
require_lib
|
|
40
43
|
} from "./chunk-N2T234LO.js";
|
|
@@ -1938,19 +1941,6 @@ var import_client = __toESM(require_dist3(), 1);
|
|
|
1938
1941
|
var import_error_utils = __toESM(require_dist(), 1);
|
|
1939
1942
|
var import_bytes = __toESM(require_bytes(), 1);
|
|
1940
1943
|
var import_chalk2 = __toESM(require_source(), 1);
|
|
1941
|
-
|
|
1942
|
-
// src/util/output/progress.ts
|
|
1943
|
-
function progress(current, total, opts = {}) {
|
|
1944
|
-
const { width = 20, complete = "=", incomplete = "-" } = opts;
|
|
1945
|
-
if (total <= 0 || current < 0 || current > total) {
|
|
1946
|
-
return null;
|
|
1947
|
-
}
|
|
1948
|
-
const unit = total / width;
|
|
1949
|
-
const pos = Math.floor(current / unit);
|
|
1950
|
-
return `${complete.repeat(pos)}${incomplete.repeat(width - pos)}`;
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
// src/util/deploy/process-deployment.ts
|
|
1954
1944
|
function printInspectUrl(inspectorUrl) {
|
|
1955
1945
|
if (!inspectorUrl) {
|
|
1956
1946
|
return;
|
|
@@ -2932,7 +2922,8 @@ async function getDomainByName(client, contextName, domainName, options = {}) {
|
|
|
2932
2922
|
}
|
|
2933
2923
|
try {
|
|
2934
2924
|
const { domain } = await client.fetch(
|
|
2935
|
-
`/v4/domains/${encodeURIComponent(domainName)}
|
|
2925
|
+
`/v4/domains/${encodeURIComponent(domainName)}`,
|
|
2926
|
+
{ bailOn429: options.bailOn429 }
|
|
2936
2927
|
);
|
|
2937
2928
|
return domain;
|
|
2938
2929
|
} catch (err) {
|