vercel 34.1.2 → 34.1.4
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/index.js +52 -55
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -52648,8 +52648,8 @@ var GA_TRACKING_ID, SENTRY_DSN;
|
|
52648
52648
|
var init_constants = __esm({
|
52649
52649
|
"src/util/constants.ts"() {
|
52650
52650
|
"use strict";
|
52651
|
-
GA_TRACKING_ID =
|
52652
|
-
SENTRY_DSN =
|
52651
|
+
GA_TRACKING_ID = void 0;
|
52652
|
+
SENTRY_DSN = void 0;
|
52653
52653
|
}
|
52654
52654
|
});
|
52655
52655
|
|
@@ -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: "
|
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:
|
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
|
112707
|
+
let parsedArguments;
|
112708
|
+
const flagsSpecification = getFlagsSpecification(aliasCommand.options);
|
112690
112709
|
try {
|
112691
|
-
|
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 (
|
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(
|
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,
|
112725
|
+
return ls(client2, parsedArguments.flags, args2);
|
112711
112726
|
case "rm":
|
112712
|
-
return rm(client2,
|
112727
|
+
return rm(client2, parsedArguments.flags, args2);
|
112713
112728
|
default:
|
112714
|
-
return set(client2,
|
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"],
|
@@ -113646,7 +113662,7 @@ var init_command2 = __esm({
|
|
113646
113662
|
description: "Automatically open each URL in the browser",
|
113647
113663
|
argument: "URL",
|
113648
113664
|
shorthand: "o",
|
113649
|
-
type:
|
113665
|
+
type: Boolean,
|
113650
113666
|
deprecated: false
|
113651
113667
|
},
|
113652
113668
|
{
|
@@ -113693,33 +113709,29 @@ async function bisect(client2) {
|
|
113693
113709
|
const { output: output2 } = client2;
|
113694
113710
|
const scope = await getScope(client2);
|
113695
113711
|
const { contextName } = scope;
|
113696
|
-
|
113697
|
-
|
113698
|
-
|
113699
|
-
|
113700
|
-
|
113701
|
-
|
113702
|
-
|
113703
|
-
|
113704
|
-
|
113705
|
-
"--run": String,
|
113706
|
-
"-r": "--run"
|
113707
|
-
});
|
113708
|
-
if (argv2["--help"]) {
|
113712
|
+
let parsedArgs = null;
|
113713
|
+
const flagsSpecification = getFlagsSpecification(bisectCommand.options);
|
113714
|
+
try {
|
113715
|
+
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification);
|
113716
|
+
} catch (error4) {
|
113717
|
+
handleError(error4);
|
113718
|
+
return 1;
|
113719
|
+
}
|
113720
|
+
if (parsedArgs.flags["--help"]) {
|
113709
113721
|
output2.print(help2(bisectCommand, { columns: client2.stderr.columns }));
|
113710
113722
|
return 2;
|
113711
113723
|
}
|
113712
|
-
let bad =
|
113724
|
+
let bad = parsedArgs.flags["--bad"] || await client2.input.text({
|
113713
113725
|
message: `Specify a URL where the bug occurs:`,
|
113714
113726
|
validate: (val) => val ? true : "A URL must be provided"
|
113715
113727
|
});
|
113716
|
-
let good =
|
113728
|
+
let good = parsedArgs.flags["--good"] || await client2.input.text({
|
113717
113729
|
message: `Specify a URL where the bug does not occur:`,
|
113718
113730
|
validate: (val) => val ? true : "A URL must be provided"
|
113719
113731
|
});
|
113720
|
-
let subpath =
|
113721
|
-
let run2 =
|
113722
|
-
const openEnabled =
|
113732
|
+
let subpath = parsedArgs.flags["--path"] || "";
|
113733
|
+
let run2 = parsedArgs.flags["--run"] || "";
|
113734
|
+
const openEnabled = parsedArgs.flags["--open"] || false;
|
113723
113735
|
if (run2) {
|
113724
113736
|
run2 = (0, import_path10.resolve)(run2);
|
113725
113737
|
}
|
@@ -113968,6 +113980,8 @@ var init_bisect = __esm({
|
|
113968
113980
|
init_get_deployment();
|
113969
113981
|
init_help();
|
113970
113982
|
init_command2();
|
113983
|
+
init_get_flags_specification();
|
113984
|
+
init_handle_error();
|
113971
113985
|
}
|
113972
113986
|
});
|
113973
113987
|
|
@@ -147950,23 +147964,6 @@ var init_validate_archive_format = __esm({
|
|
147950
147964
|
}
|
147951
147965
|
});
|
147952
147966
|
|
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
147967
|
// src/util/get-project-name.ts
|
147971
147968
|
function getProjectName({
|
147972
147969
|
argv: argv2,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "34.1.
|
3
|
+
"version": "34.1.4",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -25,7 +25,7 @@
|
|
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.
|
28
|
+
"@vercel/next": "4.2.4",
|
29
29
|
"@vercel/node": "3.0.27",
|
30
30
|
"@vercel/python": "4.2.0",
|
31
31
|
"@vercel/redwood": "2.0.8",
|