vercel 56.2.1 → 56.3.1

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.
Files changed (86) hide show
  1. package/dist/chunks/{add-YIAPBLSF.js → add-ANWCBEDB.js} +10 -13
  2. package/dist/chunks/{add-ZAQLTF5W.js → add-FWXAFWCU.js} +9 -12
  3. package/dist/chunks/{chunk-52V5NDUN.js → chunk-26VWIAO5.js} +2 -2
  4. package/dist/chunks/{chunk-2I34TRQZ.js → chunk-2E3ZC3JA.js} +2 -2
  5. package/dist/chunks/{chunk-5AJNUXWP.js → chunk-3PKFXNJZ.js} +2 -4
  6. package/dist/chunks/{chunk-5OT26JZN.js → chunk-3VS4DTAU.js} +4 -6
  7. package/dist/chunks/{chunk-JJWESW5Y.js → chunk-4G6QZSBL.js} +2 -4
  8. package/dist/chunks/{chunk-GXBDQRHJ.js → chunk-4Z5LC2CI.js} +1 -1
  9. package/dist/chunks/{chunk-5HNYJHOB.js → chunk-5R5FS7WB.js} +1 -1
  10. package/dist/chunks/{chunk-CMJMYVQM.js → chunk-6OMC3HOW.js} +1 -1
  11. package/dist/chunks/{chunk-HIO4M75R.js → chunk-74TJ5D35.js} +8 -11
  12. package/dist/chunks/{chunk-EPBUWIAO.js → chunk-7ZECC3BE.js} +48 -24
  13. package/dist/chunks/{chunk-JF7LPEBD.js → chunk-AHSE4X6V.js} +1 -1
  14. package/dist/chunks/{chunk-7OJJKCSW.js → chunk-D7SLHLED.js} +6 -10
  15. package/dist/chunks/{chunk-QY63UKTP.js → chunk-DMSLNAVH.js} +2 -2
  16. package/dist/chunks/{chunk-75PKWYOS.js → chunk-ETWY3HX7.js} +99 -74
  17. package/dist/chunks/{chunk-MYD7N6MH.js → chunk-F3B65VPT.js} +13 -3
  18. package/dist/chunks/{chunk-RLJA2KI7.js → chunk-FYQPTH5C.js} +2 -4
  19. package/dist/chunks/{chunk-7C7MMT4J.js → chunk-GIL3VAUR.js} +2 -4
  20. package/dist/chunks/{chunk-6ZVIC6FL.js → chunk-IAEXF3FY.js} +8 -8
  21. package/dist/chunks/{chunk-DD6D5J7E.js → chunk-JAY74MG2.js} +9 -13
  22. package/dist/chunks/{chunk-KXVQEPTA.js → chunk-JEWA7HG3.js} +3 -5
  23. package/dist/chunks/{chunk-P6AK7SVK.js → chunk-KSSNLCL4.js} +360 -25
  24. package/dist/chunks/{chunk-HA7C7SDO.js → chunk-LHFNIZ2P.js} +2 -4
  25. package/dist/chunks/{chunk-YKJA5TVC.js → chunk-M5LOXLMK.js} +3 -5
  26. package/dist/chunks/{chunk-GPVU6JRS.js → chunk-NMAHBCNK.js} +9 -7
  27. package/dist/chunks/{chunk-QEEGXNFK.js → chunk-NZRWTCRM.js} +1 -1
  28. package/dist/chunks/{chunk-IDMKFYEA.js → chunk-OGG6UBXK.js} +2 -4
  29. package/dist/chunks/{chunk-DDEPCAGE.js → chunk-RGOP4OYL.js} +558 -164
  30. package/dist/chunks/{chunk-NULWLKT7.js → chunk-SAEAR237.js} +4 -4
  31. package/dist/chunks/{chunk-22GUZ5KG.js → chunk-STJJ3DFO.js} +2 -4
  32. package/dist/chunks/{chunk-EHTPDXTS.js → chunk-SZXT3PDQ.js} +3 -294
  33. package/dist/chunks/{chunk-CB3I3QIT.js → chunk-UDWRZXIT.js} +193 -85
  34. package/dist/chunks/{chunk-PASZMRTZ.js → chunk-UOB64NBX.js} +5 -5
  35. package/dist/chunks/{chunk-7TJLLZPN.js → chunk-VO6PK3ZA.js} +6 -10
  36. package/dist/chunks/{chunk-DREO3DFB.js → chunk-VZSZBD4V.js} +16 -6
  37. package/dist/chunks/{chunk-VOBBH2SB.js → chunk-W346YNDN.js} +0 -49
  38. package/dist/chunks/{chunk-UESEGACQ.js → chunk-XOED7Y6Z.js} +3 -3
  39. package/dist/chunks/{chunk-7S3QUMIG.js → chunk-YS6EDZHB.js} +3 -5
  40. package/dist/chunks/{chunk-4RGSUV5C.js → chunk-ZVLPUREX.js} +2 -2
  41. package/dist/chunks/{compile-vercel-config-4NKPN3EG.js → compile-vercel-config-ELXMKFUY.js} +4 -4
  42. package/dist/chunks/{delete-NCMDC3IU.js → delete-BO3RQ3F6.js} +14 -14
  43. package/dist/chunks/{disable-Z7DXY4AY.js → disable-WRXXRGYR.js} +14 -13
  44. package/dist/chunks/{discard-4ILK3ULP.js → discard-5XOTKSVP.js} +13 -12
  45. package/dist/chunks/{edit-ROJQCTWR.js → edit-ML2P3MKK.js} +17 -18
  46. package/dist/chunks/{enable-TAVCLAEC.js → enable-E5YCEICZ.js} +14 -13
  47. package/dist/chunks/{export-YTSIGJFX.js → export-EUFPKG5T.js} +15 -14
  48. package/dist/chunks/{image-LORSHERP.js → image-5WOBJQFO.js} +6 -8
  49. package/dist/chunks/{inspect-OHDU2SVS.js → inspect-7PJE37AJ.js} +8 -10
  50. package/dist/chunks/{inspect-L4UIWOXO.js → inspect-BX26XAK2.js} +11 -15
  51. package/dist/chunks/{inspect-A2X7RTP4.js → inspect-I3ZNL35B.js} +8 -10
  52. package/dist/chunks/{inspect-5C4UHSCT.js → inspect-W4SOI7QI.js} +10 -12
  53. package/dist/chunks/{list-FGVDMSFN.js → list-44G7AUFR.js} +8 -10
  54. package/dist/chunks/{list-P2B5MHON.js → list-VLFAOPR5.js} +10 -13
  55. package/dist/chunks/{login-4BK3VGII.js → login-CL57KXDR.js} +11 -14
  56. package/dist/chunks/{ls-WDRFGE2J.js → ls-42JFBIDV.js} +12 -15
  57. package/dist/chunks/{ls-YXKRRYTL.js → ls-EZRL6SGP.js} +10 -13
  58. package/dist/chunks/{ls-NU4D6TLG.js → ls-KIAXSLDB.js} +10 -13
  59. package/dist/chunks/{ls-RAC5LMTR.js → ls-VD2DNABR.js} +9 -12
  60. package/dist/chunks/{publish-DGF2TQCQ.js → publish-C3QAGQJ7.js} +13 -12
  61. package/dist/chunks/{query-NWW6RDHK.js → query-XC3Y3EBD.js} +10 -12
  62. package/dist/chunks/{reorder-TTZBKCEB.js → reorder-L56M5KP3.js} +17 -16
  63. package/dist/chunks/{restore-DG3LZMHQ.js → restore-E5LGXKS3.js} +19 -18
  64. package/dist/chunks/{rm-7WXXLTXF.js → rm-AG3FDPTQ.js} +10 -13
  65. package/dist/chunks/{rm-2VBE4C2V.js → rm-EF4HUVO2.js} +9 -12
  66. package/dist/chunks/{rm-U2DFRDKE.js → rm-KGRSF2OY.js} +8 -11
  67. package/dist/chunks/{rule-inspect-4NL3GGDB.js → rule-inspect-FRDI2PJF.js} +9 -12
  68. package/dist/chunks/{rules-DABNOUNG.js → rules-OEOYTZ6U.js} +9 -11
  69. package/dist/chunks/{schema-4RRRUUOO.js → schema-OEWP27BI.js} +11 -12
  70. package/dist/chunks/{tags-MLX3AHHK.js → tags-RUHWH6XO.js} +5 -7
  71. package/dist/chunks/{types-2TPA6J4G.js → types-QKLIFDDP.js} +5 -5
  72. package/dist/chunks/{update-YXH7WWTN.js → update-BEXGZY7H.js} +9 -12
  73. package/dist/commands/build/index.js +26 -31
  74. package/dist/commands/deploy/index.js +61 -77
  75. package/dist/commands/dev/index.js +193 -159
  76. package/dist/commands/env/index.js +70 -47
  77. package/dist/commands/link/index.js +25 -29
  78. package/dist/commands/list/index.js +13 -17
  79. package/dist/commands-bulk.js +637 -620
  80. package/dist/index.js +23 -25
  81. package/dist/version.mjs +1 -1
  82. package/package.json +21 -21
  83. package/dist/chunks/chunk-DWU7JOO6.js +0 -158
  84. package/dist/chunks/chunk-IC4YEIGW.js +0 -101
  85. package/dist/chunks/chunk-IMUF5MGV.js +0 -81
  86. package/dist/chunks/chunk-SGL3NMOP.js +0 -86
