vercel 51.8.0 → 52.2.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-6TAGTCM2.js → add-TH62Y34V.js} +8 -8
- package/dist/chunks/{chunk-TAOVG4PS.js → chunk-4Q5VS23S.js} +3 -3
- package/dist/chunks/{chunk-VGWGLBUC.js → chunk-5EDL2IVB.js} +2 -2
- package/dist/chunks/{chunk-Y3HAJQCS.js → chunk-5EZVRZOJ.js} +88 -40
- package/dist/chunks/{chunk-BHDZCUTT.js → chunk-77JGNI4Z.js} +2 -2
- package/dist/chunks/{chunk-N5IS4YW4.js → chunk-7L7NSLYK.js} +22 -4
- package/dist/chunks/{chunk-GE6G37P4.js → chunk-ABDTA3V2.js} +1 -1
- package/dist/chunks/{chunk-R4ZPBOD7.js → chunk-BUPMO37Q.js} +86 -16
- package/dist/chunks/{chunk-G6RXZLQ2.js → chunk-DFUTSURK.js} +2 -2
- package/dist/chunks/{chunk-DQPDIHII.js → chunk-EVDPX5BO.js} +2 -2
- package/dist/chunks/{chunk-UP2QQYRS.js → chunk-FPTKAORS.js} +4 -4
- package/dist/chunks/{chunk-IHOJDWAH.js → chunk-FUUQ2WSC.js} +6 -6
- package/dist/chunks/{chunk-KUY7VLTK.js → chunk-FUYNVB23.js} +3 -3
- package/dist/chunks/{chunk-H2PHTCJL.js → chunk-H2O3DQDC.js} +5 -5
- package/dist/chunks/{chunk-CRZM5WM2.js → chunk-HMM7V4AU.js} +2 -2
- package/dist/chunks/{chunk-KM6BIRA3.js → chunk-I5OH27IT.js} +4 -4
- package/dist/chunks/{chunk-XKHLPA6V.js → chunk-IABMY4Q3.js} +22 -20
- package/dist/chunks/{chunk-GLDQ23LD.js → chunk-IEKDY4FP.js} +1 -1
- package/dist/chunks/{chunk-4PQA6H63.js → chunk-JCLLQ23G.js} +1 -1
- package/dist/chunks/{chunk-RFMC2QXQ.js → chunk-JNOMOD7R.js} +15 -11
- package/dist/chunks/{chunk-UWKTUK3W.js → chunk-LN5ZMLBU.js} +2 -2
- package/dist/chunks/{chunk-SKXUP3WW.js → chunk-LSPPTDRH.js} +2 -2
- package/dist/chunks/{chunk-N45K6NXC.js → chunk-MSJX3VKI.js} +1 -1
- package/dist/chunks/{chunk-BJQTGP42.js → chunk-NCUOSZ6X.js} +2 -2
- package/dist/chunks/{chunk-6WHQFFN2.js → chunk-NJYOE4D7.js} +1 -1
- package/dist/chunks/{chunk-CUCRUPRY.js → chunk-O7R67TAG.js} +2 -2
- package/dist/chunks/{chunk-HRVQZZ3Q.js → chunk-ODASAX4M.js} +1 -1
- package/dist/chunks/{chunk-UBOSX7RM.js → chunk-OHOYN7R2.js} +3 -3
- package/dist/chunks/{chunk-BNVEZBEW.js → chunk-OVFHCZBS.js} +7 -7
- package/dist/chunks/{chunk-DVQ4SIWF.js → chunk-P3H4MP5H.js} +2 -2
- package/dist/chunks/{chunk-LDXYSGPZ.js → chunk-QPPVRYOB.js} +2 -2
- package/dist/chunks/{chunk-5VQMJCHT.js → chunk-QTX36APP.js} +4 -4
- package/dist/chunks/{chunk-AQ4L3FS4.js → chunk-WCMV6TSF.js} +1 -1
- package/dist/chunks/{chunk-ECRBC4HL.js → chunk-XZ7CVBQ4.js} +26 -0
- package/dist/chunks/{chunk-U7MQBM3F.js → chunk-ZI2C6YH2.js} +25 -8
- package/dist/chunks/{chunk-45TDB64X.js → chunk-ZJKFUXSF.js} +2 -2
- package/dist/chunks/{chunk-BQI2CW7A.js → chunk-ZZDXEXJ5.js} +9 -9
- package/dist/chunks/{compile-vercel-config-3LQ66C4J.js → compile-vercel-config-H5YVD5ZD.js} +4 -4
- package/dist/chunks/{delete-57Y647IJ.js → delete-WW5B2IIN.js} +6 -6
- package/dist/chunks/{disable-E7QAIMBG.js → disable-WSV2JYK6.js} +6 -6
- package/dist/chunks/{discard-6JNSEHUD.js → discard-BTIMKAXZ.js} +6 -6
- package/dist/chunks/{edit-XKOVDTOO.js → edit-LOQJITTM.js} +7 -7
- package/dist/chunks/{enable-HXRMVTBB.js → enable-XMWWLBL7.js} +6 -6
- package/dist/chunks/{export-MRADQNKX.js → export-P2OSIM3L.js} +6 -6
- package/dist/chunks/{inspect-AOOSX4VO.js → inspect-5NKOJ64V.js} +8 -8
- package/dist/chunks/{list-YIDM3OOG.js → list-OLUANKMJ.js} +9 -9
- package/dist/chunks/{list-LQ4BDCK7.js → list-ZSRD6M3H.js} +6 -6
- package/dist/chunks/{ls-7GZP6WNF.js → ls-3YMXPZ7A.js} +8 -8
- package/dist/chunks/{publish-VPLDS2W7.js → publish-T2HPYN5D.js} +6 -6
- package/dist/chunks/{query-SRFELIAP.js → query-ZKNQWF5L.js} +8 -8
- package/dist/chunks/{reorder-UWAXWRXX.js → reorder-WQA5LQ7X.js} +6 -6
- package/dist/chunks/{restore-YHQNMAGI.js → restore-QTREUYWW.js} +6 -6
- package/dist/chunks/{rm-HA373E4I.js → rm-4JKXZFP3.js} +8 -8
- package/dist/chunks/{rule-inspect-WMR7SVJY.js → rule-inspect-3PUS2RKH.js} +8 -8
- package/dist/chunks/{rules-CPRD5HRH.js → rules-GBXWDR3P.js} +8 -8
- package/dist/chunks/{schema-AGVIOWAU.js → schema-TXE5TXMY.js} +9 -9
- package/dist/chunks/{types-QNN5CDCB.js → types-FAFL42RV.js} +4 -4
- package/dist/chunks/{update-K5GTSDIT.js → update-57KTLPIK.js} +8 -8
- package/dist/commands/build/index.js +15 -15
- package/dist/commands/deploy/index.js +24 -24
- package/dist/commands/dev/index.js +14 -14
- package/dist/commands/env/index.js +99 -20
- package/dist/commands/link/index.js +18 -18
- package/dist/commands/list/index.js +10 -10
- package/dist/commands-bulk.js +335 -122
- package/dist/index.js +26 -45
- package/dist/version.mjs +1 -1
- package/package.json +22 -21
|
@@ -7,14 +7,14 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
VERCEL_DIR,
|
|
9
9
|
isVercelTomlEnabled
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
11
11
|
import {
|
|
12
12
|
getArgs
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JNOMOD7R.js";
|
|
14
14
|
import {
|
|
15
15
|
ConflictingConfigFiles,
|
|
16
16
|
InvalidLocalConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
18
18
|
|
|
19
19
|
// src/util/config/local-path.ts
|
|
20
20
|
import path from "path";
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getLocalPathConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FUYNVB23.js";
|
|
10
10
|
import {
|
|
11
11
|
table
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ABDTA3V2.js";
|
|
13
13
|
import {
|
|
14
14
|
VERCEL_DIR_PROJECT,
|
|
15
15
|
VERCEL_DIR_README,
|
|
@@ -37,15 +37,15 @@ import {
|
|
|
37
37
|
selectAndParseRemoteUrl,
|
|
38
38
|
selectOrg,
|
|
39
39
|
writeServicesConfig
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
41
41
|
import {
|
|
42
42
|
printError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-JNOMOD7R.js";
|
|
44
44
|
import {
|
|
45
45
|
CantParseJSONFile,
|
|
46
46
|
ProjectNotFound,
|
|
47
47
|
isAPIError
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
49
49
|
import {
|
|
50
50
|
output_manager_default
|
|
51
51
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
yesOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JNOMOD7R.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/routes/command.ts
|
|
15
15
|
var listSubcommand = {
|
|
@@ -10,21 +10,21 @@ import {
|
|
|
10
10
|
} from "./chunk-E3NE4SKN.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
14
14
|
import {
|
|
15
15
|
buildCommandWithYes,
|
|
16
16
|
outputAgentError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IABMY4Q3.js";
|
|
18
18
|
import {
|
|
19
19
|
getFlagsSpecification,
|
|
20
20
|
getGlobalFlagsOnlyFromArgs,
|
|
21
21
|
parseArguments,
|
|
22
22
|
printError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JNOMOD7R.js";
|
|
24
24
|
import {
|
|
25
25
|
getCommandName,
|
|
26
26
|
getCommandNamePlain
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
28
28
|
import {
|
|
29
29
|
output_manager_default
|
|
30
30
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
LinkRequiredError,
|
|
9
9
|
ProjectNotFound,
|
|
10
10
|
isAPIError,
|
|
11
|
-
packageName
|
|
12
|
-
|
|
11
|
+
packageName,
|
|
12
|
+
stripSensitiveAuthArgs
|
|
13
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
13
14
|
import {
|
|
14
15
|
require_dist
|
|
15
16
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -20,10 +21,10 @@ import {
|
|
|
20
21
|
// src/util/agent-output.ts
|
|
21
22
|
var import_error_utils = __toESM(require_dist(), 1);
|
|
22
23
|
function buildCommandWithYes(argv, pkgName = packageName) {
|
|
23
|
-
const args = argv.slice(2);
|
|
24
|
+
const args = stripSensitiveAuthArgs(argv.slice(2));
|
|
24
25
|
const hasYes = args.some((a) => a === "--yes" || a === "-y");
|
|
25
|
-
const out = hasYes ?
|
|
26
|
-
return `${pkgName} ${out.join(" ")}
|
|
26
|
+
const out = hasYes ? args : [...args, "--yes"];
|
|
27
|
+
return `${pkgName} ${out.join(" ")}`.trim();
|
|
27
28
|
}
|
|
28
29
|
var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
|
|
29
30
|
"--cwd",
|
|
@@ -34,12 +35,12 @@ var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
|
|
|
34
35
|
"--scope",
|
|
35
36
|
"--team",
|
|
36
37
|
"-S",
|
|
37
|
-
"-T"
|
|
38
|
-
|
|
38
|
+
"-T"
|
|
39
|
+
// --token/-t are intentionally excluded and stripped via stripSensitiveAuthArgs.
|
|
39
40
|
]);
|
|
40
41
|
var BOOLEAN_GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set(["--yes", "-y", "--non-interactive"]);
|
|
41
42
|
function getGlobalFlagsFromArgv(argv) {
|
|
42
|
-
const args = argv.slice(2);
|
|
43
|
+
const args = stripSensitiveAuthArgs(argv.slice(2));
|
|
43
44
|
const out = [];
|
|
44
45
|
for (let i = 0; i < args.length; i++) {
|
|
45
46
|
const arg = args[i];
|
|
@@ -56,12 +57,13 @@ function getGlobalFlagsFromArgv(argv) {
|
|
|
56
57
|
return out;
|
|
57
58
|
}
|
|
58
59
|
function omitGlobalFlagsFromArgs(args) {
|
|
60
|
+
const safeArgs = stripSensitiveAuthArgs(args);
|
|
59
61
|
const out = [];
|
|
60
|
-
for (let i = 0; i <
|
|
61
|
-
const arg =
|
|
62
|
+
for (let i = 0; i < safeArgs.length; i++) {
|
|
63
|
+
const arg = safeArgs[i];
|
|
62
64
|
const name = arg.startsWith("--") ? arg.split("=")[0] : arg;
|
|
63
65
|
if (GLOBAL_FLAG_NAMES.has(name)) {
|
|
64
|
-
const skipSeparateValue = !BOOLEAN_GLOBAL_FLAG_NAMES.has(name) && !arg.includes("=") && i + 1 <
|
|
66
|
+
const skipSeparateValue = !BOOLEAN_GLOBAL_FLAG_NAMES.has(name) && !arg.includes("=") && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-");
|
|
65
67
|
if (skipSeparateValue) {
|
|
66
68
|
i++;
|
|
67
69
|
}
|
|
@@ -110,14 +112,14 @@ function getPreservedArgsForEnvAdd(argv) {
|
|
|
110
112
|
const args = argv.slice(2);
|
|
111
113
|
const addIdx = args.indexOf("add");
|
|
112
114
|
if (addIdx === -1 || args[addIdx - 1] !== "env")
|
|
113
|
-
return args;
|
|
115
|
+
return stripSensitiveAuthArgs(args);
|
|
114
116
|
let i = addIdx + 1;
|
|
115
117
|
let positionals = 0;
|
|
116
118
|
while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
|
|
117
119
|
positionals++;
|
|
118
120
|
i++;
|
|
119
121
|
}
|
|
120
|
-
return args.slice(i);
|
|
122
|
+
return stripSensitiveAuthArgs(args.slice(i));
|
|
121
123
|
}
|
|
122
124
|
function buildEnvAddCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
|
|
123
125
|
let preserved = getPreservedArgsForEnvAdd(argv);
|
|
@@ -146,24 +148,24 @@ function getPreservedArgsForEnvPull(argv) {
|
|
|
146
148
|
const args = argv.slice(2);
|
|
147
149
|
const pullIdx = args.indexOf("pull");
|
|
148
150
|
if (pullIdx === -1 || args[pullIdx - 1] !== "env")
|
|
149
|
-
return args;
|
|
151
|
+
return stripSensitiveAuthArgs(args);
|
|
150
152
|
let i = pullIdx + 1;
|
|
151
153
|
if (i < args.length && !args[i].startsWith("-"))
|
|
152
154
|
i++;
|
|
153
|
-
return args.slice(i);
|
|
155
|
+
return stripSensitiveAuthArgs(args.slice(i));
|
|
154
156
|
}
|
|
155
157
|
function getPreservedArgsForEnvRm(argv) {
|
|
156
158
|
const args = argv.slice(2);
|
|
157
159
|
const rmIdx = args.indexOf("rm");
|
|
158
160
|
if (rmIdx === -1 || args[rmIdx - 1] !== "env")
|
|
159
|
-
return args;
|
|
161
|
+
return stripSensitiveAuthArgs(args);
|
|
160
162
|
let i = rmIdx + 1;
|
|
161
163
|
let positionals = 0;
|
|
162
164
|
while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
|
|
163
165
|
positionals++;
|
|
164
166
|
i++;
|
|
165
167
|
}
|
|
166
|
-
return args.slice(i);
|
|
168
|
+
return stripSensitiveAuthArgs(args.slice(i));
|
|
167
169
|
}
|
|
168
170
|
function buildEnvRmCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
|
|
169
171
|
let preserved = getPreservedArgsForEnvRm(argv);
|
|
@@ -179,14 +181,14 @@ function getPreservedArgsForEnvUpdate(argv) {
|
|
|
179
181
|
const args = argv.slice(2);
|
|
180
182
|
const updateIdx = args.indexOf("update");
|
|
181
183
|
if (updateIdx === -1 || args[updateIdx - 1] !== "env")
|
|
182
|
-
return args;
|
|
184
|
+
return stripSensitiveAuthArgs(args);
|
|
183
185
|
let i = updateIdx + 1;
|
|
184
186
|
let positionals = 0;
|
|
185
187
|
while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
|
|
186
188
|
positionals++;
|
|
187
189
|
i++;
|
|
188
190
|
}
|
|
189
|
-
return args.slice(i);
|
|
191
|
+
return stripSensitiveAuthArgs(args.slice(i));
|
|
190
192
|
}
|
|
191
193
|
function buildEnvUpdateCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
|
|
192
194
|
let preserved = getPreservedArgsForEnvUpdate(argv);
|
|
@@ -212,7 +214,7 @@ function buildEnvUpdateCommandWithPreservedArgs(argv, commandTemplate, pkgName =
|
|
|
212
214
|
return `${base} ${preserved.join(" ")}`;
|
|
213
215
|
}
|
|
214
216
|
function buildCommandWithScope(argv, scopeSlug, pkgName = packageName) {
|
|
215
|
-
const args = argv.slice(2);
|
|
217
|
+
const args = stripSensitiveAuthArgs(argv.slice(2));
|
|
216
218
|
const out = [];
|
|
217
219
|
for (let i = 0; i < args.length; i++) {
|
|
218
220
|
if (args[i] === "--scope" || args[i] === "--team" || args[i] === "-S" || args[i] === "-T") {
|
|
@@ -7,9 +7,11 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getCommandName,
|
|
9
9
|
getCommandNamePlain,
|
|
10
|
+
normalizeFlagName,
|
|
10
11
|
parseRetryAfterHeaderAsMillis,
|
|
11
|
-
require_bytes
|
|
12
|
-
|
|
12
|
+
require_bytes,
|
|
13
|
+
stripSensitiveAuthArgs
|
|
14
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
13
15
|
import {
|
|
14
16
|
output_manager_default
|
|
15
17
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -339,7 +341,7 @@ var GLOBAL_CLI_FLAG_NAMES = (() => {
|
|
|
339
341
|
return set;
|
|
340
342
|
})();
|
|
341
343
|
function globalCliFlagTakesValue(flagName) {
|
|
342
|
-
const normalized =
|
|
344
|
+
const normalized = normalizeFlagName(flagName);
|
|
343
345
|
for (const opt of globalCommandOptions) {
|
|
344
346
|
if (`--${opt.name}` === normalized) {
|
|
345
347
|
return opt.type === String;
|
|
@@ -362,23 +364,24 @@ var SUBCOMMAND_FLAG_TAKES_VALUE = /* @__PURE__ */ new Set([
|
|
|
362
364
|
"--per-page"
|
|
363
365
|
]);
|
|
364
366
|
function suggestionFlagTakesSeparateValue(flagName) {
|
|
365
|
-
const name =
|
|
367
|
+
const name = normalizeFlagName(flagName);
|
|
366
368
|
if (globalCliFlagTakesValue(name))
|
|
367
369
|
return true;
|
|
368
370
|
return SUBCOMMAND_FLAG_TAKES_VALUE.has(name);
|
|
369
371
|
}
|
|
370
372
|
function getSameSubcommandSuggestionFlags(args) {
|
|
373
|
+
const safeArgs = stripSensitiveAuthArgs(args);
|
|
371
374
|
const out = [];
|
|
372
|
-
for (let i = 0; i <
|
|
373
|
-
const a =
|
|
375
|
+
for (let i = 0; i < safeArgs.length; i++) {
|
|
376
|
+
const a = safeArgs[i];
|
|
374
377
|
if (!a.startsWith("-"))
|
|
375
378
|
continue;
|
|
376
379
|
out.push(a);
|
|
377
380
|
if (a.includes("="))
|
|
378
381
|
continue;
|
|
379
382
|
const name = a;
|
|
380
|
-
if (suggestionFlagTakesSeparateValue(name) && i + 1 <
|
|
381
|
-
out.push(
|
|
383
|
+
if (suggestionFlagTakesSeparateValue(name) && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-")) {
|
|
384
|
+
out.push(safeArgs[++i]);
|
|
382
385
|
}
|
|
383
386
|
}
|
|
384
387
|
return out;
|
|
@@ -451,9 +454,10 @@ for (const opt of globalCommandOptions) {
|
|
|
451
454
|
}
|
|
452
455
|
}
|
|
453
456
|
function getGlobalFlagsOnlyFromArgs(args) {
|
|
457
|
+
const safeArgs = stripSensitiveAuthArgs(args);
|
|
454
458
|
const out = [];
|
|
455
|
-
for (let i = 0; i <
|
|
456
|
-
const a =
|
|
459
|
+
for (let i = 0; i < safeArgs.length; i++) {
|
|
460
|
+
const a = safeArgs[i];
|
|
457
461
|
let opt;
|
|
458
462
|
if (a.startsWith("--") && a.includes("=")) {
|
|
459
463
|
const name = a.slice(2).split("=")[0];
|
|
@@ -467,7 +471,7 @@ function getGlobalFlagsOnlyFromArgs(args) {
|
|
|
467
471
|
continue;
|
|
468
472
|
out.push(a);
|
|
469
473
|
if (opt.type === String && !a.includes("=")) {
|
|
470
|
-
const next =
|
|
474
|
+
const next = safeArgs[i + 1];
|
|
471
475
|
if (next && !next.startsWith("-")) {
|
|
472
476
|
out.push(next);
|
|
473
477
|
i++;
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
formatOption,
|
|
9
9
|
limitOption,
|
|
10
10
|
nextOption
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JNOMOD7R.js";
|
|
12
12
|
import {
|
|
13
13
|
packageName
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/activity/command.ts
|
|
17
17
|
var typesSubcommand = {
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./chunk-TZ2YI2VH.js";
|
|
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
confirmOption,
|
|
9
9
|
yesOption
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JNOMOD7R.js";
|
|
11
11
|
import {
|
|
12
12
|
packageName
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/dev/command.ts
|
|
16
16
|
var devCommand = {
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
getTeamById,
|
|
12
12
|
getUser,
|
|
13
13
|
getVercelDirectory
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
15
15
|
import {
|
|
16
16
|
TeamDeleted
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
18
18
|
import {
|
|
19
19
|
output_manager_default
|
|
20
20
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
getEnvTargetPlaceholder,
|
|
12
12
|
global_path_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
14
14
|
import {
|
|
15
15
|
yesOption
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JNOMOD7R.js";
|
|
17
17
|
import {
|
|
18
18
|
packageName
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
20
20
|
import {
|
|
21
21
|
output_manager_default
|
|
22
22
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -6,21 +6,21 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LSPPTDRH.js";
|
|
10
10
|
import {
|
|
11
11
|
login
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5EZVRZOJ.js";
|
|
13
13
|
import {
|
|
14
14
|
apiCommand,
|
|
15
15
|
listSubcommand2 as listSubcommand,
|
|
16
16
|
loginCommand
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BUPMO37Q.js";
|
|
18
18
|
import {
|
|
19
19
|
help
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QPPVRYOB.js";
|
|
21
21
|
import {
|
|
22
22
|
global_path_default
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
24
24
|
import {
|
|
25
25
|
TelemetryClient
|
|
26
26
|
} from "./chunk-U3WLEFHU.js";
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
parseArguments,
|
|
33
33
|
printError,
|
|
34
34
|
require_strip_ansi
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JNOMOD7R.js";
|
|
36
36
|
import {
|
|
37
37
|
packageName
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
39
39
|
import {
|
|
40
40
|
output_manager_default
|
|
41
41
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
formatOption,
|
|
9
9
|
yesOption
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JNOMOD7R.js";
|
|
11
11
|
import {
|
|
12
12
|
packageName
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/alerts/rules/command.ts
|
|
16
16
|
var scopeOptions = [
|
|
@@ -7,13 +7,13 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
noBorderChars,
|
|
9
9
|
require_cli_table3
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ABDTA3V2.js";
|
|
11
11
|
import {
|
|
12
12
|
require_dist
|
|
13
13
|
} from "./chunk-U3WLEFHU.js";
|
|
14
14
|
import {
|
|
15
15
|
globalCommandOptions
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JNOMOD7R.js";
|
|
17
17
|
import {
|
|
18
18
|
require_source
|
|
19
19
|
} from "./chunk-S7KYDPEM.js";
|
|
@@ -6,20 +6,20 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setupAndLink
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-H2O3DQDC.js";
|
|
10
10
|
import {
|
|
11
11
|
getLinkedProject,
|
|
12
12
|
param,
|
|
13
13
|
resolveProjectCwd
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
15
15
|
import {
|
|
16
16
|
buildCommandWithYes,
|
|
17
17
|
outputActionRequired
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IABMY4Q3.js";
|
|
19
19
|
import {
|
|
20
20
|
getCommandName,
|
|
21
21
|
getCommandNamePlain
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
23
23
|
import {
|
|
24
24
|
output_manager_default
|
|
25
25
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -1061,6 +1061,30 @@ var InvalidLocalConfig = class extends NowError {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
};
|
|
1063
1063
|
|
|
1064
|
+
// src/util/redact-args.ts
|
|
1065
|
+
var SENSITIVE_AUTH_FLAG_NAMES = /* @__PURE__ */ new Set(["--token", "-t"]);
|
|
1066
|
+
function normalizeFlagName(flag) {
|
|
1067
|
+
if (flag.includes("=")) {
|
|
1068
|
+
return flag.slice(0, flag.indexOf("="));
|
|
1069
|
+
}
|
|
1070
|
+
return flag;
|
|
1071
|
+
}
|
|
1072
|
+
function stripSensitiveAuthArgs(args) {
|
|
1073
|
+
const out = [];
|
|
1074
|
+
for (let i = 0; i < args.length; i++) {
|
|
1075
|
+
const arg = args[i];
|
|
1076
|
+
const name = normalizeFlagName(arg);
|
|
1077
|
+
if (SENSITIVE_AUTH_FLAG_NAMES.has(name)) {
|
|
1078
|
+
if (!arg.includes("=") && i + 1 < args.length) {
|
|
1079
|
+
i++;
|
|
1080
|
+
}
|
|
1081
|
+
continue;
|
|
1082
|
+
}
|
|
1083
|
+
out.push(arg);
|
|
1084
|
+
}
|
|
1085
|
+
return out;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1064
1088
|
export {
|
|
1065
1089
|
pkg_default,
|
|
1066
1090
|
pkg_exports,
|
|
@@ -1071,6 +1095,8 @@ export {
|
|
|
1071
1095
|
getTitleName,
|
|
1072
1096
|
getCommandName,
|
|
1073
1097
|
getCommandNamePlain,
|
|
1098
|
+
normalizeFlagName,
|
|
1099
|
+
stripSensitiveAuthArgs,
|
|
1074
1100
|
require_bytes,
|
|
1075
1101
|
NowError,
|
|
1076
1102
|
code,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getPreservedArgsForEnvPull,
|
|
15
15
|
outputActionRequired,
|
|
16
16
|
outputAgentError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IABMY4Q3.js";
|
|
18
18
|
import {
|
|
19
19
|
require_ms,
|
|
20
20
|
stamp_default
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
require_string_width,
|
|
30
30
|
require_strip_ansi,
|
|
31
31
|
yesOption
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JNOMOD7R.js";
|
|
33
33
|
import {
|
|
34
34
|
APIError,
|
|
35
35
|
CantParseJSONFile,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
isAPIError,
|
|
44
44
|
packageName,
|
|
45
45
|
require_lib
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
47
47
|
import {
|
|
48
48
|
emoji,
|
|
49
49
|
eraseLines,
|
|
@@ -25207,7 +25207,19 @@ var require_detect_builders = __commonJS({
|
|
|
25207
25207
|
var import_build_utils5 = __require("@vercel/build-utils");
|
|
25208
25208
|
var import_get_services_builders = require_get_services_builders();
|
|
25209
25209
|
var REGEX_MIDDLEWARE_FILES = "middleware.[jt]s";
|
|
25210
|
-
var REGEX_VERCEL_PLATFORM_FILES =
|
|
25210
|
+
var REGEX_VERCEL_PLATFORM_FILES = [
|
|
25211
|
+
"api/**",
|
|
25212
|
+
"node_modules/**",
|
|
25213
|
+
REGEX_MIDDLEWARE_FILES,
|
|
25214
|
+
"package.json",
|
|
25215
|
+
"package-lock.json",
|
|
25216
|
+
"yarn.lock",
|
|
25217
|
+
"pnpm-lock.yaml",
|
|
25218
|
+
"bun.lock",
|
|
25219
|
+
"bun.lockb",
|
|
25220
|
+
".gitignore",
|
|
25221
|
+
"README.md"
|
|
25222
|
+
].join(",");
|
|
25211
25223
|
var REGEX_NON_VERCEL_PLATFORM_FILES2 = `!{${REGEX_VERCEL_PLATFORM_FILES}}`;
|
|
25212
25224
|
var slugToFramework = new Map(
|
|
25213
25225
|
import_frameworks2.frameworkList.map((f) => [f.slug, f])
|
|
@@ -39137,7 +39149,7 @@ var require_package = __commonJS({
|
|
|
39137
39149
|
"../client/package.json"(exports, module) {
|
|
39138
39150
|
module.exports = {
|
|
39139
39151
|
name: "@vercel/client",
|
|
39140
|
-
version: "17.3.
|
|
39152
|
+
version: "17.3.10",
|
|
39141
39153
|
main: "dist/index.js",
|
|
39142
39154
|
typings: "dist/index.d.ts",
|
|
39143
39155
|
homepage: "https://vercel.com",
|
|
@@ -52686,7 +52698,7 @@ async function getUser(client) {
|
|
|
52686
52698
|
if (client.authConfig.userId !== res.user.id) {
|
|
52687
52699
|
client.updateAuthConfig({ userId: res.user.id });
|
|
52688
52700
|
try {
|
|
52689
|
-
client.
|
|
52701
|
+
client.persistAuthConfig();
|
|
52690
52702
|
} catch {
|
|
52691
52703
|
output_manager_default.debug("Failed to persist cached userId to auth config.");
|
|
52692
52704
|
}
|
|
@@ -52698,7 +52710,7 @@ async function getUser(client) {
|
|
|
52698
52710
|
if (client.authConfig.userId) {
|
|
52699
52711
|
client.updateAuthConfig({ userId: void 0 });
|
|
52700
52712
|
try {
|
|
52701
|
-
client.
|
|
52713
|
+
client.persistAuthConfig();
|
|
52702
52714
|
} catch {
|
|
52703
52715
|
output_manager_default.debug("Failed to persist cached userId to auth config.");
|
|
52704
52716
|
}
|
|
@@ -55736,7 +55748,12 @@ var envCommand = {
|
|
|
55736
55748
|
updateSubcommand
|
|
55737
55749
|
],
|
|
55738
55750
|
options: [],
|
|
55739
|
-
examples: [
|
|
55751
|
+
examples: [
|
|
55752
|
+
{
|
|
55753
|
+
name: "Run a command with Environment Variables from the linked Project",
|
|
55754
|
+
value: `${packageName} env run -- <command>`
|
|
55755
|
+
}
|
|
55756
|
+
]
|
|
55740
55757
|
};
|
|
55741
55758
|
|
|
55742
55759
|
// src/util/parse-target.ts
|
|
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
STANDARD_ENVIRONMENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZI2C6YH2.js";
|
|
10
10
|
import {
|
|
11
11
|
getCommandName,
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
14
14
|
import {
|
|
15
15
|
output_manager_default
|
|
16
16
|
} from "./chunk-ZQKJVHXY.js";
|