vercel 56.5.0 → 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-6GRH6G2M.js → add-7M577U56.js} +6 -5
- package/dist/chunks/{add-KNK5E2YT.js → add-YRZTDNXX.js} +2 -2
- package/dist/chunks/{chunk-4MK452Y5.js → chunk-2EDWKVNP.js} +8 -8
- package/dist/chunks/{chunk-YS6EDZHB.js → chunk-2MJROFVC.js} +5 -1
- package/dist/chunks/{chunk-JQG5EDRD.js → chunk-3242RXCN.js} +1 -1
- package/dist/chunks/chunk-3PGXYIKC.js +147 -0
- package/dist/chunks/{chunk-3BHSS5E2.js → chunk-4PGF367U.js} +47 -210
- package/dist/chunks/{chunk-ARKHETJP.js → chunk-555WJSO5.js} +1 -1
- package/dist/chunks/chunk-5AJPMLDV.js +28 -0
- package/dist/chunks/{chunk-IBP2XAUH.js → chunk-A2TYQBX2.js} +17 -3
- package/dist/chunks/{chunk-V5P25P7F.js → chunk-A3NYPUKZ.js} +7 -12
- package/dist/chunks/{chunk-W346YNDN.js → chunk-DWMH5M4Q.js} +4 -1
- package/dist/chunks/{chunk-BM36UWE2.js → chunk-F5PQWDOC.js} +1 -1
- package/dist/chunks/{chunk-DOF6CJLL.js → chunk-F7X55TOY.js} +15 -839
- package/dist/chunks/chunk-FGDKMNEN.js +21 -0
- package/dist/chunks/{chunk-DI3HR3K6.js → chunk-GP5VCTEU.js} +1 -1
- package/dist/chunks/chunk-GZLPFESR.js +48 -0
- package/dist/chunks/{chunk-X43U65TH.js → chunk-HD7B425F.js} +2 -2
- package/dist/chunks/{chunk-CM3DLBDY.js → chunk-IOAZNR6Z.js} +1 -1
- package/dist/chunks/{chunk-STJJ3DFO.js → chunk-KCF6S3XF.js} +16 -1
- package/dist/chunks/{chunk-YTFJGKRG.js → chunk-LMHT3QR3.js} +1 -1
- package/dist/chunks/{chunk-SWEPOMSA.js → chunk-MAHINYBW.js} +4 -3
- package/dist/chunks/{chunk-G4MTGCZ5.js → chunk-MIFDRYTN.js} +1 -1
- package/dist/chunks/{chunk-PRYNIKBZ.js → chunk-NH43BFJ3.js} +1 -1
- package/dist/chunks/{chunk-Z7NPYIZ6.js → chunk-NM43FFV6.js} +0 -8
- package/dist/chunks/{chunk-PPEQUJ7T.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-26TEKOBZ.js → chunk-RAFH25WW.js} +8 -1
- package/dist/chunks/{chunk-GAOAGU5K.js → chunk-RYO6FJFB.js} +1 -1
- package/dist/chunks/{chunk-23U6FANO.js → chunk-T4NODP6Y.js} +11 -18
- package/dist/chunks/{chunk-TMK6RSYW.js → chunk-TBR2Q37Y.js} +1202 -947
- package/dist/chunks/chunk-V4RMJKQP.js +36 -0
- package/dist/chunks/{chunk-6RTK6BWX.js → chunk-YA3WQFLY.js} +1 -1
- package/dist/chunks/{chunk-EYICIM2K.js → chunk-YOZCJHLZ.js} +4 -4
- package/dist/chunks/{compile-vercel-config-IFET4E6H.js → compile-vercel-config-3OHO3TJA.js} +1 -1
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/{delete-X2MUMONI.js → delete-3DZOCWCC.js} +2 -2
- package/dist/chunks/{delete-PXB5WRH7.js → delete-VOSJLNEA.js} +2 -2
- package/dist/chunks/{disable-GBL3SHJL.js → disable-LQDEVRQF.js} +2 -2
- package/dist/chunks/{discard-XVVSRGDR.js → discard-RGV4JKXQ.js} +2 -2
- package/dist/chunks/{edit-EIHRP6XT.js → edit-SFIEOQ24.js} +3 -3
- package/dist/chunks/{edit-K5Y2BDJO.js → edit-UPZPI54L.js} +2 -2
- package/dist/chunks/{enable-W7AMJWKH.js → enable-6UVH35WC.js} +2 -2
- package/dist/chunks/{export-N3AZ2KOO.js → export-6CEG3CK7.js} +2 -2
- package/dist/chunks/{image-DRTGVPVJ.js → image-CQRCD2OE.js} +3 -3
- package/dist/chunks/{inspect-SLZLI6ZC.js → inspect-4ZAH3RFT.js} +3 -3
- package/dist/chunks/inspect-EXQBIAFF.js +587 -0
- package/dist/chunks/{inspect-AAIVWSJI.js → inspect-K5ZMQG7X.js} +2 -2
- package/dist/chunks/{inspect-DYXTX6P4.js → inspect-UM3LDRPV.js} +2 -2
- package/dist/chunks/{inspect-IPSAYR2C.js → inspect-ZFRY3X3H.js} +2 -2
- package/dist/chunks/{list-V7VTXVK4.js → list-4DRVM7Q4.js} +41 -54
- package/dist/chunks/{list-IF2YW73F.js → list-FJCBOCCA.js} +1 -1
- package/dist/chunks/{list-K2HLGUXV.js → list-KCUHD4OA.js} +3 -3
- package/dist/chunks/{login-7C6HQEOG.js → login-DFGYNU3K.js} +2 -2
- package/dist/chunks/{ls-QQQHOJBE.js → ls-34NCZKBE.js} +2 -2
- package/dist/chunks/{ls-NKECPPOR.js → ls-4QHHVXXD.js} +2 -2
- package/dist/chunks/{ls-2NU353QP.js → ls-CG6A7UXF.js} +2 -2
- package/dist/chunks/ls-RHEQ6YQB.js +188 -0
- package/dist/chunks/{open-2FAPZA6V.js → open-E3XADEMX.js} +2 -2
- package/dist/chunks/{publish-G7PB64LJ.js → publish-Z3AQRUCS.js} +2 -2
- package/dist/chunks/{query-D4QBT4WR.js → query-3EV66DO3.js} +8 -8
- package/dist/chunks/{reorder-3Z7YIPAX.js → reorder-VA5E5ZJT.js} +2 -2
- package/dist/chunks/{reply-7QQBXL5H.js → reply-SNSCNKAW.js} +2 -2
- package/dist/chunks/{resolve-UYKTDZEX.js → resolve-6ZX4RTXX.js} +2 -2
- package/dist/chunks/{restore-Q2DR7SMW.js → restore-NEHI5B5P.js} +2 -2
- package/dist/chunks/{rm-PCWMEHQ2.js → rm-22B22E47.js} +2 -2
- package/dist/chunks/{rm-O4M4GFSK.js → rm-E5ZVLAKO.js} +2 -2
- package/dist/chunks/{rm-OCLUTM57.js → rm-FR6KE744.js} +6 -5
- package/dist/chunks/rule-inspect-DMP2CKJQ.js +283 -0
- package/dist/chunks/{rules-LIH5FLPJ.js → rules-EYGXEI2Z.js} +7 -7
- package/dist/chunks/{schema-OFALTXXM.js → schema-2IIWOBSQ.js} +6 -4
- package/dist/chunks/{tags-P4HIAI6D.js → tags-ZDVYRHAY.js} +2 -2
- package/dist/chunks/{update-E3ZQAFBS.js → update-QH4DQMZV.js} +6 -5
- package/dist/commands/build/index.js +42 -10
- package/dist/commands/deploy/index.js +34 -24
- package/dist/commands/dev/index.js +10 -13
- package/dist/commands/env/index.js +8 -7
- package/dist/commands/link/index.js +8 -8
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +1836 -1796
- package/dist/index.js +19 -20
- package/dist/vc.js +54 -18
- package/dist/version.mjs +1 -1
- package/package.json +38 -38
- package/dist/chunks/chunk-GNV7547O.js +0 -86
- package/dist/chunks/inspect-5YUAEI3L.js +0 -351
- package/dist/chunks/ls-RH6Y4XBS.js +0 -113
- package/dist/chunks/rule-inspect-XJ47UEG7.js +0 -141
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
|
|
8
|
+
// src/util/openapi/column-label.ts
|
|
9
|
+
function humanizeIdentifier(raw) {
|
|
10
|
+
const s = raw.trim();
|
|
11
|
+
if (!s) {
|
|
12
|
+
return raw;
|
|
13
|
+
}
|
|
14
|
+
const withSpaces = s.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
|
|
15
|
+
const words = withSpaces.split(/[\s_-]+/).filter(Boolean);
|
|
16
|
+
return words.map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join(" ");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
humanizeIdentifier
|
|
21
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
require_format
|
|
9
|
+
} from "./chunk-PRWJUY5U.js";
|
|
10
|
+
import {
|
|
11
|
+
require_ms
|
|
12
|
+
} from "./chunk-GGP5R3FU.js";
|
|
13
|
+
import {
|
|
14
|
+
require_source
|
|
15
|
+
} from "./chunk-S7KYDPEM.js";
|
|
16
|
+
import {
|
|
17
|
+
__toESM
|
|
18
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
19
|
+
|
|
20
|
+
// src/util/format-date.ts
|
|
21
|
+
var import_ms = __toESM(require_ms(), 1);
|
|
22
|
+
var import_chalk = __toESM(require_source(), 1);
|
|
23
|
+
var import_format = __toESM(require_format(), 1);
|
|
24
|
+
function formatDate(dateStrOrNumber) {
|
|
25
|
+
if (!dateStrOrNumber) {
|
|
26
|
+
return import_chalk.default.gray("-");
|
|
27
|
+
}
|
|
28
|
+
const date = new Date(dateStrOrNumber);
|
|
29
|
+
const diff = date.getTime() - Date.now();
|
|
30
|
+
return diff < 0 ? `${(0, import_format.default)(date, "DD MMMM YYYY HH:mm:ss")} ${import_chalk.default.gray(
|
|
31
|
+
`[${(0, import_ms.default)(-diff)} ago]`
|
|
32
|
+
)}` : `${(0, import_format.default)(date, "DD MMMM YYYY HH:mm:ss")} ${import_chalk.default.gray(
|
|
33
|
+
`[in ${(0, import_ms.default)(diff)}]`
|
|
34
|
+
)}`;
|
|
35
|
+
}
|
|
36
|
+
function formatDateWithoutTime(dateStrOrNumber) {
|
|
37
|
+
if (!dateStrOrNumber) {
|
|
38
|
+
return import_chalk.default.gray("-");
|
|
39
|
+
}
|
|
40
|
+
const date = new Date(dateStrOrNumber);
|
|
41
|
+
const diff = date.getTime() - Date.now();
|
|
42
|
+
return diff < 0 ? `${(0, import_format.default)(date, "MMM DD YYYY")} ${import_chalk.default.gray(`[${(0, import_ms.default)(-diff)} ago]`)}` : `${(0, import_format.default)(date, "MMM DD YYYY")} ${import_chalk.default.gray(`[in ${(0, import_ms.default)(diff)}]`)}`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
formatDate,
|
|
47
|
+
formatDateWithoutTime
|
|
48
|
+
};
|
|
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setupAndLink
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NRNMT43R.js";
|
|
10
10
|
import {
|
|
11
11
|
detectExplicitScope,
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
param,
|
|
14
14
|
printProjectNotFoundError,
|
|
15
15
|
resolveProjectCwd
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TBR2Q37Y.js";
|
|
17
17
|
import {
|
|
18
18
|
buildCommandWithYes,
|
|
19
19
|
outputActionRequired
|
|
@@ -31,7 +31,18 @@ var rulesLsSubcommand = {
|
|
|
31
31
|
aliases: ["list"],
|
|
32
32
|
description: "List alert rules for the current scope",
|
|
33
33
|
arguments: [],
|
|
34
|
-
options: [
|
|
34
|
+
options: [
|
|
35
|
+
...scopeOptions,
|
|
36
|
+
{
|
|
37
|
+
name: "type",
|
|
38
|
+
shorthand: null,
|
|
39
|
+
type: [String],
|
|
40
|
+
argument: "TYPE",
|
|
41
|
+
deprecated: false,
|
|
42
|
+
description: "Filter by alert type. Repeatable and comma-separated (for example --type custom_alert)."
|
|
43
|
+
},
|
|
44
|
+
formatOption
|
|
45
|
+
],
|
|
35
46
|
examples: [
|
|
36
47
|
{
|
|
37
48
|
name: "List rules for the linked project",
|
|
@@ -41,6 +52,10 @@ var rulesLsSubcommand = {
|
|
|
41
52
|
name: "List team-wide rules",
|
|
42
53
|
value: `${packageName} alerts rules ls --all`
|
|
43
54
|
},
|
|
55
|
+
{
|
|
56
|
+
name: "List custom alert rules",
|
|
57
|
+
value: `${packageName} alerts rules ls --type custom_alert`
|
|
58
|
+
},
|
|
44
59
|
{
|
|
45
60
|
name: "JSON output",
|
|
46
61
|
value: `${packageName} alerts rules ls --format json`
|
|
@@ -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-T4NODP6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-UDWRZXIT.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/alerts/rules/parse-scope.ts
|
|
22
|
-
async function parseRulesFlagsAndScope(client, flags, jsonOutput) {
|
|
22
|
+
async function parseRulesFlagsAndScope(client, flags, jsonOutput, command = "alerts rules ls") {
|
|
23
23
|
const mutual = validateAllProjectMutualExclusivity(
|
|
24
24
|
flags["--all"],
|
|
25
25
|
flags["--project"]
|
|
@@ -48,7 +48,8 @@ async function parseRulesFlagsAndScope(client, flags, jsonOutput) {
|
|
|
48
48
|
return resolveAlertsScope(client, {
|
|
49
49
|
project: flags["--project"],
|
|
50
50
|
all: flags["--all"],
|
|
51
|
-
jsonOutput
|
|
51
|
+
jsonOutput,
|
|
52
|
+
command
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
|
|
@@ -8,13 +8,6 @@ import {
|
|
|
8
8
|
output_manager_default
|
|
9
9
|
} from "./chunk-OX7KI3LF.js";
|
|
10
10
|
|
|
11
|
-
// src/util/output/indent.ts
|
|
12
|
-
var indent_default = (input, level) => {
|
|
13
|
-
const fill = " ".repeat(level);
|
|
14
|
-
return `${fill}${input.replace(/\n/g, `
|
|
15
|
-
${fill}`)}`;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
11
|
// src/commands/metrics/output.ts
|
|
19
12
|
function getRollupColumnName(metric, aggregation) {
|
|
20
13
|
return `${metric}_${aggregation}`.replace(/[./]/g, "_");
|
|
@@ -107,7 +100,6 @@ Available values: ${err.allowedValues.join(", ")}
|
|
|
107
100
|
}
|
|
108
101
|
|
|
109
102
|
export {
|
|
110
|
-
indent_default,
|
|
111
103
|
getRollupColumnName,
|
|
112
104
|
getResolvedOrderMetadata,
|
|
113
105
|
formatQueryJson,
|
|
@@ -5,10 +5,9 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
getLocalPathConfig,
|
|
9
8
|
isPromptBackError,
|
|
10
9
|
isPromptCanceledError
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V4RMJKQP.js";
|
|
12
11
|
import {
|
|
13
12
|
table
|
|
14
13
|
} from "./chunk-NZRWTCRM.js";
|
|
@@ -26,6 +25,7 @@ import {
|
|
|
26
25
|
findRepoRoot,
|
|
27
26
|
findSourceVercelConfigFile,
|
|
28
27
|
getLinkedProject,
|
|
28
|
+
getLocalPathConfig,
|
|
29
29
|
getProjectByNameOrId,
|
|
30
30
|
getServicesConfigWriteBlocker,
|
|
31
31
|
getVercelDirectory,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
selectAndParseRemoteUrl,
|
|
47
47
|
selectOrg,
|
|
48
48
|
writeServicesConfig
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-TBR2Q37Y.js";
|
|
50
50
|
import {
|
|
51
51
|
printError
|
|
52
52
|
} from "./chunk-SZXT3PDQ.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
require_strip_ansi
|
|
9
|
+
} from "./chunk-SZXT3PDQ.js";
|
|
10
|
+
import {
|
|
11
|
+
__toESM
|
|
12
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
13
|
+
|
|
14
|
+
// src/util/output/truncate.ts
|
|
15
|
+
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
16
|
+
function truncateEnd(value, maxLength, opts = {}) {
|
|
17
|
+
const omission = opts.omission ?? "...";
|
|
18
|
+
if (value.length <= maxLength) {
|
|
19
|
+
return value;
|
|
20
|
+
}
|
|
21
|
+
if (maxLength <= omission.length) {
|
|
22
|
+
return value.slice(0, maxLength);
|
|
23
|
+
}
|
|
24
|
+
return `${value.slice(0, maxLength - omission.length)}${omission}`;
|
|
25
|
+
}
|
|
26
|
+
function truncateMiddle(value, maxLength, opts = {}) {
|
|
27
|
+
const omission = opts.omission ?? "...";
|
|
28
|
+
const comparable = opts.useVisibleLength ? (0, import_strip_ansi.default)(value) : value;
|
|
29
|
+
if (comparable.length <= maxLength) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
if (maxLength <= omission.length) {
|
|
33
|
+
return comparable.slice(0, maxLength);
|
|
34
|
+
}
|
|
35
|
+
const available = maxLength - omission.length;
|
|
36
|
+
const start = Math.ceil(available / 2);
|
|
37
|
+
const end = Math.floor(available / 2);
|
|
38
|
+
return `${comparable.slice(0, start)}${omission}${comparable.slice(
|
|
39
|
+
comparable.length - end
|
|
40
|
+
)}`;
|
|
41
|
+
}
|
|
42
|
+
function ellipsizeMiddle(value, maxLength, useVisibleLength = false) {
|
|
43
|
+
return truncateMiddle(value, maxLength, {
|
|
44
|
+
omission: "\u2026",
|
|
45
|
+
useVisibleLength
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
truncateEnd,
|
|
51
|
+
truncateMiddle,
|
|
52
|
+
ellipsizeMiddle
|
|
53
|
+
};
|