vercel 56.2.1 → 56.3.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-YIAPBLSF.js → add-CF5SQESQ.js} +10 -13
- package/dist/chunks/{add-ZAQLTF5W.js → add-DMRGZN3Z.js} +9 -12
- package/dist/chunks/{chunk-75PKWYOS.js → chunk-22G26AIX.js} +99 -74
- package/dist/chunks/{chunk-7OJJKCSW.js → chunk-2C2JJTAM.js} +6 -10
- package/dist/chunks/{chunk-DDEPCAGE.js → chunk-2MXGTALG.js} +529 -164
- package/dist/chunks/{chunk-5AJNUXWP.js → chunk-3PKFXNJZ.js} +2 -4
- package/dist/chunks/{chunk-5OT26JZN.js → chunk-3VS4DTAU.js} +4 -6
- package/dist/chunks/{chunk-JJWESW5Y.js → chunk-4G6QZSBL.js} +2 -4
- package/dist/chunks/{chunk-NULWLKT7.js → chunk-4YOCOUDN.js} +4 -4
- package/dist/chunks/{chunk-GXBDQRHJ.js → chunk-4Z5LC2CI.js} +1 -1
- package/dist/chunks/{chunk-CMJMYVQM.js → chunk-6OMC3HOW.js} +1 -1
- package/dist/chunks/{chunk-JF7LPEBD.js → chunk-A6LE5VAN.js} +1 -1
- package/dist/chunks/{chunk-QY63UKTP.js → chunk-DMSLNAVH.js} +2 -2
- package/dist/chunks/{chunk-52V5NDUN.js → chunk-DZHRFBKE.js} +2 -2
- package/dist/chunks/{chunk-MYD7N6MH.js → chunk-ERPZJ4SX.js} +13 -3
- package/dist/chunks/{chunk-YKJA5TVC.js → chunk-EYNXG3FO.js} +3 -5
- package/dist/chunks/{chunk-RLJA2KI7.js → chunk-FYQPTH5C.js} +2 -4
- package/dist/chunks/{chunk-7TJLLZPN.js → chunk-G4PG5HVE.js} +6 -10
- package/dist/chunks/{chunk-7C7MMT4J.js → chunk-GIL3VAUR.js} +2 -4
- package/dist/chunks/{chunk-GPVU6JRS.js → chunk-HUKYQKVQ.js} +9 -7
- package/dist/chunks/{chunk-EPBUWIAO.js → chunk-I2IICWBW.js} +48 -24
- package/dist/chunks/{chunk-KXVQEPTA.js → chunk-ICSIFPXG.js} +3 -5
- package/dist/chunks/{chunk-P6AK7SVK.js → chunk-KSSNLCL4.js} +360 -25
- package/dist/chunks/{chunk-HIO4M75R.js → chunk-KXKQQIUS.js} +6 -10
- package/dist/chunks/{chunk-HA7C7SDO.js → chunk-LHFNIZ2P.js} +2 -4
- package/dist/chunks/{chunk-2I34TRQZ.js → chunk-NP32PAKT.js} +2 -2
- package/dist/chunks/{chunk-QEEGXNFK.js → chunk-NZRWTCRM.js} +1 -1
- package/dist/chunks/{chunk-IDMKFYEA.js → chunk-OGG6UBXK.js} +2 -4
- package/dist/chunks/{chunk-PASZMRTZ.js → chunk-PRO4S2KV.js} +5 -5
- package/dist/chunks/{chunk-DD6D5J7E.js → chunk-Q5ADSH7D.js} +8 -12
- package/dist/chunks/{chunk-6ZVIC6FL.js → chunk-QP3C5YS5.js} +8 -8
- package/dist/chunks/{chunk-5HNYJHOB.js → chunk-SDK7R4WO.js} +1 -1
- package/dist/chunks/{chunk-22GUZ5KG.js → chunk-STJJ3DFO.js} +2 -4
- package/dist/chunks/{chunk-EHTPDXTS.js → chunk-SZXT3PDQ.js} +3 -294
- package/dist/chunks/{chunk-CB3I3QIT.js → chunk-UDWRZXIT.js} +193 -85
- package/dist/chunks/{chunk-DREO3DFB.js → chunk-VZSZBD4V.js} +16 -6
- package/dist/chunks/{chunk-VOBBH2SB.js → chunk-W346YNDN.js} +0 -49
- package/dist/chunks/{chunk-7S3QUMIG.js → chunk-YS6EDZHB.js} +3 -5
- package/dist/chunks/{chunk-UESEGACQ.js → chunk-ZDCS54ZZ.js} +3 -3
- package/dist/chunks/{chunk-4RGSUV5C.js → chunk-ZVLPUREX.js} +2 -2
- package/dist/chunks/{compile-vercel-config-4NKPN3EG.js → compile-vercel-config-RPPL7W56.js} +4 -4
- package/dist/chunks/{delete-NCMDC3IU.js → delete-QBVZ5X6B.js} +14 -14
- package/dist/chunks/{disable-Z7DXY4AY.js → disable-YYGXPXBI.js} +14 -13
- package/dist/chunks/{discard-4ILK3ULP.js → discard-X2MSUFGI.js} +13 -12
- package/dist/chunks/{edit-ROJQCTWR.js → edit-3ABZQYUU.js} +17 -18
- package/dist/chunks/{enable-TAVCLAEC.js → enable-HUMYCGKA.js} +14 -13
- package/dist/chunks/{export-YTSIGJFX.js → export-KGHH4WAT.js} +15 -14
- package/dist/chunks/{image-LORSHERP.js → image-OO3WWKZV.js} +6 -8
- package/dist/chunks/{inspect-5C4UHSCT.js → inspect-5TNHHD2M.js} +10 -12
- package/dist/chunks/{inspect-OHDU2SVS.js → inspect-FNUCB7Y3.js} +8 -10
- package/dist/chunks/{inspect-L4UIWOXO.js → inspect-KSSQEAW7.js} +11 -15
- package/dist/chunks/{inspect-A2X7RTP4.js → inspect-Z6SSD2SR.js} +8 -10
- package/dist/chunks/{list-FGVDMSFN.js → list-TXNYRVJG.js} +8 -10
- package/dist/chunks/{list-P2B5MHON.js → list-X2AD3HCX.js} +10 -13
- package/dist/chunks/{login-4BK3VGII.js → login-SLPCZ2OF.js} +11 -14
- package/dist/chunks/{ls-YXKRRYTL.js → ls-2YSINRJ3.js} +10 -13
- package/dist/chunks/{ls-NU4D6TLG.js → ls-4QMJLQQL.js} +10 -13
- package/dist/chunks/{ls-WDRFGE2J.js → ls-C7MNQ4IK.js} +12 -15
- package/dist/chunks/{ls-RAC5LMTR.js → ls-QLTOY23G.js} +9 -12
- package/dist/chunks/{publish-DGF2TQCQ.js → publish-GV4LLLXP.js} +13 -12
- package/dist/chunks/{query-NWW6RDHK.js → query-3AHRMAPA.js} +10 -12
- package/dist/chunks/{reorder-TTZBKCEB.js → reorder-VSVOPNM4.js} +17 -16
- package/dist/chunks/{restore-DG3LZMHQ.js → restore-FKYCF73P.js} +19 -18
- package/dist/chunks/{rm-7WXXLTXF.js → rm-4QCXZRC2.js} +10 -13
- package/dist/chunks/{rm-U2DFRDKE.js → rm-UTFG42FN.js} +8 -11
- package/dist/chunks/{rm-2VBE4C2V.js → rm-YV5WQKQM.js} +9 -12
- package/dist/chunks/{rule-inspect-4NL3GGDB.js → rule-inspect-IONN4MTP.js} +9 -12
- package/dist/chunks/{rules-DABNOUNG.js → rules-S2KPV7HY.js} +9 -11
- package/dist/chunks/{schema-4RRRUUOO.js → schema-3LX3V2HE.js} +11 -12
- package/dist/chunks/{tags-MLX3AHHK.js → tags-CQ4FRIJ4.js} +5 -7
- package/dist/chunks/{types-2TPA6J4G.js → types-QKLIFDDP.js} +5 -5
- package/dist/chunks/{update-YXH7WWTN.js → update-U7OGHCP5.js} +9 -12
- package/dist/commands/build/index.js +26 -31
- package/dist/commands/deploy/index.js +57 -75
- package/dist/commands/dev/index.js +193 -159
- package/dist/commands/env/index.js +70 -47
- package/dist/commands/link/index.js +25 -29
- package/dist/commands/list/index.js +13 -17
- package/dist/commands-bulk.js +637 -620
- package/dist/index.js +23 -25
- package/dist/version.mjs +1 -1
- package/package.json +20 -20
- package/dist/chunks/chunk-DWU7JOO6.js +0 -158
- package/dist/chunks/chunk-IC4YEIGW.js +0 -101
- package/dist/chunks/chunk-IMUF5MGV.js +0 -81
- package/dist/chunks/chunk-SGL3NMOP.js +0 -86
|
@@ -292,6 +292,348 @@ function getCommandNamePlain(subcommands) {
|
|
|
292
292
|
return subcommands ? `${packageName} ${subcommands}` : packageName;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
+
// src/util/get-flags-specification.ts
|
|
296
|
+
function getFlagsSpecification(options) {
|
|
297
|
+
const flagsSpecification = {};
|
|
298
|
+
for (const option of options) {
|
|
299
|
+
flagsSpecification[`--${option.name}`] = option.type;
|
|
300
|
+
if (option.shorthand) {
|
|
301
|
+
flagsSpecification[`-${option.shorthand}`] = `--${option.name}`;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return flagsSpecification;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// src/util/redact-args.ts
|
|
308
|
+
var SENSITIVE_AUTH_FLAG_NAMES = /* @__PURE__ */ new Set(["--token", "-t"]);
|
|
309
|
+
function normalizeFlagName(flag) {
|
|
310
|
+
if (flag.includes("=")) {
|
|
311
|
+
return flag.slice(0, flag.indexOf("="));
|
|
312
|
+
}
|
|
313
|
+
return flag;
|
|
314
|
+
}
|
|
315
|
+
function stripSensitiveAuthArgs(args) {
|
|
316
|
+
const out = [];
|
|
317
|
+
for (let i = 0; i < args.length; i++) {
|
|
318
|
+
const arg = args[i];
|
|
319
|
+
const name = normalizeFlagName(arg);
|
|
320
|
+
if (SENSITIVE_AUTH_FLAG_NAMES.has(name)) {
|
|
321
|
+
if (!arg.includes("=") && i + 1 < args.length) {
|
|
322
|
+
i++;
|
|
323
|
+
}
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
out.push(arg);
|
|
327
|
+
}
|
|
328
|
+
return out;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// src/util/arg-common.ts
|
|
332
|
+
var globalCommandOptions = [
|
|
333
|
+
{
|
|
334
|
+
name: "help",
|
|
335
|
+
shorthand: "h",
|
|
336
|
+
type: Boolean,
|
|
337
|
+
description: "Output usage information",
|
|
338
|
+
deprecated: false
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: "version",
|
|
342
|
+
shorthand: "v",
|
|
343
|
+
type: Boolean,
|
|
344
|
+
description: "Output the version number",
|
|
345
|
+
deprecated: false
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "cwd",
|
|
349
|
+
shorthand: null,
|
|
350
|
+
type: String,
|
|
351
|
+
argument: "DIR",
|
|
352
|
+
description: "Sets the current working directory for a single run of a command",
|
|
353
|
+
deprecated: false
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: "local-config",
|
|
357
|
+
shorthand: "A",
|
|
358
|
+
type: String,
|
|
359
|
+
argument: "FILE",
|
|
360
|
+
description: "Path to the local `vercel.json` file",
|
|
361
|
+
deprecated: false
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: "global-config",
|
|
365
|
+
shorthand: "Q",
|
|
366
|
+
type: String,
|
|
367
|
+
argument: "DIR",
|
|
368
|
+
description: "Path to the global `.vercel` directory",
|
|
369
|
+
deprecated: false
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
name: "debug",
|
|
373
|
+
shorthand: "d",
|
|
374
|
+
type: Boolean,
|
|
375
|
+
description: "Debug mode (default off)",
|
|
376
|
+
deprecated: false
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: "no-color",
|
|
380
|
+
shorthand: null,
|
|
381
|
+
type: Boolean,
|
|
382
|
+
description: "No color mode (default off)",
|
|
383
|
+
deprecated: false
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
name: "non-interactive",
|
|
387
|
+
shorthand: null,
|
|
388
|
+
type: Boolean,
|
|
389
|
+
description: "Run without interactive prompts; when an agent is detected this is the default",
|
|
390
|
+
deprecated: false
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: "scope",
|
|
394
|
+
shorthand: "S",
|
|
395
|
+
type: String,
|
|
396
|
+
description: "Set a custom scope",
|
|
397
|
+
deprecated: false
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
name: "token",
|
|
401
|
+
shorthand: "t",
|
|
402
|
+
type: String,
|
|
403
|
+
argument: "TOKEN",
|
|
404
|
+
description: "Login token",
|
|
405
|
+
deprecated: false
|
|
406
|
+
},
|
|
407
|
+
{ name: "team", shorthand: "T", type: String, deprecated: false },
|
|
408
|
+
{ name: "api", shorthand: null, type: String, deprecated: false }
|
|
409
|
+
];
|
|
410
|
+
var GLOBAL_CLI_FLAG_NAMES = (() => {
|
|
411
|
+
const set = /* @__PURE__ */ new Set();
|
|
412
|
+
for (const opt of globalCommandOptions) {
|
|
413
|
+
set.add(`--${opt.name}`);
|
|
414
|
+
if (opt.shorthand) {
|
|
415
|
+
set.add(`-${opt.shorthand}`);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return set;
|
|
419
|
+
})();
|
|
420
|
+
function globalCliFlagTakesValue(flagName) {
|
|
421
|
+
const normalized = normalizeFlagName(flagName);
|
|
422
|
+
for (const opt of globalCommandOptions) {
|
|
423
|
+
if (`--${opt.name}` === normalized) {
|
|
424
|
+
return opt.type === String;
|
|
425
|
+
}
|
|
426
|
+
if (opt.shorthand && `-${opt.shorthand}` === normalized) {
|
|
427
|
+
return opt.type === String;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
return false;
|
|
431
|
+
}
|
|
432
|
+
var SUGGESTION_FLAGS_TAKING_VALUE = /* @__PURE__ */ new Set([
|
|
433
|
+
"--config",
|
|
434
|
+
"--environment",
|
|
435
|
+
"--git-branch",
|
|
436
|
+
"--id",
|
|
437
|
+
"--value",
|
|
438
|
+
"--status",
|
|
439
|
+
"--name",
|
|
440
|
+
"--slug",
|
|
441
|
+
"--version",
|
|
442
|
+
// redirects list --version
|
|
443
|
+
"--search",
|
|
444
|
+
"--format",
|
|
445
|
+
"--project",
|
|
446
|
+
"--page",
|
|
447
|
+
"--per-page"
|
|
448
|
+
]);
|
|
449
|
+
function suggestionFlagTakesSeparateValue(flagName) {
|
|
450
|
+
const name = normalizeFlagName(flagName);
|
|
451
|
+
if (globalCliFlagTakesValue(name))
|
|
452
|
+
return true;
|
|
453
|
+
return SUGGESTION_FLAGS_TAKING_VALUE.has(name);
|
|
454
|
+
}
|
|
455
|
+
function getSameSubcommandSuggestionFlags(args) {
|
|
456
|
+
const safeArgs = stripSensitiveAuthArgs(args);
|
|
457
|
+
const out = [];
|
|
458
|
+
for (let i = 0; i < safeArgs.length; i++) {
|
|
459
|
+
const a = safeArgs[i];
|
|
460
|
+
if (!a.startsWith("-"))
|
|
461
|
+
continue;
|
|
462
|
+
out.push(a);
|
|
463
|
+
if (a.includes("="))
|
|
464
|
+
continue;
|
|
465
|
+
const name = a;
|
|
466
|
+
if (suggestionFlagTakesSeparateValue(name) && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-")) {
|
|
467
|
+
out.push(safeArgs[++i]);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
return out;
|
|
471
|
+
}
|
|
472
|
+
var GLOBAL_OPTIONS = getFlagsSpecification(globalCommandOptions);
|
|
473
|
+
var arg_common_default = () => GLOBAL_OPTIONS;
|
|
474
|
+
var yesOption = {
|
|
475
|
+
name: "yes",
|
|
476
|
+
shorthand: "y",
|
|
477
|
+
type: Boolean,
|
|
478
|
+
deprecated: false,
|
|
479
|
+
description: "Accept default value for all prompts"
|
|
480
|
+
};
|
|
481
|
+
var nextOption = {
|
|
482
|
+
name: "next",
|
|
483
|
+
shorthand: "N",
|
|
484
|
+
type: Number,
|
|
485
|
+
deprecated: false,
|
|
486
|
+
description: "Show next page of results",
|
|
487
|
+
argument: "MS"
|
|
488
|
+
};
|
|
489
|
+
var confirmOption = {
|
|
490
|
+
name: "confirm",
|
|
491
|
+
shorthand: "c",
|
|
492
|
+
type: Boolean,
|
|
493
|
+
deprecated: true
|
|
494
|
+
};
|
|
495
|
+
var limitOption = {
|
|
496
|
+
name: "limit",
|
|
497
|
+
shorthand: null,
|
|
498
|
+
type: Number,
|
|
499
|
+
deprecated: false,
|
|
500
|
+
description: "Number of results to return per page (default: 20, max: 100)",
|
|
501
|
+
argument: "NUMBER"
|
|
502
|
+
};
|
|
503
|
+
var forceOption = {
|
|
504
|
+
name: "force",
|
|
505
|
+
shorthand: "f",
|
|
506
|
+
type: Boolean,
|
|
507
|
+
deprecated: false
|
|
508
|
+
};
|
|
509
|
+
var formatOption = {
|
|
510
|
+
name: "format",
|
|
511
|
+
shorthand: "F",
|
|
512
|
+
type: String,
|
|
513
|
+
argument: "FORMAT",
|
|
514
|
+
description: "Specify the output format (json)",
|
|
515
|
+
deprecated: false
|
|
516
|
+
};
|
|
517
|
+
var jsonOption = {
|
|
518
|
+
name: "json",
|
|
519
|
+
shorthand: null,
|
|
520
|
+
type: Boolean,
|
|
521
|
+
deprecated: true,
|
|
522
|
+
description: "DEPRECATED: Use --format=json instead"
|
|
523
|
+
};
|
|
524
|
+
var allOption = {
|
|
525
|
+
name: "all",
|
|
526
|
+
shorthand: "a",
|
|
527
|
+
type: Boolean,
|
|
528
|
+
deprecated: false,
|
|
529
|
+
description: "List resources across all projects"
|
|
530
|
+
};
|
|
531
|
+
var projectOption = {
|
|
532
|
+
name: "project",
|
|
533
|
+
shorthand: null,
|
|
534
|
+
type: String,
|
|
535
|
+
argument: "NAME_OR_ID",
|
|
536
|
+
description: "Project name or ID (defaults to the linked project)",
|
|
537
|
+
deprecated: false
|
|
538
|
+
};
|
|
539
|
+
var deploymentOption = {
|
|
540
|
+
name: "deployment",
|
|
541
|
+
shorthand: null,
|
|
542
|
+
type: String,
|
|
543
|
+
deprecated: false,
|
|
544
|
+
description: "The deployment ID or URL to target",
|
|
545
|
+
argument: "ID|URL"
|
|
546
|
+
};
|
|
547
|
+
var protectionBypassOption = {
|
|
548
|
+
name: "protection-bypass",
|
|
549
|
+
shorthand: null,
|
|
550
|
+
type: String,
|
|
551
|
+
deprecated: false,
|
|
552
|
+
description: "Protection bypass secret for accessing protected deployments",
|
|
553
|
+
argument: "SECRET"
|
|
554
|
+
};
|
|
555
|
+
var GLOBAL_LONG_TO_OPT = /* @__PURE__ */ new Map();
|
|
556
|
+
var GLOBAL_SHORT_TO_OPT = /* @__PURE__ */ new Map();
|
|
557
|
+
for (const opt of globalCommandOptions) {
|
|
558
|
+
GLOBAL_LONG_TO_OPT.set(`--${opt.name}`, opt);
|
|
559
|
+
if (opt.shorthand) {
|
|
560
|
+
GLOBAL_SHORT_TO_OPT.set(`-${opt.shorthand}`, opt);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
function getGlobalFlagsFromArgs(args, options) {
|
|
564
|
+
const delimiterIndex = args.indexOf("--");
|
|
565
|
+
const cliArgs = delimiterIndex === -1 ? args : args.slice(0, delimiterIndex);
|
|
566
|
+
const safeArgs = stripSensitiveAuthArgs(cliArgs);
|
|
567
|
+
const out = [];
|
|
568
|
+
for (let i = 0; i < safeArgs.length; i++) {
|
|
569
|
+
const a = safeArgs[i];
|
|
570
|
+
if (options?.preserveYes && (a === "--yes" || a === "-y")) {
|
|
571
|
+
out.push(a);
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
if (options?.preserveConfig && (a === "--config" || a.startsWith("--config="))) {
|
|
575
|
+
out.push(a);
|
|
576
|
+
if (a === "--config") {
|
|
577
|
+
const next = safeArgs[i + 1];
|
|
578
|
+
if (next && !next.startsWith("-")) {
|
|
579
|
+
out.push(next);
|
|
580
|
+
i++;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
let opt;
|
|
586
|
+
if (a.startsWith("--") && a.includes("=")) {
|
|
587
|
+
const name = a.slice(2).split("=")[0];
|
|
588
|
+
opt = GLOBAL_LONG_TO_OPT.get(`--${name}`);
|
|
589
|
+
if (opt)
|
|
590
|
+
out.push(a);
|
|
591
|
+
continue;
|
|
592
|
+
}
|
|
593
|
+
opt = GLOBAL_LONG_TO_OPT.get(a) || GLOBAL_SHORT_TO_OPT.get(a);
|
|
594
|
+
if (!opt)
|
|
595
|
+
continue;
|
|
596
|
+
out.push(a);
|
|
597
|
+
if (opt.type === String && !a.includes("=")) {
|
|
598
|
+
const next = safeArgs[i + 1];
|
|
599
|
+
if (next && !next.startsWith("-")) {
|
|
600
|
+
out.push(next);
|
|
601
|
+
i++;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
if (options?.preserveProject) {
|
|
606
|
+
const projectOption2 = findProjectOption(safeArgs);
|
|
607
|
+
if (projectOption2)
|
|
608
|
+
out.push(...projectOption2.args);
|
|
609
|
+
}
|
|
610
|
+
return out;
|
|
611
|
+
}
|
|
612
|
+
function findProjectOption(args) {
|
|
613
|
+
for (let i = 0; i < args.length; i++) {
|
|
614
|
+
const arg = args[i];
|
|
615
|
+
if (arg === "--")
|
|
616
|
+
return void 0;
|
|
617
|
+
if (arg.startsWith("--project=")) {
|
|
618
|
+
return {
|
|
619
|
+
value: arg.slice("--project=".length),
|
|
620
|
+
args: [arg]
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
if (arg === "--project") {
|
|
624
|
+
const value = args[i + 1];
|
|
625
|
+
if (value && !value.startsWith("-")) {
|
|
626
|
+
return { value, args: [arg, value] };
|
|
627
|
+
}
|
|
628
|
+
return void 0;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return void 0;
|
|
632
|
+
}
|
|
633
|
+
function getProjectOptionFromArgs(args) {
|
|
634
|
+
return findProjectOption(args)?.value;
|
|
635
|
+
}
|
|
636
|
+
|
|
295
637
|
// src/util/now-error.ts
|
|
296
638
|
var NowError = class extends Error {
|
|
297
639
|
constructor({
|
|
@@ -979,30 +1321,6 @@ var InvalidLocalConfig = class extends NowError {
|
|
|
979
1321
|
}
|
|
980
1322
|
};
|
|
981
1323
|
|
|
982
|
-
// src/util/redact-args.ts
|
|
983
|
-
var SENSITIVE_AUTH_FLAG_NAMES = /* @__PURE__ */ new Set(["--token", "-t"]);
|
|
984
|
-
function normalizeFlagName(flag) {
|
|
985
|
-
if (flag.includes("=")) {
|
|
986
|
-
return flag.slice(0, flag.indexOf("="));
|
|
987
|
-
}
|
|
988
|
-
return flag;
|
|
989
|
-
}
|
|
990
|
-
function stripSensitiveAuthArgs(args) {
|
|
991
|
-
const out = [];
|
|
992
|
-
for (let i = 0; i < args.length; i++) {
|
|
993
|
-
const arg = args[i];
|
|
994
|
-
const name = normalizeFlagName(arg);
|
|
995
|
-
if (SENSITIVE_AUTH_FLAG_NAMES.has(name)) {
|
|
996
|
-
if (!arg.includes("=") && i + 1 < args.length) {
|
|
997
|
-
i++;
|
|
998
|
-
}
|
|
999
|
-
continue;
|
|
1000
|
-
}
|
|
1001
|
-
out.push(arg);
|
|
1002
|
-
}
|
|
1003
|
-
return out;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
1324
|
export {
|
|
1007
1325
|
require_lib,
|
|
1008
1326
|
cmd,
|
|
@@ -1010,8 +1328,25 @@ export {
|
|
|
1010
1328
|
getTitleName,
|
|
1011
1329
|
getCommandName,
|
|
1012
1330
|
getCommandNamePlain,
|
|
1013
|
-
|
|
1331
|
+
getFlagsSpecification,
|
|
1014
1332
|
stripSensitiveAuthArgs,
|
|
1333
|
+
globalCommandOptions,
|
|
1334
|
+
suggestionFlagTakesSeparateValue,
|
|
1335
|
+
getSameSubcommandSuggestionFlags,
|
|
1336
|
+
arg_common_default,
|
|
1337
|
+
yesOption,
|
|
1338
|
+
nextOption,
|
|
1339
|
+
confirmOption,
|
|
1340
|
+
limitOption,
|
|
1341
|
+
forceOption,
|
|
1342
|
+
formatOption,
|
|
1343
|
+
jsonOption,
|
|
1344
|
+
allOption,
|
|
1345
|
+
projectOption,
|
|
1346
|
+
deploymentOption,
|
|
1347
|
+
protectionBypassOption,
|
|
1348
|
+
getGlobalFlagsFromArgs,
|
|
1349
|
+
getProjectOptionFromArgs,
|
|
1015
1350
|
require_bytes,
|
|
1016
1351
|
NowError,
|
|
1017
1352
|
code,
|
|
@@ -6,26 +6,22 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setupAndLink
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
printProjectNotFoundError
|
|
12
|
-
} from "./chunk-IMUF5MGV.js";
|
|
13
|
-
import {
|
|
14
|
-
detectExplicitScope
|
|
15
|
-
} from "./chunk-DWU7JOO6.js";
|
|
9
|
+
} from "./chunk-PRO4S2KV.js";
|
|
16
10
|
import {
|
|
11
|
+
detectExplicitScope,
|
|
17
12
|
getLinkedProject,
|
|
18
13
|
param,
|
|
14
|
+
printProjectNotFoundError,
|
|
19
15
|
resolveProjectCwd
|
|
20
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2MXGTALG.js";
|
|
21
17
|
import {
|
|
22
18
|
buildCommandWithYes,
|
|
23
19
|
outputActionRequired
|
|
24
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UDWRZXIT.js";
|
|
25
21
|
import {
|
|
26
22
|
getCommandName,
|
|
27
23
|
getCommandNamePlain
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KSSNLCL4.js";
|
|
29
25
|
import {
|
|
30
26
|
output_manager_default
|
|
31
27
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -10,11 +10,9 @@ import {
|
|
|
10
10
|
formatOption,
|
|
11
11
|
limitOption,
|
|
12
12
|
nextOption,
|
|
13
|
+
packageName,
|
|
13
14
|
yesOption
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
packageName
|
|
17
|
-
} from "./chunk-P6AK7SVK.js";
|
|
15
|
+
} from "./chunk-KSSNLCL4.js";
|
|
18
16
|
|
|
19
17
|
// src/commands/list/command.ts
|
|
20
18
|
var listCommand = {
|
|
@@ -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-2MXGTALG.js";
|
|
10
10
|
import {
|
|
11
11
|
getCommandName,
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KSSNLCL4.js";
|
|
14
14
|
import {
|
|
15
15
|
output_manager_default
|
|
16
16
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -6,12 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
confirmOption,
|
|
9
|
+
packageName,
|
|
9
10
|
projectOption,
|
|
10
11
|
yesOption
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
packageName
|
|
14
|
-
} from "./chunk-P6AK7SVK.js";
|
|
12
|
+
} from "./chunk-KSSNLCL4.js";
|
|
15
13
|
|
|
16
14
|
// src/commands/dev/command.ts
|
|
17
15
|
var devCommand = {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getLocalPathConfig,
|
|
9
9
|
isPromptBackError,
|
|
10
10
|
isPromptCanceledError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZDCS54ZZ.js";
|
|
12
12
|
import {
|
|
13
13
|
table
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NZRWTCRM.js";
|
|
15
15
|
import {
|
|
16
16
|
Separator,
|
|
17
17
|
VERCEL_DIR_PROJECT,
|
|
@@ -46,15 +46,15 @@ import {
|
|
|
46
46
|
selectAndParseRemoteUrl,
|
|
47
47
|
selectOrg,
|
|
48
48
|
writeServicesConfig
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-2MXGTALG.js";
|
|
50
50
|
import {
|
|
51
51
|
printError
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-SZXT3PDQ.js";
|
|
53
53
|
import {
|
|
54
54
|
CantParseJSONFile,
|
|
55
55
|
ProjectNotFound,
|
|
56
56
|
isAPIError
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-KSSNLCL4.js";
|
|
58
58
|
import {
|
|
59
59
|
output_manager_default
|
|
60
60
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -10,17 +10,13 @@ import {
|
|
|
10
10
|
progress,
|
|
11
11
|
require_dist as require_dist2,
|
|
12
12
|
sleep
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4YOCOUDN.js";
|
|
14
14
|
import {
|
|
15
15
|
suggestNextCommands
|
|
16
16
|
} from "./chunk-XBN2O34P.js";
|
|
17
|
-
import {
|
|
18
|
-
getDeployment,
|
|
19
|
-
mapCertError
|
|
20
|
-
} from "./chunk-SGL3NMOP.js";
|
|
21
17
|
import {
|
|
22
18
|
CommandTimeout
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-I2IICWBW.js";
|
|
24
20
|
import {
|
|
25
21
|
showPluginTipIfNeeded
|
|
26
22
|
} from "./chunk-NJUPUGOE.js";
|
|
@@ -28,20 +24,20 @@ import {
|
|
|
28
24
|
stamp_default
|
|
29
25
|
} from "./chunk-64IF634X.js";
|
|
30
26
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./chunk-DWU7JOO6.js";
|
|
33
|
-
import {
|
|
27
|
+
getDeployment,
|
|
34
28
|
getProjectByNameOrId,
|
|
29
|
+
getScope,
|
|
30
|
+
mapCertError,
|
|
35
31
|
param,
|
|
36
32
|
printAlignedLabel,
|
|
37
33
|
require_dist as require_dist3,
|
|
38
34
|
require_pluralize,
|
|
39
35
|
ua_default
|
|
40
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2MXGTALG.js";
|
|
41
37
|
import {
|
|
42
38
|
require_strip_ansi,
|
|
43
39
|
responseError
|
|
44
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SZXT3PDQ.js";
|
|
45
41
|
import {
|
|
46
42
|
APIError,
|
|
47
43
|
BuildError,
|
|
@@ -59,7 +55,7 @@ import {
|
|
|
59
55
|
getCommandName,
|
|
60
56
|
isAPIError,
|
|
61
57
|
require_bytes
|
|
62
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KSSNLCL4.js";
|
|
63
59
|
import {
|
|
64
60
|
Headers,
|
|
65
61
|
fetch,
|
|
@@ -7,39 +7,39 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DZHRFBKE.js";
|
|
11
11
|
import {
|
|
12
12
|
getGlobalPathConfig,
|
|
13
13
|
progress,
|
|
14
14
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4YOCOUDN.js";
|
|
16
16
|
import {
|
|
17
17
|
apiCommand,
|
|
18
18
|
listSubcommand3 as listSubcommand,
|
|
19
19
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-I2IICWBW.js";
|
|
21
21
|
import {
|
|
22
22
|
require_semver
|
|
23
23
|
} from "./chunk-IB5L4LKZ.js";
|
|
24
24
|
import {
|
|
25
25
|
help
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DMSLNAVH.js";
|
|
27
27
|
import {
|
|
28
28
|
login
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2MXGTALG.js";
|
|
30
30
|
import {
|
|
31
31
|
TelemetryClient,
|
|
32
32
|
isNativeBinaryInstall
|
|
33
33
|
} from "./chunk-ECCWJHC6.js";
|
|
34
34
|
import {
|
|
35
|
-
getFlagsSpecification,
|
|
36
35
|
parseArguments,
|
|
37
36
|
printError,
|
|
38
37
|
require_strip_ansi
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SZXT3PDQ.js";
|
|
40
39
|
import {
|
|
40
|
+
getFlagsSpecification,
|
|
41
41
|
packageName
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KSSNLCL4.js";
|
|
43
43
|
import {
|
|
44
44
|
pkg_default
|
|
45
45
|
} from "./chunk-P4QNYOFB.js";
|
|
@@ -6,12 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
formatOption,
|
|
9
|
+
packageName,
|
|
9
10
|
projectOption,
|
|
10
11
|
yesOption
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
packageName
|
|
14
|
-
} from "./chunk-P6AK7SVK.js";
|
|
12
|
+
} from "./chunk-KSSNLCL4.js";
|
|
15
13
|
|
|
16
14
|
// src/commands/alerts/rules/command.ts
|
|
17
15
|
var scopeOptions = [
|