vercel 31.2.0 → 31.2.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 (2) hide show
  1. package/dist/index.js +145 -74
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -218477,6 +218477,84 @@ function getTargetsForAlias(args, { alias } = {}) {
218477
218477
  }
218478
218478
 
218479
218479
 
218480
+ /***/ }),
218481
+
218482
+ /***/ 22218:
218483
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
218484
+
218485
+ "use strict";
218486
+
218487
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
218488
+ exports.bisectCommand = void 0;
218489
+ const pkg_name_1 = __webpack_require__(79000);
218490
+ exports.bisectCommand = {
218491
+ name: 'bisect',
218492
+ description: 'Bisect the current project interactively.',
218493
+ arguments: [],
218494
+ options: [
218495
+ {
218496
+ name: 'bad',
218497
+ description: 'Known bad URL',
218498
+ argument: 'URL',
218499
+ shorthand: 'b',
218500
+ type: 'string',
218501
+ deprecated: false,
218502
+ multi: false,
218503
+ },
218504
+ {
218505
+ name: 'good',
218506
+ description: 'Known good URL',
218507
+ argument: 'URL',
218508
+ shorthand: 'g',
218509
+ type: 'string',
218510
+ deprecated: false,
218511
+ multi: false,
218512
+ },
218513
+ {
218514
+ name: 'open',
218515
+ description: 'Automatically open each URL in the browser',
218516
+ argument: 'URL',
218517
+ shorthand: 'o',
218518
+ type: 'string',
218519
+ deprecated: false,
218520
+ multi: false,
218521
+ },
218522
+ {
218523
+ name: 'path',
218524
+ description: 'Subpath of the deployment URL to test',
218525
+ argument: 'URL',
218526
+ shorthand: 'p',
218527
+ type: 'string',
218528
+ deprecated: false,
218529
+ multi: false,
218530
+ },
218531
+ {
218532
+ name: 'run',
218533
+ description: 'Test script to run for each deployment',
218534
+ argument: 'URL',
218535
+ shorthand: 'r',
218536
+ type: 'string',
218537
+ deprecated: false,
218538
+ multi: false,
218539
+ },
218540
+ ],
218541
+ examples: [
218542
+ {
218543
+ name: 'Bisect the current project interactively',
218544
+ value: `${(0, pkg_name_1.getPkgName)()} bisect`,
218545
+ },
218546
+ {
218547
+ name: 'Bisect with a known bad deployment',
218548
+ value: `${(0, pkg_name_1.getPkgName)()} bisect --bad example-310pce9i0.vercel.app`,
218549
+ },
218550
+ {
218551
+ name: 'Automated bisect with a run script',
218552
+ value: `${(0, pkg_name_1.getPkgName)()} bisect --run ./test.sh`,
218553
+ },
218554
+ ],
218555
+ };
218556
+
218557
+
218480
218558
  /***/ }),
218481
218559
 
218482
218560
  /***/ 37327:
@@ -218497,44 +218575,13 @@ const url_1 = __webpack_require__(78835);
218497
218575
  const box_1 = __importDefault(__webpack_require__(58587));
218498
218576
  const format_date_1 = __importDefault(__webpack_require__(738));
218499
218577
  const link_1 = __importDefault(__webpack_require__(39302));
218500
- const logo_1 = __importDefault(__webpack_require__(66669));
218501
218578
  const get_args_1 = __importDefault(__webpack_require__(2505));
218502
- const pkg_name_1 = __webpack_require__(79000);
218503
218579
  const normalize_url_1 = __webpack_require__(63623);
218504
218580
  const get_scope_1 = __importDefault(__webpack_require__(60324));
218505
218581
  const get_deployment_1 = __importDefault(__webpack_require__(84249));
