vercel 28.13.0 → 28.13.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 +16 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -191075,7 +191075,7 @@ async function ls(client, opts, args) {
191075
191075
  // Get the list of alias
191076
191076
  const { aliases, pagination } = await (0, get_aliases_1.default)(client, undefined, ...paginationOptions);
191077
191077
  output.log(`aliases found under ${chalk_1.default.bold(contextName)} ${lsStamp()}`);
191078
- output.log(printAliasTable(aliases));
191078
+ client.stdout.write(printAliasTable(aliases));
191079
191079
  if (pagination && pagination.count === 20) {
191080
191080
  const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
191081
191081
  output.log(`To display the next page run ${(0, pkg_name_1.getCommandName)(`alias ls${flags} --next ${pagination.next}`)}`);
@@ -192665,7 +192665,7 @@ async function ls(client, opts, args) {
192665
192665
  const { certs, pagination } = await (0, get_certs_1.default)(client, ...paginationOptions).catch(err => err);
192666
192666
  output.log(`${certs.length > 0 ? 'Certificates' : 'No certificates'} found under ${chalk_1.default.bold(contextName)} ${lsStamp()}`);
192667
192667
  if (certs.length > 0) {
192668
- output.log(formatCertsTable(certs));
192668
+ client.stdout.write(formatCertsTable(certs));
192669
192669
  }
192670
192670
  if (pagination && pagination.count === 20) {
192671
192671
  const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
@@ -194036,7 +194036,7 @@ async function ls(client, opts, args) {
194036
194036
  }
194037
194037
  const { records, pagination } = data;
194038
194038
  output.log(`${records.length > 0 ? 'Records' : 'No records'} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(lsStamp())}`);
194039
- output.log(getDNSRecordsTable([{ domainName, records }]));
194039
+ client.stdout.write(getDNSRecordsTable([{ domainName, records }]));
194040
194040
  if (pagination && pagination.count === 20) {
194041
194041
  const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
194042
194042
  output.log(`To display the next page run ${(0, pkg_name_1.getCommandName)(`dns ls ${domainName}${flags} --next ${pagination.next}`)}`);
@@ -200469,12 +200469,13 @@ const build_utils_1 = __webpack_require__(63445);
200469
200469
  const promisepipe_1 = __importDefault(__webpack_require__(79860));
200470
200470
  const unzip_1 = __webpack_require__(37585);
200471
200471
  const link_1 = __webpack_require__(49347);
200472
+ const client_1 = __webpack_require__(40521);
200472
200473
  const { normalize } = path_1.posix;
200473
200474
  exports.OUTPUT_DIR = (0, path_1.join)(link_1.VERCEL_DIR, 'output');
200474
200475
  async function writeBuildResult(outputDir, buildResult, build, builder, builderPkg, vercelConfig) {
200475
200476
  const { version } = builder;
200476
200477
  if (typeof version !== 'number' || version === 2) {
200477
- return writeBuildResultV2(outputDir, buildResult, vercelConfig);
200478
+ return writeBuildResultV2(outputDir, buildResult, build, vercelConfig);
200478
200479
  }
200479
200480
  else if (version === 3) {
200480
200481
  return writeBuildResultV3(outputDir, buildResult, build, vercelConfig);
@@ -200505,11 +200506,20 @@ function stripDuplicateSlashes(path) {
200505
200506
  * Writes the output from the `build()` return value of a v2 Builder to
200506
200507
  * the filesystem.
200507
200508
  */
200508
- async function writeBuildResultV2(outputDir, buildResult, vercelConfig) {
200509
+ async function writeBuildResultV2(outputDir, buildResult, build, vercelConfig) {
200509
200510
  if ('buildOutputPath' in buildResult) {
200510
200511
  await mergeBuilderOutput(outputDir, buildResult);
200511
200512
  return;
200512
200513
  }
200514
+ // Some very old `@now` scoped Builders return `output` at the top-level.
200515
+ // These Builders are no longer supported.
200516
+ if (!buildResult.output) {
200517
+ const configFile = vercelConfig?.[client_1.fileNameSymbol];
200518
+ const updateMessage = build.use.startsWith('@now/')
200519
+ ? ` Please update from "@now" to "@vercel" in your \`${configFile}\` file.`
200520
+ : '';
200521
+ throw new Error(`The build result from "${build.use}" is missing the "output" property.${updateMessage}`);
200522
+ }
200513
200523
  const lambdas = new Map();
200514
200524
  const overrides = {};
200515
200525
  for (const [path, output] of Object.entries(buildResult.output)) {
@@ -214558,7 +214568,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
214558
214568
  /***/ ((module) => {
214559
214569
 
214560
214570
  "use strict";
214561
- module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.13.0\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest --env node --verbose --bail\",\"test-unit\":\"pnpm test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"pnpm test test/dev/\",\"coverage\":\"codecov\",\"build\":\"ts-node ./scripts/build.ts\",\"dev\":\"ts-node ./src/index.ts\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"5.9.0\",\"@vercel/go\":\"2.2.30\",\"@vercel/hydrogen\":\"0.0.44\",\"@vercel/next\":\"3.3.18\",\"@vercel/node\":\"2.8.15\",\"@vercel/python\":\"3.1.40\",\"@vercel/redwood\":\"1.0.51\",\"@vercel/remix\":\"1.2.7\",\"@vercel/ruby\":\"1.3.56\",\"@vercel/static-build\":\"1.2.0\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@swc/core\":\"1.2.218\",\"@tootallnate/once\":\"1.1.2\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/ini\":\"1.3.31\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/psl\":\"1.1.0\",\"@types/qs\":\"6.9.7\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel/client\":\"12.3.2\",\"@vercel/error-utils\":\"1.0.8\",\"@vercel/frameworks\":\"1.2.4\",\"@vercel/fs-detectors\":\"3.7.5\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/routing-utils\":\"2.1.8\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"4.3.2\",\"ansi-regex\":\"5.0.1\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"boxen\":\"4.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jest-matcher-utils\":\"29.3.1\",\"json5\":\"2.2.1\",\"jsonlines\":\"0.1.1\",\"line-async-iterator\":\"3.0.0\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"6.0.1\",\"stripe\":\"5.1.0\",\"supports-hyperlinks\":\"2.2.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-node\":\"10.9.1\",\"typescript\":\"4.7.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]}}");
214571
+ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.13.1\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest --env node --verbose --bail\",\"test-unit\":\"pnpm test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"pnpm test test/dev/\",\"coverage\":\"codecov\",\"build\":\"ts-node ./scripts/build.ts\",\"dev\":\"ts-node ./src/index.ts\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"5.9.0\",\"@vercel/go\":\"2.2.30\",\"@vercel/hydrogen\":\"0.0.44\",\"@vercel/next\":\"3.3.18\",\"@vercel/node\":\"2.8.15\",\"@vercel/python\":\"3.1.40\",\"@vercel/redwood\":\"1.0.51\",\"@vercel/remix\":\"1.2.7\",\"@vercel/ruby\":\"1.3.56\",\"@vercel/static-build\":\"1.2.0\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@swc/core\":\"1.2.218\",\"@tootallnate/once\":\"1.1.2\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/ini\":\"1.3.31\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/psl\":\"1.1.0\",\"@types/qs\":\"6.9.7\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel/client\":\"12.3.2\",\"@vercel/error-utils\":\"1.0.8\",\"@vercel/frameworks\":\"1.2.4\",\"@vercel/fs-detectors\":\"3.7.5\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/routing-utils\":\"2.1.8\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"4.3.2\",\"ansi-regex\":\"5.0.1\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"boxen\":\"4.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jest-matcher-utils\":\"29.3.1\",\"json5\":\"2.2.1\",\"jsonlines\":\"0.1.1\",\"line-async-iterator\":\"3.0.0\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"6.0.1\",\"stripe\":\"5.1.0\",\"supports-hyperlinks\":\"2.2.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-node\":\"10.9.1\",\"typescript\":\"4.7.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]}}");
214562
214572
 
214563
214573
  /***/ }),
214564
214574
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "28.13.0",
3
+ "version": "28.13.1",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -195,5 +195,5 @@
195
195
  "<rootDir>/test/**/*.test.ts"
196
196
  ]
197
197
  },
198
- "gitHead": "92f5b6e0c9be947a68b617d282fc39144f530813"
198
+ "gitHead": "fcea36bf044017ba7831d97d34fe83fcbc1710f4"
199
199
  }