@@ -11,7 +11,7 @@ import {
11
11
  PromptBackError,
12
12
  PromptCanceledError,
13
13
  getLocalPathConfig
14
- } from "./chunk-UESEGACQ.js";
14
+ } from "./chunk-XOED7Y6Z.js";
15
15
  import {
16
16
  DEFAULT_VERCEL_CONFIG_FILENAME,
17
17
  VERCEL_CONFIG_EXTENSIONS,
@@ -38,18 +38,18 @@ import {
38
38
  useKeypress,
39
39
  usePrefix,
40
40
  useState
41
- } from "./chunk-DDEPCAGE.js";
41
+ } from "./chunk-RGOP4OYL.js";
42
42
  import {
43
43
  require_load_json_file
44
44
  } from "./chunk-ECCWJHC6.js";
45
45
  import {
46
46
  parseArguments,
47
47
  require_strip_ansi
48
- } from "./chunk-EHTPDXTS.js";
48
+ } from "./chunk-SZXT3PDQ.js";
49
49
  import {
50
50
  APIError,
51
51
  NowError
52
- } from "./chunk-P6AK7SVK.js";
52
+ } from "./chunk-KSSNLCL4.js";
53
53
  import {
54
54
  pkg_default
55
55
  } 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-EHTPDXTS.js";
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 = [
@@ -5,13 +5,11 @@ const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
+ arg_common_default,
8
9
  getCommandName,
9
- getCommandNamePlain,
10
- normalizeFlagName,
11
10
  parseRetryAfterHeaderAsMillis,
12
- require_bytes,
13
- stripSensitiveAuthArgs
14
- } from "./chunk-P6AK7SVK.js";
11
+ require_bytes
12
+ } from "./chunk-KSSNLCL4.js";
15
13
  import {
16
14
  output_manager_default
17
15
  } from "./chunk-OX7KI3LF.js";
