vercel 56.4.1 → 57.0.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-L3Z6PL54.js → add-7M577U56.js} +7 -6
- package/dist/chunks/{add-RFEJCIBM.js → add-YRZTDNXX.js} +3 -3
- package/dist/chunks/{chunk-V5P25P7F.js → chunk-2473DUBR.js} +4 -11
- package/dist/chunks/{chunk-5EXIJBLL.js → chunk-2EDWKVNP.js} +8 -8
- package/dist/chunks/{chunk-YS6EDZHB.js → chunk-2MJROFVC.js} +5 -1
- package/dist/chunks/{chunk-OOD67FAL.js → chunk-3242RXCN.js} +1 -1
- package/dist/chunks/chunk-3PGXYIKC.js +147 -0
- package/dist/chunks/{chunk-CHZBEMLF.js → chunk-4PGF367U.js} +47 -210
- package/dist/chunks/{chunk-GKVAAY2A.js → chunk-555WJSO5.js} +1 -1
- package/dist/chunks/chunk-5AJPMLDV.js +28 -0
- package/dist/chunks/{chunk-IHQ7DPQI.js → chunk-A2TYQBX2.js} +117 -3
- package/dist/chunks/chunk-A3NYPUKZ.js +17 -0
- package/dist/chunks/{chunk-W346YNDN.js → chunk-DWMH5M4Q.js} +4 -1
- package/dist/chunks/chunk-E336ZXPP.js +43 -0
- package/dist/chunks/chunk-F5PQWDOC.js +245 -0
- package/dist/chunks/{chunk-Y7TVKRRJ.js → chunk-F7X55TOY.js} +15 -839
- package/dist/chunks/chunk-FGDKMNEN.js +21 -0
- package/dist/chunks/chunk-FHEMFAHB.js +320 -0
- package/dist/chunks/{chunk-NLRIKNPX.js → chunk-GP5VCTEU.js} +1 -1
- package/dist/chunks/chunk-GZLPFESR.js +48 -0
- package/dist/chunks/{chunk-HZKJMZEQ.js → chunk-HD7B425F.js} +2 -2
- package/dist/chunks/{chunk-J6KTUJHV.js → chunk-IOAZNR6Z.js} +1 -1
- package/dist/chunks/{chunk-STJJ3DFO.js → chunk-KCF6S3XF.js} +16 -1
- package/dist/chunks/chunk-LMHT3QR3.js +247 -0
- package/dist/chunks/{chunk-A4XB42AB.js → chunk-MAHINYBW.js} +4 -3
- package/dist/chunks/{chunk-DXFSBJTA.js → chunk-MIFDRYTN.js} +1 -1
- package/dist/chunks/{chunk-VLTQJKP6.js → chunk-NH43BFJ3.js} +1 -1
- package/dist/chunks/{chunk-Z7NPYIZ6.js → chunk-NM43FFV6.js} +0 -8
- package/dist/chunks/{chunk-MQRHJEBS.js → chunk-NRNMT43R.js} +3 -3
- package/dist/chunks/chunk-OF2GNB42.js +53 -0
- package/dist/chunks/chunk-PRWJUY5U.js +848 -0
- package/dist/chunks/{chunk-F5OMERHI.js → chunk-QZD5DKUR.js} +10 -23
- package/dist/chunks/{chunk-4M3ZQCYN.js → chunk-RAFH25WW.js} +8 -1
- package/dist/chunks/{chunk-43B3LNUF.js → chunk-RYO6FJFB.js} +1 -1
- package/dist/chunks/{chunk-XFGY3JAX.js → chunk-T4NODP6Y.js} +11 -18
- package/dist/chunks/{chunk-GLAHGVBS.js → chunk-TBR2Q37Y.js} +2038 -1786
- package/dist/chunks/chunk-V4RMJKQP.js +36 -0
- package/dist/chunks/chunk-WR7JTCGL.js +104 -0
- package/dist/chunks/{chunk-6RTK6BWX.js → chunk-YA3WQFLY.js} +1 -1
- package/dist/chunks/{chunk-UHGAPG7O.js → chunk-YOZCJHLZ.js} +4 -4
- package/dist/chunks/{compile-vercel-config-J2X5OV6K.js → compile-vercel-config-3OHO3TJA.js} +2 -2
- package/dist/chunks/config-validator.mjs +1 -0
- package/dist/chunks/delete-3DZOCWCC.js +150 -0
- package/dist/chunks/{delete-57A44RN7.js → delete-VOSJLNEA.js} +3 -3
- package/dist/chunks/{disable-DNZ52MEO.js → disable-LQDEVRQF.js} +3 -3
- package/dist/chunks/{discard-HACSIZ74.js → discard-RGV4JKXQ.js} +3 -3
- package/dist/chunks/{edit-HJ47TQU3.js → edit-SFIEOQ24.js} +4 -4
- package/dist/chunks/edit-UPZPI54L.js +153 -0
- package/dist/chunks/{enable-BVLRVRYM.js → enable-6UVH35WC.js} +3 -3
- package/dist/chunks/{export-7MJFGMG7.js → export-6CEG3CK7.js} +3 -3
- package/dist/chunks/{image-4UMD7UZP.js → image-CQRCD2OE.js} +3 -3
- package/dist/chunks/inspect-4ZAH3RFT.js +205 -0
- package/dist/chunks/inspect-EXQBIAFF.js +587 -0
- package/dist/chunks/{inspect-WBHUZC3R.js → inspect-K5ZMQG7X.js} +3 -3
- package/dist/chunks/{inspect-4JD2QN67.js → inspect-UM3LDRPV.js} +3 -3
- package/dist/chunks/{inspect-XX3OXSHC.js → inspect-ZFRY3X3H.js} +3 -3
- package/dist/chunks/{list-AM6K2JCW.js → list-4DRVM7Q4.js} +42 -55
- package/dist/chunks/{list-5H57NTM4.js → list-FJCBOCCA.js} +2 -2
- package/dist/chunks/list-KCUHD4OA.js +360 -0
- package/dist/chunks/{login-YO34E4V5.js → login-DFGYNU3K.js} +3 -3
- package/dist/chunks/{ls-44NPIO2N.js → ls-34NCZKBE.js} +3 -3
- package/dist/chunks/{ls-P7ZLBWW2.js → ls-4QHHVXXD.js} +3 -3
- package/dist/chunks/{ls-YDUYTLXW.js → ls-CG6A7UXF.js} +3 -3
- package/dist/chunks/ls-RHEQ6YQB.js +188 -0
- package/dist/chunks/open-E3XADEMX.js +106 -0
- package/dist/chunks/{publish-RXFUYSW3.js → publish-Z3AQRUCS.js} +3 -3
- package/dist/chunks/{query-ILJJL3BZ.js → query-3EV66DO3.js} +9 -9
- package/dist/chunks/{reorder-GBCOPZT4.js → reorder-VA5E5ZJT.js} +3 -3
- package/dist/chunks/reply-SNSCNKAW.js +167 -0
- package/dist/chunks/resolve-6ZX4RTXX.js +228 -0
- package/dist/chunks/{restore-YK5DGGRX.js → restore-NEHI5B5P.js} +3 -3
- package/dist/chunks/{rm-O474MI5C.js → rm-22B22E47.js} +3 -3
- package/dist/chunks/{rm-LK6P7XTA.js → rm-E5ZVLAKO.js} +3 -3
- package/dist/chunks/{rm-FRZMXB2W.js → rm-FR6KE744.js} +7 -6
- package/dist/chunks/rule-inspect-DMP2CKJQ.js +283 -0
- package/dist/chunks/{rules-MZ2MP6KJ.js → rules-EYGXEI2Z.js} +7 -7
- package/dist/chunks/{schema-FR6CCQIZ.js → schema-2IIWOBSQ.js} +7 -5
- package/dist/chunks/{tags-AKRTKFRV.js → tags-ZDVYRHAY.js} +2 -2
- package/dist/chunks/{update-W3CWQB2F.js → update-QH4DQMZV.js} +7 -6
- package/dist/commands/build/index.js +45 -13
- package/dist/commands/deploy/index.js +38 -27
- package/dist/commands/dev/index.js +13 -16
- package/dist/commands/env/index.js +13 -11
- package/dist/commands/link/index.js +10 -9
- package/dist/commands/list/index.js +5 -5
- package/dist/commands-bulk.js +2981 -2179
- package/dist/index.js +31 -21
- package/dist/vc.js +54 -18
- package/dist/version.mjs +1 -1
- package/package.json +35 -35
- package/dist/chunks/chunk-F32B76CK.js +0 -86
- package/dist/chunks/inspect-5YZP7IWI.js +0 -351
- package/dist/chunks/ls-MB74DIQV.js +0 -113
- package/dist/chunks/rule-inspect-YEZGYINZ.js +0 -141
|
@@ -6,18 +6,23 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getResolvedOrderMetadata,
|
|
9
|
-
getRollupColumnName
|
|
9
|
+
getRollupColumnName
|
|
10
|
+
} from "./chunk-NM43FFV6.js";
|
|
11
|
+
import {
|
|
12
|
+
formatGranularity
|
|
13
|
+
} from "./chunk-5AJPMLDV.js";
|
|
14
|
+
import {
|
|
10
15
|
indent_default
|
|
11
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A3NYPUKZ.js";
|
|
17
|
+
import {
|
|
18
|
+
ellipsizeMiddle
|
|
19
|
+
} from "./chunk-OF2GNB42.js";
|
|
12
20
|
import {
|
|
13
21
|
elapsed
|
|
14
22
|
} from "./chunk-VXYGCOKL.js";
|
|
15
23
|
import {
|
|
16
24
|
table
|
|
17
25
|
} from "./chunk-NZRWTCRM.js";
|
|
18
|
-
import {
|
|
19
|
-
require_strip_ansi
|
|
20
|
-
} from "./chunk-SZXT3PDQ.js";
|
|
21
26
|
import {
|
|
22
27
|
require_ms
|
|
23
28
|
} from "./chunk-GGP5R3FU.js";
|
|
@@ -122,7 +127,6 @@ function toGranularityMsFromDuration(duration) {
|
|
|
122
127
|
|
|
123
128
|
// src/commands/metrics/text-output.ts
|
|
124
129
|
var import_chalk = __toESM(require_source(), 1);
|
|
125
|
-
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
126
130
|
var GROUP_KEY_DELIMITER = "";
|
|
127
131
|
var MAX_SPARKLINE_LENGTH = 120;
|
|
128
132
|
var COUNT_UNITS = /* @__PURE__ */ new Set(["count", "usd", "us dollars", "dollars"]);
|
|
@@ -176,15 +180,6 @@ function formatPeriodSpan(startInput, endInput) {
|
|
|
176
180
|
}
|
|
177
181
|
return elapsed(durationMs);
|
|
178
182
|
}
|
|
179
|
-
function formatGranularity(granularity) {
|
|
180
|
-
if ("minutes" in granularity) {
|
|
181
|
-
return `${granularity.minutes}m`;
|
|
182
|
-
}
|
|
183
|
-
if ("hours" in granularity) {
|
|
184
|
-
return `${granularity.hours}h`;
|
|
185
|
-
}
|
|
186
|
-
return `${granularity.days}d`;
|
|
187
|
-
}
|
|
188
183
|
function formatUnitLabel(unit) {
|
|
189
184
|
switch (normalizeUnit(unit)) {
|
|
190
185
|
case "milliseconds":
|
|
@@ -444,14 +439,6 @@ function computeGroupStats(points) {
|
|
|
444
439
|
};
|
|
445
440
|
}
|
|
446
441
|
var MAX_GROUP_VALUE_LENGTH = 60;
|
|
447
|
-
function ellipsizeMiddle(str, maxLength, useVisibleLength = false) {
|
|
448
|
-
const comparable = useVisibleLength ? (0, import_strip_ansi.default)(str) : str;
|
|
449
|
-
if (comparable.length <= maxLength)
|
|
450
|
-
return str;
|
|
451
|
-
const endLength = Math.floor((maxLength - 1) / 2);
|
|
452
|
-
const startLength = maxLength - 1 - endLength;
|
|
453
|
-
return `${comparable.slice(0, startLength)}\u2026${comparable.slice(comparable.length - endLength)}`;
|
|
454
|
-
}
|
|
455
442
|
function downsample(values, maxLen) {
|
|
456
443
|
if (maxLen <= 0) {
|
|
457
444
|
return [];
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
require_lib,
|
|
20
20
|
require_minimatch,
|
|
21
21
|
require_pluralize
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TBR2Q37Y.js";
|
|
23
23
|
import {
|
|
24
24
|
CantParseJSONFile,
|
|
25
25
|
cmd,
|
|
@@ -11117,6 +11117,12 @@ function getBuilderPins() {
|
|
|
11117
11117
|
function isBareSpec(parsed) {
|
|
11118
11118
|
return parsed.type === "tag" && parsed.rawSpec === "";
|
|
11119
11119
|
}
|
|
11120
|
+
function formatResolvedBuilders(builders) {
|
|
11121
|
+
return Array.from(
|
|
11122
|
+
builders.values(),
|
|
11123
|
+
(b) => b.pkgPath ? `${b.pkg.name}@${b.pkg.version}=${dirname(b.pkgPath)}` : `${b.pkg.name}=built-in`
|
|
11124
|
+
).join(",");
|
|
11125
|
+
}
|
|
11120
11126
|
function pinBuilderSpecs(specs) {
|
|
11121
11127
|
const pins = getBuilderPins();
|
|
11122
11128
|
const pinnedSpecs = /* @__PURE__ */ new Map();
|
|
@@ -12155,6 +12161,7 @@ export {
|
|
|
12155
12161
|
require_npa,
|
|
12156
12162
|
staticFiles,
|
|
12157
12163
|
require_mime_types,
|
|
12164
|
+
formatResolvedBuilders,
|
|
12158
12165
|
importBuilders,
|
|
12159
12166
|
getStaticServiceSchedules,
|
|
12160
12167
|
OUTPUT_DIR,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getLinkedProject,
|
|
12
12
|
getProjectByNameOrId,
|
|
13
13
|
getScope
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TBR2Q37Y.js";
|
|
15
15
|
import {
|
|
16
16
|
AGENT_REASON,
|
|
17
17
|
buildCommandWithGlobalFlags,
|
|
@@ -38,6 +38,9 @@ function emitAlertsScopeError(client, jsonOutput, code, message, agent) {
|
|
|
38
38
|
return outputError(client, jsonOutput, code, message);
|
|
39
39
|
}
|
|
40
40
|
async function resolveAlertsScope(client, opts) {
|
|
41
|
+
const command = opts.command ?? "alerts";
|
|
42
|
+
const projectCommand = `${command} --project <name_or_id>`;
|
|
43
|
+
const allCommand = `${command} --all`;
|
|
41
44
|
if (opts.all || opts.project) {
|
|
42
45
|
const { team } = await getScope(client);
|
|
43
46
|
if (!team) {
|
|
@@ -84,7 +87,7 @@ async function resolveAlertsScope(client, opts) {
|
|
|
84
87
|
{
|
|
85
88
|
command: buildCommandWithGlobalFlags(
|
|
86
89
|
client.argv,
|
|
87
|
-
|
|
90
|
+
projectCommand
|
|
88
91
|
),
|
|
89
92
|
when: "Retry with a project you can access (replace <name_or_id>)"
|
|
90
93
|
}
|
|
@@ -105,11 +108,8 @@ async function resolveAlertsScope(client, opts) {
|
|
|
105
108
|
reason: AGENT_REASON.NOT_FOUND,
|
|
106
109
|
next: [
|
|
107
110
|
{
|
|
108
|
-
command: buildCommandWithGlobalFlags(
|
|
109
|
-
|
|
110
|
-
"alerts rules ls"
|
|
111
|
-
),
|
|
112
|
-
when: "List rules in the current linked project or adjust --project"
|
|
111
|
+
command: buildCommandWithGlobalFlags(client.argv, projectCommand),
|
|
112
|
+
when: "Retry with a valid project (replace <name_or_id>)"
|
|
113
113
|
}
|
|
114
114
|
]
|
|
115
115
|
}
|
|
@@ -135,18 +135,12 @@ async function resolveAlertsScope(client, opts) {
|
|
|
135
135
|
when: "Link this directory to a Vercel project"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
command: buildCommandWithGlobalFlags(
|
|
139
|
-
|
|
140
|
-
"alerts rules ls --project <name_or_id>"
|
|
141
|
-
),
|
|
142
|
-
when: "List rules for a project without linking (replace <name_or_id>)"
|
|
138
|
+
command: buildCommandWithGlobalFlags(client.argv, projectCommand),
|
|
139
|
+
when: "Retry with an explicit project (replace <name_or_id>)"
|
|
143
140
|
},
|
|
144
141
|
{
|
|
145
|
-
command: buildCommandWithGlobalFlags(
|
|
146
|
-
|
|
147
|
-
"alerts rules ls --all"
|
|
148
|
-
),
|
|
149
|
-
when: "List team-wide rules without a linked project"
|
|
142
|
+
command: buildCommandWithGlobalFlags(client.argv, allCommand),
|
|
143
|
+
when: "Use team-wide scope without a linked project"
|
|
150
144
|
}
|
|
151
145
|
]
|
|
152
146
|
});
|
|
@@ -158,6 +152,5 @@ async function resolveAlertsScope(client, opts) {
|
|
|
158
152
|
}
|
|
159
153
|
|
|
160
154
|
export {
|
|
161
|
-
emitAlertsScopeError,
|
|
162
155
|
resolveAlertsScope
|
|
163
156
|
};
|