218506
- const pkgName = (0, pkg_name_1.getPkgName)();
218507
- const help = () => {
218508
- console.log(`
218509
- ${chalk_1.default.bold(`${logo_1.default} ${pkgName} bisect`)} [options]
218510
-
218511
- ${chalk_1.default.dim('Options:')}
218512
-
218513
- -h, --help Output usage information
218514
- -d, --debug Debug mode [off]
218515
- --no-color No color mode [off]
218516
- -b, --bad Known bad URL
218517
- -g, --good Known good URL
218518
- -o, --open Automatically open each URL in the browser
218519
- -p, --path Subpath of the deployment URL to test
218520
- -r, --run Test script to run for each deployment
218521
-
218522
- ${chalk_1.default.dim('Examples:')}
218523
-
218524
- ${chalk_1.default.gray('–')} Bisect the current project interactively
218525
-
218526
- ${chalk_1.default.cyan(`$ ${pkgName} bisect`)}
218527
-
218528
- ${chalk_1.default.gray('–')} Bisect with a known bad deployment
218529
-
218530
- ${chalk_1.default.cyan(`$ ${pkgName} bisect --bad example-310pce9i0.vercel.app`)}
218531
-
218532
- ${chalk_1.default.gray('–')} Automated bisect with a run script
218533
-
218534
- ${chalk_1.default.cyan(`$ ${pkgName} bisect --run ./test.sh`)}
218535
- `);
218536
- };
218537
- async function main(client) {
218582
+ const help_1 = __webpack_require__(58219);
218583
+ const command_1 = __webpack_require__(22218);
218584
+ async function bisect(client) {
218538
218585
  const { output } = client;
218539
218586
  const scope = await (0, get_scope_1.default)(client);
218540
218587
  const { contextName } = scope;
@@ -218551,7 +218598,7 @@ async function main(client) {
218551
218598
  '-r': '--run',
218552
218599
  });
218553
218600
  if (argv['--help']) {
218554
- help();
218601
+ output.print((0, help_1.help)(command_1.bisectCommand, { columns: client.stderr.columns }));
218555
218602
  return 2;
218556
218603
  }
218557
218604
  let bad = argv['--bad'] ||
@@ -218761,7 +218808,7 @@ async function main(client) {
218761
218808
  output.print('\n');
218762
218809
  return 0;
218763
218810
  }
218764
- exports.default = main;
218811
+ exports.default = bisect;
218765
218812
  function getCommit(deployment) {
218766
218813
  const sha = deployment.meta?.githubCommitSha ||
218767
218814
  deployment.meta?.gitlabCommitSha ||
@@ -225903,7 +225950,61 @@ exports.default = async (client) => {
225903
225950
 
225904
225951
  /***/ }),
225905
225952
 
225906
- /***/ 5445:
225953
+ /***/ 88359:
225954
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
225955
+
225956
+ "use strict";
225957
+
225958
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
225959
+ exports.removeCommand = void 0;
225960
+ const pkg_name_1 = __webpack_require__(79000);
225961
+ exports.removeCommand = {
225962
+ name: 'remove',
225963
+ description: 'Remove a deployment by name or id.',
225964
+ arguments: [
225965
+ {
225966
+ name: '...deploymentId|deploymentName',
225967
+ required: true,
225968
+ },
225969
+ ],
225970
+ options: [
225971
+ {
225972
+ name: 'yes',
225973
+ shorthand: 'y',
225974
+ type: 'boolean',
225975
+ deprecated: false,
225976
+ description: 'Skip confirmation',
225977
+ multi: false,
225978
+ },
225979
+ {
225980
+ name: 'safe',
225981
+ shorthand: 's',
225982
+ type: 'boolean',
225983
+ deprecated: false,
225984
+ description: 'Skip deployments with an active alias',
225985
+ multi: false,
225986
+ },
225987
+ ],
225988
+ examples: [
225989
+ {
225990
+ name: 'Remove a deployment identified by `deploymentId`',
225991
+ value: `${(0, pkg_name_1.getPkgName)()} remove my-app`,
225992
+ },
225993
+ {
225994
+ name: 'Remove all deployments with name `my-app`',
225995
+ value: `${(0, pkg_name_1.getPkgName)()} remove deploymentId`,
225996
+ },
225997
+ {
225998
+ name: 'Remove two deployments with IDs `eyWt6zuSdeus` and `uWHoA9RQ1d1o`',
225999
+ value: `${(0, pkg_name_1.getPkgName)()} remove eyWt6zuSdeus uWHoA9RQ1d1o`,
226000
+ },
226001
+ ],
226002
+ };
226003
+
226004
+
226005
+ /***/ }),
226006
+
226007
+ /***/ 86614:
225907
226008
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
225908
226009
 
225909
226010
  "use strict";
@@ -225918,7 +226019,6 @@ const pluralize_1 = __importDefault(__webpack_require__(43669));
225918
226019
  const text_table_1 = __importDefault(__webpack_require__(43362));
225919
226020
  const util_1 = __importDefault(__webpack_require__(4058));
225920
226021
  const get_aliases_1 = __importDefault(__webpack_require__(21674));
225921
- const logo_1 = __importDefault(__webpack_require__(66669));
225922
226022
  const elapsed_1 = __importDefault(__webpack_require__(14099));