@@ -239,277 +237,6 @@ var require_string_width = __commonJS({
239
237
  }
240
238
  });
241
239
 
242
- // src/util/get-flags-specification.ts
243
- function getFlagsSpecification(options) {
244
- const flagsSpecification = {};
245
- for (const option of options) {
246
- flagsSpecification[`--${option.name}`] = option.type;
247
- if (option.shorthand) {
248
- flagsSpecification[`-${option.shorthand}`] = `--${option.name}`;
249
- }
250
- }
251
- return flagsSpecification;
252
- }
253
-
254
- // src/util/arg-common.ts
255
- var globalCommandOptions = [
256
- {
257
- name: "help",
258
- shorthand: "h",
259
- type: Boolean,
260
- description: "Output usage information",
261
- deprecated: false
262
- },
263
- {
264
- name: "version",
265
- shorthand: "v",
266
- type: Boolean,
267
- description: "Output the version number",
268
- deprecated: false
269
- },
270
- {
271
- name: "cwd",
272
- shorthand: null,
273
- type: String,
274
- argument: "DIR",
275
- description: "Sets the current working directory for a single run of a command",
276
- deprecated: false
277
- },
278
- {
279
- name: "local-config",
280
- shorthand: "A",
281
- type: String,
282
- argument: "FILE",
283
- description: "Path to the local `vercel.json` file",
284
- deprecated: false
285
- },
286
- {
287
- name: "global-config",
288
- shorthand: "Q",
289
- type: String,
290
- argument: "DIR",
291
- description: "Path to the global `.vercel` directory",
292
- deprecated: false
293
- },
294
- {
295
- name: "debug",
296
- shorthand: "d",
297
- type: Boolean,
298
- description: "Debug mode (default off)",
299
- deprecated: false
300
- },
301
- {
302
- name: "no-color",
303
- shorthand: null,
304
- type: Boolean,
305
- description: "No color mode (default off)",
306
- deprecated: false
307
- },
308
- {
309
- name: "non-interactive",
310
- shorthand: null,
311
- type: Boolean,
312
- description: "Run without interactive prompts; when an agent is detected this is the default",
313
- deprecated: false
314
- },
315
- {
316
- name: "scope",
317
- shorthand: "S",
318
- type: String,
319
- description: "Set a custom scope",
320
- deprecated: false
321
- },
322
- {
323
- name: "token",
324
- shorthand: "t",
325
- type: String,
326
- argument: "TOKEN",
327
- description: "Login token",
328
- deprecated: false
329
- },
330
- { name: "team", shorthand: "T", type: String, deprecated: false },
331
- { name: "api", shorthand: null, type: String, deprecated: false }
332
- ];
333
- var GLOBAL_CLI_FLAG_NAMES = (() => {
334
- const set = /* @__PURE__ */ new Set();
335
- for (const opt of globalCommandOptions) {
336
- set.add(`--${opt.name}`);
337
- if (opt.shorthand) {
338
- set.add(`-${opt.shorthand}`);
339
- }
340
- }
341
- return set;
342
- })();
343
- function globalCliFlagTakesValue(flagName) {
344
- const normalized = normalizeFlagName(flagName);
345
- for (const opt of globalCommandOptions) {
346
- if (`--${opt.name}` === normalized) {
347
- return opt.type === String;
348
- }
349
- if (opt.shorthand && `-${opt.shorthand}` === normalized) {
350
- return opt.type === String;
351
- }
352
- }
353
- return false;
354
- }
355
- var SUBCOMMAND_FLAG_TAKES_VALUE = /* @__PURE__ */ new Set([
356
- "--status",
357
- "--name",
358
- "--slug",
359
- "--version",
360
- // redirects list --version
361
- "--search",
362
- "--format",
363
- "--project",
364
- "--page",
365
- "--per-page"
366
- ]);
367
- function suggestionFlagTakesSeparateValue(flagName) {
368
- const name = normalizeFlagName(flagName);
369
- if (globalCliFlagTakesValue(name))
370
- return true;
371
- return SUBCOMMAND_FLAG_TAKES_VALUE.has(name);
372
- }
373
- function getSameSubcommandSuggestionFlags(args) {
374
- const safeArgs = stripSensitiveAuthArgs(args);
375
- const out = [];
376
- for (let i = 0; i < safeArgs.length; i++) {
377
- const a = safeArgs[i];
378
- if (!a.startsWith("-"))
379
- continue;
380
- out.push(a);
381
- if (a.includes("="))
382
- continue;
383
- const name = a;
384
- if (suggestionFlagTakesSeparateValue(name) && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-")) {
385
- out.push(safeArgs[++i]);
386
- }
387
- }
388
- return out;
389
- }
390
- var GLOBAL_OPTIONS = getFlagsSpecification(globalCommandOptions);
391
- var arg_common_default = () => GLOBAL_OPTIONS;
392
- var yesOption = {
393
- name: "yes",
394
- shorthand: "y",
395
- type: Boolean,
396
- deprecated: false,
397
- description: "Accept default value for all prompts"
398
- };
399
- var nextOption = {
400
- name: "next",
401
- shorthand: "N",
402
- type: Number,
403
- deprecated: false,
404
- description: "Show next page of results",
405
- argument: "MS"
406
- };
407
- var confirmOption = {
408
- name: "confirm",
409
- shorthand: "c",
410
- type: Boolean,
411
- deprecated: true
412
- };
413
- var limitOption = {
414
- name: "limit",
415
- shorthand: null,
416
- type: Number,
417
- deprecated: false,
418
- description: "Number of results to return per page (default: 20, max: 100)",
419
- argument: "NUMBER"
420
- };
421
- var forceOption = {
422
- name: "force",
423
- shorthand: "f",
424
- type: Boolean,
425
- deprecated: false
426
- };
427
- var formatOption = {
428
- name: "format",
429
- shorthand: "F",
430
- type: String,
431
- argument: "FORMAT",
432
- description: "Specify the output format (json)",
433
- deprecated: false
434
- };
435
- var jsonOption = {
436
- name: "json",
437
- shorthand: null,
438
- type: Boolean,
439
- deprecated: true,
440
- description: "DEPRECATED: Use --format=json instead"
441
- };
442
- var allOption = {
443
- name: "all",
444
- shorthand: "a",
445
- type: Boolean,
446
- deprecated: false,
447
- description: "List resources across all projects"
448
- };
449
- var projectOption = {
450
- name: "project",
451
- shorthand: null,
452
- type: String,
453
- argument: "NAME_OR_ID",
454
- description: "Project name or ID (defaults to the linked project)",
455
- deprecated: false
456
- };
457
- var deploymentOption = {
458
- name: "deployment",
459
- shorthand: null,
460
- type: String,
461
- deprecated: false,
462
- description: "The deployment ID or URL to target",
463
- argument: "ID|URL"
464
- };
465
- var protectionBypassOption = {
466
- name: "protection-bypass",
467
- shorthand: null,
468
- type: String,
469
- deprecated: false,
470
- description: "Protection bypass secret for accessing protected deployments",
471
- argument: "SECRET"
472
- };
473
- var GLOBAL_LONG_TO_OPT = /* @__PURE__ */ new Map();
474
- var GLOBAL_SHORT_TO_OPT = /* @__PURE__ */ new Map();
475
- for (const opt of globalCommandOptions) {
476
- GLOBAL_LONG_TO_OPT.set(`--${opt.name}`, opt);
477
- if (opt.shorthand) {
478
- GLOBAL_SHORT_TO_OPT.set(`-${opt.shorthand}`, opt);
479
- }
480
- }
481
- function getGlobalFlagsOnlyFromArgs(args) {
482
- const safeArgs = stripSensitiveAuthArgs(args);
483
- const out = [];
484
- for (let i = 0; i < safeArgs.length; i++) {
485
- const a = safeArgs[i];
486
- let opt;
487
- if (a.startsWith("--") && a.includes("=")) {
488
- const name = a.slice(2).split("=")[0];
489
- opt = GLOBAL_LONG_TO_OPT.get(`--${name}`);
490
- if (opt)
491
- out.push(a);
492
- continue;
493
- }
494
- opt = GLOBAL_LONG_TO_OPT.get(a) || GLOBAL_SHORT_TO_OPT.get(a);
495
- if (!opt)
496
- continue;
497
- out.push(a);
498
- if (opt.type === String && !a.includes("=")) {
499
- const next = safeArgs[i + 1];
500
- if (next && !next.startsWith("-")) {
501
- out.push(next);
502
- i++;
503
- }
504
- }
505
- }
506
- return out;
507
- }
508
- function getCommandNameWithGlobalFlags(commandTemplate, argv) {
509
- const flags = getGlobalFlagsOnlyFromArgs(argv.slice(2));
510
- return getCommandNamePlain(`${commandTemplate} ${flags.join(" ")}`.trim());
511
- }
512
-
513
240
  // src/util/get-args.ts
514
241
  var import_arg = __toESM(require_arg(), 1);
515
242
  function getArgs(argv, argsOptions, argOptions = {}) {
@@ -606,24 +333,6 @@ function printError(error2) {
606
333
  }
607
334
 
608
335
  export {
609
- getFlagsSpecification,
610
- globalCommandOptions,
611
- GLOBAL_CLI_FLAG_NAMES,
612
- globalCliFlagTakesValue,
613
- getSameSubcommandSuggestionFlags,
614
- yesOption,
615
- nextOption,
616
- confirmOption,
617
- limitOption,
618
- forceOption,
619
- formatOption,
620
- jsonOption,
621
- allOption,
622
- projectOption,
623
- deploymentOption,
624
- protectionBypassOption,
625
- getGlobalFlagsOnlyFromArgs,
626
- getCommandNameWithGlobalFlags,
627
336
  getArgs,
628
337
  parseArguments,
629
338
  require_strip_ansi,