vercel 56.5.0 → 58.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-KNK5E2YT.js → add-7PPD4ZUJ.js} +2 -2
- package/dist/chunks/{add-6GRH6G2M.js → add-E4KH6P4A.js} +6 -5
- package/dist/chunks/{chunk-YS6EDZHB.js → chunk-2MJROFVC.js} +5 -1
- package/dist/chunks/chunk-3PGXYIKC.js +147 -0
- package/dist/chunks/chunk-5AJPMLDV.js +28 -0
- package/dist/chunks/{chunk-V5P25P7F.js → chunk-A3NYPUKZ.js} +7 -12
- package/dist/chunks/{chunk-JQG5EDRD.js → chunk-AZTV7WPZ.js} +1 -1
- package/dist/chunks/{chunk-3BHSS5E2.js → chunk-B2MTCHPO.js} +65 -210
- package/dist/chunks/{chunk-GAOAGU5K.js → chunk-BYQQLGCT.js} +1 -1
- package/dist/chunks/{chunk-ARKHETJP.js → chunk-DGFASMSE.js} +1 -1
- package/dist/chunks/{chunk-W346YNDN.js → chunk-DWMH5M4Q.js} +4 -1
- package/dist/chunks/{chunk-PRYNIKBZ.js → chunk-EA22NMFU.js} +1 -1
- package/dist/chunks/{chunk-26TEKOBZ.js → chunk-FB4UFWEC.js} +8 -1
- package/dist/chunks/chunk-FGDKMNEN.js +21 -0
- package/dist/chunks/{chunk-23U6FANO.js → chunk-FYR7WEUJ.js} +11 -18
- package/dist/chunks/chunk-GZLPFESR.js +48 -0
- package/dist/chunks/{chunk-STJJ3DFO.js → chunk-KCF6S3XF.js} +16 -1
- package/dist/chunks/{chunk-PPEQUJ7T.js → chunk-KGVT2RSG.js} +3 -3
- package/dist/chunks/{chunk-4MK452Y5.js → chunk-L4WYMJB3.js} +8 -8
- package/dist/chunks/{chunk-BM36UWE2.js → chunk-MDQJLTGN.js} +1 -1
- package/dist/chunks/{chunk-Z7NPYIZ6.js → chunk-NM43FFV6.js} +0 -8
- package/dist/chunks/chunk-OF2GNB42.js +53 -0
- package/dist/chunks/{chunk-YTFJGKRG.js → chunk-OQGN4TEC.js} +1 -1
- package/dist/chunks/chunk-PRWJUY5U.js +848 -0
- package/dist/chunks/{chunk-F5OMERHI.js → chunk-QZD5DKUR.js} +10 -23
- package/dist/chunks/{chunk-SWEPOMSA.js → chunk-R54DAHCL.js} +4 -3
- package/dist/chunks/{chunk-DOF6CJLL.js → chunk-RSCSALZH.js} +15 -839
- package/dist/chunks/{chunk-G4MTGCZ5.js → chunk-TEWJ7TIW.js} +1 -1
- package/dist/chunks/{chunk-TMK6RSYW.js → chunk-TPX7RZBM.js} +1433 -979
- package/dist/chunks/chunk-V4RMJKQP.js +36 -0
- package/dist/chunks/{chunk-DI3HR3K6.js → chunk-VUESC3YO.js} +1 -1
- package/dist/chunks/{chunk-IBP2XAUH.js → chunk-WANVKOVB.js} +39 -5
- package/dist/chunks/{chunk-X43U65TH.js → chunk-WDE2EDYX.js} +2 -2
- package/dist/chunks/{chunk-6RTK6BWX.js → chunk-YA3WQFLY.js} +1 -1
- package/dist/chunks/{chunk-EYICIM2K.js → chunk-YZMZCQP3.js} +4 -4
- package/dist/chunks/{chunk-CM3DLBDY.js → chunk-ZMVFTCQF.js} +1 -1
- package/dist/chunks/{compile-vercel-config-IFET4E6H.js → compile-vercel-config-G2IVBXEI.js} +1 -1
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/{delete-PXB5WRH7.js → delete-2EIVGM6P.js} +2 -2
- package/dist/chunks/{delete-X2MUMONI.js → delete-E6ZQNE5X.js} +2 -2
- package/dist/chunks/{disable-GBL3SHJL.js → disable-M3Q6BBB7.js} +2 -2
- package/dist/chunks/{discard-XVVSRGDR.js → discard-3R6ETBPS.js} +2 -2
- package/dist/chunks/{edit-EIHRP6XT.js → edit-7JUDPVXD.js} +3 -3
- package/dist/chunks/{edit-K5Y2BDJO.js → edit-ICVMGRRU.js} +2 -2
- package/dist/chunks/{enable-W7AMJWKH.js → enable-HLTA35QL.js} +2 -2
- package/dist/chunks/{export-N3AZ2KOO.js → export-E6XZUFW3.js} +2 -2
- package/dist/chunks/{image-DRTGVPVJ.js → image-SIRPPQZT.js} +3 -3
- package/dist/chunks/{inspect-DYXTX6P4.js → inspect-4FYBOOM5.js} +2 -2
- package/dist/chunks/{inspect-AAIVWSJI.js → inspect-65YX7L3O.js} +2 -2
- package/dist/chunks/inspect-6TQWDIBG.js +587 -0
- package/dist/chunks/{inspect-IPSAYR2C.js → inspect-NFOURIGN.js} +2 -2
- package/dist/chunks/{inspect-SLZLI6ZC.js → inspect-OEWWGAHZ.js} +3 -3
- package/dist/chunks/{list-IF2YW73F.js → list-27DCGMBI.js} +1 -1
- package/dist/chunks/{list-V7VTXVK4.js → list-APFMKZJO.js} +41 -54
- package/dist/chunks/{list-K2HLGUXV.js → list-XQCZVLES.js} +3 -3
- package/dist/chunks/{login-7C6HQEOG.js → login-FMU4CQOV.js} +2 -2
- package/dist/chunks/{ls-2NU353QP.js → ls-24BRCAZR.js} +2 -2
- package/dist/chunks/ls-3L6EN4YU.js +188 -0
- package/dist/chunks/{ls-NKECPPOR.js → ls-BFACWH6C.js} +2 -2
- package/dist/chunks/{ls-QQQHOJBE.js → ls-T5RGDBCV.js} +2 -2
- package/dist/chunks/{open-2FAPZA6V.js → open-AG3VYJZM.js} +2 -2
- package/dist/chunks/{publish-G7PB64LJ.js → publish-5OVCPS4J.js} +2 -2
- package/dist/chunks/{query-D4QBT4WR.js → query-QS4VKBXJ.js} +8 -8
- package/dist/chunks/{reorder-3Z7YIPAX.js → reorder-B5V2P7YM.js} +2 -2
- package/dist/chunks/{reply-7QQBXL5H.js → reply-JBLWE6RS.js} +2 -2
- package/dist/chunks/{resolve-UYKTDZEX.js → resolve-2I6XH2G3.js} +2 -2
- package/dist/chunks/{restore-Q2DR7SMW.js → restore-O63FZXCL.js} +2 -2
- package/dist/chunks/{rm-OCLUTM57.js → rm-HUED5R3Q.js} +6 -5
- package/dist/chunks/{rm-O4M4GFSK.js → rm-N7W3QYWZ.js} +2 -2
- package/dist/chunks/{rm-PCWMEHQ2.js → rm-P3NJSCMY.js} +2 -2
- package/dist/chunks/rule-inspect-M3QUSPU2.js +283 -0
- package/dist/chunks/{rules-LIH5FLPJ.js → rules-NSSWPJ2B.js} +7 -7
- package/dist/chunks/{schema-OFALTXXM.js → schema-G2PAXPVA.js} +6 -4
- package/dist/chunks/{tags-P4HIAI6D.js → tags-JFMO63D4.js} +2 -2
- package/dist/chunks/{update-E3ZQAFBS.js → update-VJCKD6YG.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 +23 -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 +1959 -1816
- package/dist/index.js +19 -20
- package/dist/vc.js +54 -18
- package/dist/version.mjs +1 -1
- package/package.json +35 -35
- 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,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
|
+
};
|
|
@@ -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`
|
|
@@ -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-TPX7RZBM.js";
|
|
50
50
|
import {
|
|
51
51
|
printError
|
|
52
52
|
} from "./chunk-SZXT3PDQ.js";
|
|
@@ -7,17 +7,15 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BYQQLGCT.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
writeToConfigFile
|
|
15
|
-
} from "./chunk-3BHSS5E2.js";
|
|
12
|
+
progress
|
|
13
|
+
} from "./chunk-B2MTCHPO.js";
|
|
16
14
|
import {
|
|
17
15
|
apiCommand,
|
|
18
16
|
listSubcommand3 as listSubcommand,
|
|
19
17
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WANVKOVB.js";
|
|
21
19
|
import {
|
|
22
20
|
require_semver
|
|
23
21
|
} from "./chunk-IB5L4LKZ.js";
|
|
@@ -25,8 +23,10 @@ import {
|
|
|
25
23
|
help
|
|
26
24
|
} from "./chunk-DMSLNAVH.js";
|
|
27
25
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
getGlobalPathConfig,
|
|
27
|
+
login,
|
|
28
|
+
writeToConfigFile
|
|
29
|
+
} from "./chunk-TPX7RZBM.js";
|
|
30
30
|
import {
|
|
31
31
|
TelemetryClient,
|
|
32
32
|
isNativeBinaryInstall
|
|
@@ -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,
|
|
@@ -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
|
+
};
|