vercel 31.1.1 → 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 +237 -86
  2. package/package.json +5 -5
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 ||
@@ -223317,6 +223364,84 @@ const strip_ansi_1 = __importDefault(__webpack_require__(66884));
223317
223364
  const constants_1 = __webpack_require__(98551);
223318
223365
  const INDENT = ' '.repeat(2);
223319
223366
  const NEWLINE = '\n';
223367
+ const globalCommandOptions = [
223368
+ {
223369
+ name: 'help',
223370
+ shorthand: 'h',
223371
+ type: 'string',
223372
+ description: 'Output usage information',
223373
+ deprecated: false,
223374
+ multi: false,
223375
+ },
223376
+ {
223377
+ name: 'version',
223378
+ shorthand: 'v',
223379
+ type: 'string',
223380
+ description: 'Output the version number',
223381
+ deprecated: false,
223382
+ multi: false,
223383
+ },
223384
+ {
223385
+ name: 'cwd',
223386
+ shorthand: null,
223387
+ type: 'string',
223388
+ argument: 'DIR',
223389
+ description: 'Sets the current working directory for a single run of a command',
223390
+ deprecated: false,
223391
+ multi: false,
223392
+ },
223393
+ {
223394
+ name: 'local-config',
223395
+ shorthand: 'A',
223396
+ type: 'string',
223397
+ argument: 'FILE',
223398
+ description: 'Path to the local `vercel.json` file',
223399
+ deprecated: false,
223400
+ multi: false,
223401
+ },
223402
+ {
223403
+ name: 'global-config',
223404
+ shorthand: 'Q',
223405
+ type: 'string',
223406
+ argument: 'DIR',
223407
+ description: 'Path to the global `.vercel` directory',
223408
+ deprecated: false,
223409
+ multi: false,
223410
+ },
223411
+ {
223412
+ name: 'debug',
223413
+ shorthand: 'd',
223414
+ type: 'string',
223415
+ description: 'Debug mode (default off)',
223416
+ deprecated: false,
223417
+ multi: false,
223418
+ },
223419
+ {
223420
+ name: 'no-color',
223421
+ shorthand: null,
223422
+ type: 'string',
223423
+ description: 'No color mode (default off)',
223424
+ deprecated: false,
223425
+ multi: false,
223426
+ },
223427
+ {
223428
+ name: 'scope',
223429
+ shorthand: 'S',
223430
+ type: 'string',
223431
+ description: 'Set a custom scope',
223432
+ deprecated: false,
223433
+ multi: false,
223434
+ },
223435
+ {
223436
+ name: 'token',
223437
+ shorthand: 't',
223438
+ type: 'string',
223439
+ argument: 'TOKEN',
223440
+ description: 'Login token',
223441
+ deprecated: false,
223442
+ multi: false,
223443
+ },
223444
+ ];
223320
223445
  function calcLineLength(line) {
223321
223446
  return (0, strip_ansi_1.default)(lineToString(line)).length;
223322
223447
  }
@@ -223362,19 +223487,22 @@ function buildCommandSynopsisLine(command) {
223362
223487
  return lineToString(line);
223363
223488
  }
223364
223489
  exports.buildCommandSynopsisLine = buildCommandSynopsisLine;
