vercel 34.1.1 → 34.1.3

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 (2) hide show
  1. package/dist/index.js +33 -34
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -112642,7 +112642,7 @@ var init_command = __esm({
112642
112642
  name: "next",
112643
112643
  description: "Show next page of results",
112644
112644
  argument: "MS",
112645
- shorthand: "n",
112645
+ shorthand: "N",
112646
112646
  type: String,
112647
112647
  deprecated: false
112648
112648
  },
@@ -112655,12 +112655,13 @@ var init_command = __esm({
112655
112655
  },
112656
112656
  {
112657
112657
  name: "limit",
112658
- shorthand: "n",
112658
+ shorthand: null,
112659
112659
  description: "Number of results to return per page (default: 20, max: 100)",
112660
112660
  argument: "NUMBER",
112661
112661
  type: String,
112662
112662
  deprecated: false
112663
- }
112663
+ },
112664
+ { name: "json", shorthand: null, type: Boolean, deprecated: false }
112664
112665
  ],
112665
112666
  examples: [
112666
112667
  {
@@ -112680,38 +112681,52 @@ var init_command = __esm({
112680
112681
  }
112681
112682
  });
112682
112683
 
112684
+ // src/util/get-flags-specification.ts
112685
+ function getFlagsSpecification(options) {
112686
+ const flagsSpecification = {};
112687
+ for (const option of options) {
112688
+ flagsSpecification[`--${option.name}`] = option.type;
112689
+ if (option.shorthand) {
112690
+ flagsSpecification[`-${option.shorthand}`] = `--${option.name}`;
112691
+ }
112692
+ }
112693
+ return flagsSpecification;
112694
+ }
112695
+ var init_get_flags_specification = __esm({
112696
+ "src/util/get-flags-specification.ts"() {
112697
+ "use strict";
112698
+ }
112699
+ });
112700
+
112683
112701
  // src/commands/alias/index.ts
112684
112702
  var alias_exports = {};
112685
112703
  __export3(alias_exports, {
112686
112704
  default: () => alias
112687
112705
  });
112688
112706
  async function alias(client2) {
112689
- let argv2;
112707
+ let parsedArguments;
112708
+ const flagsSpecification = getFlagsSpecification(aliasCommand.options);
112690
112709
  try {
112691
- argv2 = getArgs(client2.argv.slice(2), {
112692
- "--json": Boolean,
112693
- "--yes": Boolean,
112694
- "--next": Number,
112695
- "--limit": Number,
112696
- "-y": "--yes",
112697
- "-N": "--next"
112698
- });
112710
+ parsedArguments = parseArguments(client2.argv.slice(2), flagsSpecification);
112699
112711
  } catch (err) {
112700
112712
  handleError(err);
112701
112713
  return 1;
112702
112714
  }
112703
- if (argv2["--help"]) {
112715
+ if (parsedArguments.flags["--help"]) {
112704
112716
  client2.output.print(help2(aliasCommand, { columns: client2.stderr.columns }));
112705
112717
  return 2;
112706
112718
  }
112707
- const { subcommand: subcommand2, args: args2 } = getSubcommand(argv2._.slice(1), COMMAND_CONFIG);
112719
+ const { subcommand: subcommand2, args: args2 } = getSubcommand(
112720
+ parsedArguments.args.slice(1),
112721
+ COMMAND_CONFIG
112722
+ );
112708
112723
  switch (subcommand2) {
112709
112724
  case "ls":
112710
- return ls(client2, argv2, args2);
112725
+ return ls(client2, parsedArguments.flags, args2);
112711
112726
  case "rm":
112712
- return rm(client2, argv2, args2);
112727
+ return rm(client2, parsedArguments.flags, args2);
112713
112728
  default:
112714
- return set(client2, argv2, args2);
112729
+ return set(client2, parsedArguments.flags, args2);
112715
112730
  }
112716
112731
  }
112717
112732
  var COMMAND_CONFIG;
@@ -112726,6 +112741,7 @@ var init_alias = __esm({
112726
112741
  init_rm();
112727
112742
  init_set();
112728
112743
  init_command();
112744
+ init_get_flags_specification();
112729
112745
  COMMAND_CONFIG = {
112730
112746
  default: ["set"],
112731
112747
  ls: ["ls", "list"],
@@ -147950,23 +147966,6 @@ var init_validate_archive_format = __esm({
147950
147966
  }
147951
147967
  });
147952
147968
 
147953
- // src/util/get-flags-specification.ts
147954
- function getFlagsSpecification(options) {
147955
- const flagsSpecification = {};
147956
- for (const option of options) {
147957
- flagsSpecification[`--${option.name}`] = option.type;
147958
- if (option.shorthand) {
147959
- flagsSpecification[`-${option.shorthand}`] = `--${option.name}`;
147960
- }
147961
- }
147962
- return flagsSpecification;
147963
- }
147964
- var init_get_flags_specification = __esm({
147965
- "src/util/get-flags-specification.ts"() {
147966
- "use strict";
147967
- }
147968
- });
147969
-
147970
147969
  // src/util/get-project-name.ts
147971
147970
  function getProjectName({
147972
147971
  argv: argv2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "34.1.1",
3
+ "version": "34.1.3",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -25,9 +25,9 @@
25
25
  "@vercel/fun": "1.1.0",
26
26
  "@vercel/go": "3.1.1",
27
27
  "@vercel/hydrogen": "1.0.2",
28
- "@vercel/next": "4.2.1",
28
+ "@vercel/next": "4.2.3",
29
29
  "@vercel/node": "3.0.27",
30
- "@vercel/python": "4.1.1",
30
+ "@vercel/python": "4.2.0",
31
31
  "@vercel/redwood": "2.0.8",
32
32
  "@vercel/remix-builder": "2.1.5",
33
33
  "@vercel/ruby": "2.0.5",