vercel 28.13.0 → 28.13.2
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 +47 -21
- package/package.json +16 -16
package/dist/index.js
CHANGED
@@ -186034,6 +186034,11 @@ exports.frameworks = [
|
|
186034
186034
|
headers: { 'cache-control': 'public, max-age=31536000, immutable' },
|
186035
186035
|
continue: true,
|
186036
186036
|
},
|
186037
|
+
{
|
186038
|
+
src: '^/_astro/(.*)$',
|
186039
|
+
headers: { 'cache-control': 'public, max-age=31536000, immutable' },
|
186040
|
+
continue: true,
|
186041
|
+
},
|
186037
186042
|
],
|
186038
186043
|
},
|
186039
186044
|
{
|
@@ -191075,7 +191080,7 @@ async function ls(client, opts, args) {
|
|
191075
191080
|
// Get the list of alias
|
191076
191081
|
const { aliases, pagination } = await (0, get_aliases_1.default)(client, undefined, ...paginationOptions);
|
191077
191082
|
output.log(`aliases found under ${chalk_1.default.bold(contextName)} ${lsStamp()}`);
|
191078
|
-
|
191083
|
+
client.stdout.write(printAliasTable(aliases));
|
191079
191084
|
if (pagination && pagination.count === 20) {
|
191080
191085
|
const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
|
191081
191086
|
output.log(`To display the next page run ${(0, pkg_name_1.getCommandName)(`alias ls${flags} --next ${pagination.next}`)}`);
|
@@ -192665,7 +192670,7 @@ async function ls(client, opts, args) {
|
|
192665
192670
|
const { certs, pagination } = await (0, get_certs_1.default)(client, ...paginationOptions).catch(err => err);
|
192666
192671
|
output.log(`${certs.length > 0 ? 'Certificates' : 'No certificates'} found under ${chalk_1.default.bold(contextName)} ${lsStamp()}`);
|
192667
192672
|
if (certs.length > 0) {
|
192668
|
-
|
192673
|
+
client.stdout.write(formatCertsTable(certs));
|
192669
192674
|
}
|
192670
192675
|
if (pagination && pagination.count === 20) {
|
192671
192676
|
const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
|
@@ -194036,7 +194041,7 @@ async function ls(client, opts, args) {
|
|
194036
194041
|
}
|
194037
194042
|
const { records, pagination } = data;
|
194038
194043
|
output.log(`${records.length > 0 ? 'Records' : 'No records'} found under ${chalk_1.default.bold(contextName)} ${chalk_1.default.gray(lsStamp())}`);
|
194039
|
-
|
194044
|
+
client.stdout.write(getDNSRecordsTable([{ domainName, records }]));
|
194040
194045
|
if (pagination && pagination.count === 20) {
|
194041
194046
|
const flags = (0, get_command_flags_1.default)(opts, ['_', '--next']);
|
194042
194047
|
output.log(`To display the next page run ${(0, pkg_name_1.getCommandName)(`dns ls ${domainName}${flags} --next ${pagination.next}`)}`);
|
@@ -199996,7 +200001,7 @@ const semver_1 = __webpack_require__(54373);
|
|
199996
200001
|
const path_1 = __webpack_require__(85622);
|
199997
200002
|
const fs_extra_1 = __webpack_require__(36365);
|
199998
200003
|
const fs_detectors_1 = __webpack_require__(88995);
|
199999
|
-
const
|
200004
|
+
const execa_1 = __importDefault(__webpack_require__(72553));
|
200000
200005
|
const staticBuilder = __importStar(__webpack_require__(31346));
|
200001
200006
|
const link_1 = __webpack_require__(49347);
|
200002
200007
|
const read_json_file_1 = __importDefault(__webpack_require__(93658));
|
@@ -200137,28 +200142,39 @@ async function installBuilders(buildersDir, buildersToAdd, output) {
|
|
200137
200142
|
}
|
200138
200143
|
output.log(`Installing ${(0, pluralize_1.default)('Builder', buildersToAdd.size)}: ${Array.from(buildersToAdd).join(', ')}`);
|
200139
200144
|
try {
|
200140
|
-
await (0,
|
200145
|
+
const { stderr } = await (0, execa_1.default)('npm', ['install', '@vercel/build-utils', ...buildersToAdd], {
|
200141
200146
|
cwd: buildersDir,
|
200142
200147
|
stdio: 'pipe',
|
200148
|
+
reject: true,
|
200149
|
+
});
|
200150
|
+
stderr
|
200151
|
+
.split('/\r?\n/')
|
200152
|
+
.filter(line => line.includes('npm WARN deprecated'))
|
200153
|
+
.forEach(line => {
|
200154
|
+
output.warn(line);
|
200143
200155
|
});
|
200144
200156
|
}
|
200145
200157
|
catch (err) {
|
200146
200158
|
if ((0, error_utils_1.isError)(err)) {
|
200147
|
-
err.
|
200148
|
-
|
200149
|
-
|
200159
|
+
const execaMessage = err.message;
|
200160
|
+
let message = err && 'stderr' in err && typeof err.stderr === 'string'
|
200161
|
+
? err.stderr
|
200162
|
+
: execaMessage;
|
200163
|
+
if (execaMessage.startsWith('Command failed with ENOENT')) {
|
200150
200164
|
// `npm` is not installed
|
200151
|
-
|
200165
|
+
message = `Please install ${(0, cmd_1.default)('npm')} before continuing`;
|
200152
200166
|
}
|
200153
200167
|
else {
|
200154
|
-
const message = (0, error_utils_1.errorToString)(err);
|
200155
200168
|
const notFound = /GET (.*) - Not found/.exec(message);
|
200156
200169
|
if (notFound) {
|
200157
200170
|
const url = new url_1.URL(notFound[1]);
|
200158
200171
|
const packageName = decodeURIComponent(url.pathname.slice(1));
|
200159
|
-
|
200172
|
+
message = `The package ${(0, code_1.default)(packageName)} is not published on the npm registry`;
|
200160
200173
|
}
|
200161
200174
|
}
|
200175
|
+
err.message = message;
|
200176
|
+
err.link =
|
200177
|
+
'https://vercel.link/builder-dependencies-install-failed';
|
200162
200178
|
}
|
200163
200179
|
throw err;
|
200164
200180
|
}
|
@@ -200469,12 +200485,13 @@ const build_utils_1 = __webpack_require__(63445);
|
|
200469
200485
|
const promisepipe_1 = __importDefault(__webpack_require__(79860));
|
200470
200486
|
const unzip_1 = __webpack_require__(37585);
|
200471
200487
|
const link_1 = __webpack_require__(49347);
|
200488
|
+
const client_1 = __webpack_require__(40521);
|
200472
200489
|
const { normalize } = path_1.posix;
|
200473
200490
|
exports.OUTPUT_DIR = (0, path_1.join)(link_1.VERCEL_DIR, 'output');
|
200474
200491
|
async function writeBuildResult(outputDir, buildResult, build, builder, builderPkg, vercelConfig) {
|
200475
200492
|
const { version } = builder;
|
200476
200493
|
if (typeof version !== 'number' || version === 2) {
|
200477
|
-
return writeBuildResultV2(outputDir, buildResult, vercelConfig);
|
200494
|
+
return writeBuildResultV2(outputDir, buildResult, build, vercelConfig);
|
200478
200495
|
}
|
200479
200496
|
else if (version === 3) {
|
200480
200497
|
return writeBuildResultV3(outputDir, buildResult, build, vercelConfig);
|
@@ -200505,11 +200522,20 @@ function stripDuplicateSlashes(path) {
|
|
200505
200522
|
* Writes the output from the `build()` return value of a v2 Builder to
|
200506
200523
|
* the filesystem.
|
200507
200524
|
*/
|
200508
|
-
async function writeBuildResultV2(outputDir, buildResult, vercelConfig) {
|
200525
|
+
async function writeBuildResultV2(outputDir, buildResult, build, vercelConfig) {
|
200509
200526
|
if ('buildOutputPath' in buildResult) {
|
200510
200527
|
await mergeBuilderOutput(outputDir, buildResult);
|
200511
200528
|
return;
|
200512
200529
|
}
|
200530
|
+
// Some very old `@now` scoped Builders return `output` at the top-level.
|
200531
|
+
// These Builders are no longer supported.
|
200532
|
+
if (!buildResult.output) {
|
200533
|
+
const configFile = vercelConfig?.[client_1.fileNameSymbol];
|
200534
|
+
const updateMessage = build.use.startsWith('@now/')
|
200535
|
+
? ` Please update from "@now" to "@vercel" in your \`${configFile}\` file.`
|
200536
|
+
: '';
|
200537
|
+
throw new Error(`The build result from "${build.use}" is missing the "output" property.${updateMessage}`);
|
200538
|
+
}
|
200513
200539
|
const lambdas = new Map();
|
200514
200540
|
const overrides = {};
|
200515
200541
|
for (const [path, output] of Object.entries(buildResult.output)) {
|
@@ -203559,6 +203585,12 @@ function sortBuilders(buildA, buildB) {
|
|
203559
203585
|
return 0;
|
203560
203586
|
}
|
203561
203587
|
class DevServer {
|
203588
|
+
get address() {
|
203589
|
+
if (!this._address) {
|
203590
|
+
throw new Error('Invalid access to `address` because `start` has not yet populated `this.address`.');
|
203591
|
+
}
|
203592
|
+
return this._address;
|
203593
|
+
}
|
203562
203594
|
constructor(cwd, options) {
|
203563
203595
|
this.clearVercelConfigPromise = () => {
|
203564
203596
|
this.getVercelConfigPromise = null;
|
@@ -204176,12 +204208,6 @@ class DevServer {
|
|
204176
204208
|
this.podId = Math.random().toString(32).slice(-5);
|
204177
204209
|
this.devServerPids = new Set();
|
204178
204210
|
}
|
204179
|
-
get address() {
|
204180
|
-
if (!this._address) {
|
204181
|
-
throw new Error('Invalid access to `address` because `start` has not yet populated `this.address`.');
|
204182
|
-
}
|
204183
|
-
return this._address;
|
204184
|
-
}
|
204185
204211
|
async exit(code = 1) {
|
204186
204212
|
await this.stop(code);
|
204187
204213
|
process.exit(code);
|
@@ -214558,7 +214584,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
|
|
214558
214584
|
/***/ ((module) => {
|
214559
214585
|
|
214560
214586
|
"use strict";
|
214561
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.13.
|
214587
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.13.2\",\"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\":\"6.0.0\",\"@vercel/go\":\"2.2.31\",\"@vercel/hydrogen\":\"0.0.45\",\"@vercel/next\":\"3.3.19\",\"@vercel/node\":\"2.8.16\",\"@vercel/python\":\"3.1.41\",\"@vercel/redwood\":\"1.0.52\",\"@vercel/remix\":\"1.2.8\",\"@vercel/ruby\":\"1.3.57\",\"@vercel/static-build\":\"1.2.1\"},\"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.3\",\"@vercel/error-utils\":\"1.0.8\",\"@vercel/frameworks\":\"1.3.0\",\"@vercel/fs-detectors\":\"3.7.6\",\"@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.9.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
214588
|
|
214563
214589
|
/***/ }),
|
214564
214590
|
|
@@ -214566,7 +214592,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.13.0\",\"pref
|
|
214566
214592
|
/***/ ((module) => {
|
214567
214593
|
|
214568
214594
|
"use strict";
|
214569
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.
|
214595
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.3\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"pnpm test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"pnpm test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.5\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"6.0.0\",\"@vercel/routing-utils\":\"2.1.8\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\",\"tar-fs\":\"1.16.3\"}}");
|
214570
214596
|
|
214571
214597
|
/***/ }),
|
214572
214598
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.13.
|
3
|
+
"version": "28.13.2",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -41,16 +41,16 @@
|
|
41
41
|
"node": ">= 14"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@vercel/build-utils": "
|
45
|
-
"@vercel/go": "2.2.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.3.
|
48
|
-
"@vercel/node": "2.8.
|
49
|
-
"@vercel/python": "3.1.
|
50
|
-
"@vercel/redwood": "1.0.
|
51
|
-
"@vercel/remix": "1.2.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.2.
|
44
|
+
"@vercel/build-utils": "6.0.0",
|
45
|
+
"@vercel/go": "2.2.31",
|
46
|
+
"@vercel/hydrogen": "0.0.45",
|
47
|
+
"@vercel/next": "3.3.19",
|
48
|
+
"@vercel/node": "2.8.16",
|
49
|
+
"@vercel/python": "3.1.41",
|
50
|
+
"@vercel/redwood": "1.0.52",
|
51
|
+
"@vercel/remix": "1.2.8",
|
52
|
+
"@vercel/ruby": "1.3.57",
|
53
|
+
"@vercel/static-build": "1.2.1"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@alex_neo/jest-expect-message": "1.0.5",
|
@@ -93,10 +93,10 @@
|
|
93
93
|
"@types/which": "1.3.2",
|
94
94
|
"@types/write-json-file": "2.2.1",
|
95
95
|
"@types/yauzl-promise": "2.1.0",
|
96
|
-
"@vercel/client": "12.3.
|
96
|
+
"@vercel/client": "12.3.3",
|
97
97
|
"@vercel/error-utils": "1.0.8",
|
98
|
-
"@vercel/frameworks": "1.
|
99
|
-
"@vercel/fs-detectors": "3.7.
|
98
|
+
"@vercel/frameworks": "1.3.0",
|
99
|
+
"@vercel/fs-detectors": "3.7.6",
|
100
100
|
"@vercel/fun": "1.0.4",
|
101
101
|
"@vercel/ncc": "0.24.0",
|
102
102
|
"@vercel/routing-utils": "2.1.8",
|
@@ -171,7 +171,7 @@
|
|
171
171
|
"tmp-promise": "1.0.3",
|
172
172
|
"tree-kill": "1.2.2",
|
173
173
|
"ts-node": "10.9.1",
|
174
|
-
"typescript": "4.
|
174
|
+
"typescript": "4.9.4",
|
175
175
|
"universal-analytics": "0.4.20",
|
176
176
|
"utility-types": "2.1.0",
|
177
177
|
"write-json-file": "2.2.0",
|
@@ -195,5 +195,5 @@
|
|
195
195
|
"<rootDir>/test/**/*.test.ts"
|
196
196
|
]
|
197
197
|
},
|
198
|
-
"gitHead": "
|
198
|
+
"gitHead": "25f6595d3698546ba69c7fe9f601a906167fef3f"
|
199
199
|
}
|