225923
226023
  const url_1 = __webpack_require__(84265);
225924
226024
  const get_scope_1 = __importDefault(__webpack_require__(60324));
@@ -225931,38 +226031,9 @@ const pkg_name_1 = __webpack_require__(79000);
225931
226031
  const get_args_1 = __importDefault(__webpack_require__(2505));
225932
226032
  const handle_error_1 = __importDefault(__webpack_require__(64377));
225933
226033
  const now_error_1 = __webpack_require__(22216);
225934
- const help = () => {
225935
- console.log(`
225936
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} remove`)} [...deploymentId|deploymentName]
225937
-
225938
- ${chalk_1.default.dim('Options:')}
225939
-
225940
- -h, --help Output usage information
225941
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
225942
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
225943
- -d, --debug Debug mode [off]
225944
- --no-color No color mode [off]
225945
- -t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
225946
- -y, --yes Skip confirmation
225947
- -s, --safe Skip deployments with an active alias
225948
- -S, --scope Set a custom scope
225949
-
225950
- ${chalk_1.default.dim('Examples:')}
225951
-
225952
- ${chalk_1.default.gray('–')} Remove a deployment identified by ${chalk_1.default.dim('`deploymentId`')}
225953
-
225954
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm deploymentId`)}
225955
-
225956
- ${chalk_1.default.gray('–')} Remove all deployments with name ${chalk_1.default.dim('`my-app`')}
225957
-
225958
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm my-app`)}
225959
-
225960
- ${chalk_1.default.gray('–')} Remove two deployments with IDs ${chalk_1.default.dim('`eyWt6zuSdeus`')} and ${chalk_1.default.dim('`uWHoA9RQ1d1o`')}
225961
-
225962
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm eyWt6zuSdeus uWHoA9RQ1d1o`)}
225963
- `);
225964
- };
225965
- async function main(client) {
226034
+ const help_1 = __webpack_require__(58219);
226035
+ const command_1 = __webpack_require__(88359);
226036
+ async function remove(client) {
225966
226037
  let argv;
225967
226038
  try {
225968
226039
  argv = (0, get_args_1.default)(client.argv.slice(2), {
@@ -225985,12 +226056,12 @@ async function main(client) {
225985
226056
  const ids = argv._;
225986
226057
  const { success, error, log } = output;
225987
226058
  if (argv['--help'] || ids[0] === 'help') {
225988
- help();
226059
+ output.print((0, help_1.help)(command_1.removeCommand, { columns: client.stderr.columns }));
225989
226060
  return 2;
225990
226061
  }
225991
226062
  if (ids.length < 1) {
225992
226063
  error(`${(0, pkg_name_1.getCommandName)('rm')} expects at least one argument`);
225993
- help();
226064
+ output.print((0, help_1.help)(command_1.removeCommand, { columns: client.stderr.columns }));
225994
226065
  return 1;
225995
226066
  }
225996
226067
  const invalidName = ids.find(name => !(0, is_valid_name_1.isValidName)(name));
@@ -226100,7 +226171,7 @@ async function main(client) {
226100
226171
  });
226101
226172
  return 0;
226102
226173
  }
226103
- exports.default = main;
226174
+ exports.default = remove;
226104
226175
  function readConfirmation(deployments, projects, output) {
226105
226176
  return new Promise(resolve => {
226106
226177
  if (deployments.length > 0) {
@@ -227655,7 +227726,7 @@ const main = async () => {
227655
227726
  func = __webpack_require__(29281).default;
227656
227727
  break;
227657
227728
  case 'remove':
227658
- func = __webpack_require__(5445).default;
227729
+ func = __webpack_require__(86614).default;
227659
227730
  break;
227660
227731
  case 'rollback':
227661
227732
  func = __webpack_require__(78339).default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "31.2.0",
3
+ "version": "31.2.1",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -26,12 +26,12 @@
26
26
  "@vercel/go": "2.5.1",
27
27
  "@vercel/hydrogen": "0.0.64",
28
28
  "@vercel/next": "3.9.3",
29
- "@vercel/node": "2.15.6",
29
+ "@vercel/node": "2.15.7",
30
30
  "@vercel/python": "3.1.60",
31
31
  "@vercel/redwood": "1.1.15",
32
32
  "@vercel/remix-builder": "1.9.0",
33
33
  "@vercel/ruby": "1.3.76",
34
- "@vercel/static-build": "1.3.42"
34
+ "@vercel/static-build": "1.3.43"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@alex_neo/jest-expect-message": "1.0.5",