223365
- function buildCommandOptionLines(command, options) {
223490
+ function buildCommandOptionLines(commandOptions, options, sectionTitle) {
223366
223491
  // Filter out deprecated and intentionally undocumented options
223367
- command.options = command.options.filter(option => !option.deprecated && option.description !== undefined);
223492
+ commandOptions = commandOptions.filter(option => !option.deprecated && option.description !== undefined);
223493
+ if (commandOptions.length === 0) {
223494
+ return '';
223495
+ }
223368
223496
  // Initialize output array with header and empty line
223369
- const outputArray = [chalk_1.default.dim(`Options:`), ''];
223497
+ const outputArray = [`${chalk_1.default.dim(sectionTitle)}:`, ''];
223370
223498
  // Start building option lines
223371
223499
  const optionLines = [];
223372
223500
  // Sort command options alphabetically
223373
- command.options.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
223501
+ commandOptions.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
223374
223502
  // Keep track of longest "start" of an option line to determine description spacing
223375
223503
  let maxLineStartLength = 0;
223376
223504
  // Iterate over options and create the "start" of each option (e.g. ` -b, --build-env <key=value>`)
223377
- for (const option of command.options) {
223505
+ for (const option of commandOptions) {
223378
223506
  const startLine = [INDENT];
223379
223507
  if (option.shorthand) {
223380
223508
  startLine.push(`-${option.shorthand},`);
@@ -223414,7 +223542,7 @@ function buildCommandOptionLines(command, options) {
223414
223542
  */
223415
223543
  for (let i = 0; i < optionLines.length; i++) {
223416
223544
  const optionLine = optionLines[i];
223417
- const option = command.options[i];
223545
+ const option = commandOptions[i];
223418
223546
  // Add only 2 spaces to the longest line, and then make all shorter lines the same length.
223419
223547
  optionLine.push(' '.repeat(2 + (maxLineStartLength - calcLineLength(optionLine))));
223420
223548
  // Descriptions may be longer than max line length. Wrap them to the same column as the first description line
@@ -223436,9 +223564,6 @@ function buildCommandOptionLines(command, options) {
223436
223564
  for (const line of lines) {
223437
223565
  outputArray.push(lineToString(line));
223438
223566
  }
223439
- // add an empty line in between in each option block for readability (skip the last block)
223440
- if (i !== optionLines.length - 1)
223441
- outputArray.push('');
223442
223567
  }
223443
223568
  // return the entire list of options as a single string after delete the last '\n' added to the option list
223444
223569
  return outputArrayToString(outputArray);
@@ -223476,7 +223601,9 @@ function buildHelpOutput(command, options) {
223476
223601
  '',
223477
223602
  command.description,
223478
223603
  '',
223479
- buildCommandOptionLines(command, options),
223604
+ buildCommandOptionLines(command.options, options, 'Options'),
223605
+ '',
223606
+ buildCommandOptionLines(globalCommandOptions, options, 'Global Options'),
223480
223607
  '',
223481
223608
  buildCommandExampleLines(command),
223482
223609
  '',
@@ -225823,7 +225950,61 @@ exports.default = async (client) => {
225823
225950
 
225824
225951
  /***/ }),
225825
225952
 
225826
- /***/ 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:
225827
226008
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
225828
226009
 
225829
226010
  "use strict";
@@ -225838,7 +226019,6 @@ const pluralize_1 = __importDefault(__webpack_require__(43669));
225838
226019
  const text_table_1 = __importDefault(__webpack_require__(43362));
225839
226020
  const util_1 = __importDefault(__webpack_require__(4058));
225840
226021
  const get_aliases_1 = __importDefault(__webpack_require__(21674));
225841
- const logo_1 = __importDefault(__webpack_require__(66669));
225842
226022
  const elapsed_1 = __importDefault(__webpack_require__(14099));
225843
226023
  const url_1 = __webpack_require__(84265);
225844
226024
  const get_scope_1 = __importDefault(__webpack_require__(60324));
@@ -225851,38 +226031,9 @@ const pkg_name_1 = __webpack_require__(79000);
225851
226031
  const get_args_1 = __importDefault(__webpack_require__(2505));
225852
226032
  const handle_error_1 = __importDefault(__webpack_require__(64377));
225853
226033
  const now_error_1 = __webpack_require__(22216);
225854
- const help = () => {
225855
- console.log(`
225856
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} remove`)} [...deploymentId|deploymentName]
225857
-
225858
- ${chalk_1.default.dim('Options:')}
225859
-
225860
- -h, --help Output usage information
225861
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
225862
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
225863
- -d, --debug Debug mode [off]
225864
- --no-color No color mode [off]
225865
- -t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
225866
- -y, --yes Skip confirmation
225867
- -s, --safe Skip deployments with an active alias
225868
- -S, --scope Set a custom scope
225869
-
225870
- ${chalk_1.default.dim('Examples:')}
225871
-
225872
- ${chalk_1.default.gray('–')} Remove a deployment identified by ${chalk_1.default.dim('`deploymentId`')}
225873
-
225874
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm deploymentId`)}
225875
-
225876
- ${chalk_1.default.gray('–')} Remove all deployments with name ${chalk_1.default.dim('`my-app`')}
225877
-
225878
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm my-app`)}
225879
-
225880
- ${chalk_1.default.gray('–')} Remove two deployments with IDs ${chalk_1.default.dim('`eyWt6zuSdeus`')} and ${chalk_1.default.dim('`uWHoA9RQ1d1o`')}
225881
-
225882
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm eyWt6zuSdeus uWHoA9RQ1d1o`)}
225883
- `);
225884
- };
225885
- async function main(client) {
226034
+ const help_1 = __webpack_require__(58219);
226035
+ const command_1 = __webpack_require__(88359);
226036
+ async function remove(client) {
225886
226037
  let argv;
225887
226038
  try {
225888
226039
  argv = (0, get_args_1.default)(client.argv.slice(2), {
@@ -225905,12 +226056,12 @@ async function main(client) {
225905
226056
  const ids = argv._;
225906
226057
  const { success, error, log } = output;
225907
226058
  if (argv['--help'] || ids[0] === 'help') {
225908
- help();
226059
+ output.print((0, help_1.help)(command_1.removeCommand, { columns: client.stderr.columns }));
225909
226060
  return 2;
225910
226061
  }
225911
226062
  if (ids.length < 1) {
225912
226063
  error(`${(0, pkg_name_1.getCommandName)('rm')} expects at least one argument`);
225913
- help();
226064
+ output.print((0, help_1.help)(command_1.removeCommand, { columns: client.stderr.columns }));
225914
226065
  return 1;
225915
226066
  }
225916
226067
  const invalidName = ids.find(name => !(0, is_valid_name_1.isValidName)(name));
@@ -226020,7 +226171,7 @@ async function main(client) {
226020
226171
  });
226021
226172
  return 0;
226022
226173
  }
226023
- exports.default = main;
226174
+ exports.default = remove;
226024
226175
  function readConfirmation(deployments, projects, output) {
226025
226176
  return new Promise(resolve => {
226026
226177
  if (deployments.length > 0) {
@@ -227575,7 +227726,7 @@ const main = async () => {
227575
227726
  func = __webpack_require__(29281).default;
227576
227727
  break;
227577
227728
  case 'remove':
227578
- func = __webpack_require__(5445).default;
227729
+ func = __webpack_require__(86614).default;
227579
227730
  break;
227580
227731
  case 'rollback':
227581
227732
  func = __webpack_require__(78339).default;
@@ -230277,8 +230428,8 @@ exports.default = readConfig;
230277
230428
  Object.defineProperty(exports, "__esModule", ({ value: true }));
230278
230429
  exports.SENTRY_DSN = exports.GA_TRACKING_ID = void 0;
230279
230430
  // This file is auto-generated
230280
- exports.GA_TRACKING_ID = undefined;
230281
- exports.SENTRY_DSN = undefined;
230431
+ exports.GA_TRACKING_ID = "UA-117491914-3";
230432
+ exports.SENTRY_DSN = "https://26a24e59ba954011919a524b341b6ab5@sentry.io/1323225";
230282
230433
 
230283
230434
 
230284
230435
  /***/ }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "31.1.1",
3
+ "version": "31.2.1",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -25,13 +25,13 @@
25
25
  "@vercel/build-utils": "6.8.2",
26
26
  "@vercel/go": "2.5.1",
27
27
  "@vercel/hydrogen": "0.0.64",
28
- "@vercel/next": "3.9.2",
29
- "@vercel/node": "2.15.6",
28
+ "@vercel/next": "3.9.3",
29
+ "@vercel/node": "2.15.7",
30
30
  "@vercel/python": "3.1.60",
31
31
  "@vercel/redwood": "1.1.15",
32
- "@vercel/remix-builder": "1.8.18",
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",