vercel 28.4.13 → 28.4.15
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 +24 -24
- package/package.json +17 -17
package/dist/index.js
CHANGED
@@ -231261,6 +231261,7 @@ function replaceSegments(segments, hasItemSegments, destination, isRedirect, int
|
|
231261
231261
|
query[key] = strOrArray.map(str => safelyCompile(unescapeSegments(str), indexes, true));
|
231262
231262
|
}
|
231263
231263
|
else {
|
231264
|
+
// TODO: handle strOrArray is undefined
|
231264
231265
|
query[key] = safelyCompile(unescapeSegments(strOrArray), indexes, true);
|
231265
231266
|
}
|
231266
231267
|
}
|
@@ -241670,7 +241671,6 @@ const chalk_1 = __webpack_require__(961);
|
|
241670
241671
|
const inquirer_1 = __importDefault(__webpack_require__(64016));
|
241671
241672
|
const events_1 = __webpack_require__(28614);
|
241672
241673
|
const url_1 = __webpack_require__(78835);
|
241673
|
-
const url_2 = __webpack_require__(78835);
|
241674
241674
|
const async_retry_1 = __importDefault(__webpack_require__(15596));
|
241675
241675
|
const node_fetch_1 = __importStar(__webpack_require__(82197));
|
241676
241676
|
const ua_1 = __importDefault(__webpack_require__(2177));
|
@@ -241728,24 +241728,19 @@ class Client extends events_1.EventEmitter {
|
|
241728
241728
|
});
|
241729
241729
|
}
|
241730
241730
|
_fetch(_url, opts = {}) {
|
241731
|
-
const
|
241732
|
-
const apiUrl = parsedUrl.host
|
241733
|
-
? `${parsedUrl.protocol}//${parsedUrl.host}`
|
241734
|
-
: '';
|
241731
|
+
const url = new url_1.URL(_url, this.apiUrl);
|
241735
241732
|
if (opts.accountId || opts.useCurrentTeam !== false) {
|
241736
|
-
const query = new url_1.URLSearchParams(parsedUrl.query);
|
241737
241733
|
if (opts.accountId) {
|
241738
241734
|
if (opts.accountId.startsWith('team_')) {
|
241739
|
-
|
241735
|
+
url.searchParams.set('teamId', opts.accountId);
|
241740
241736
|
}
|
241741
241737
|
else {
|
241742
|
-
|
241738
|
+
url.searchParams.delete('teamId');
|
241743
241739
|
}
|
241744
241740
|
}
|
241745
241741
|
else if (opts.useCurrentTeam !== false && this.config.currentTeam) {
|
241746
|
-
|
241742
|
+
url.searchParams.set('teamId', this.config.currentTeam);
|
241747
241743
|
}
|
241748
|
-
_url = `${apiUrl}${parsedUrl.pathname}?${query}`;
|
241749
241744
|
}
|
241750
241745
|
const headers = new node_fetch_1.Headers(opts.headers);
|
241751
241746
|
headers.set('user-agent', ua_1.default);
|
@@ -241760,14 +241755,13 @@ class Client extends events_1.EventEmitter {
|
|
241760
241755
|
else {
|
241761
241756
|
body = opts.body;
|
241762
241757
|
}
|
241763
|
-
const url = `${apiUrl ? '' : this.apiUrl}${_url}`;
|
241764
241758
|
const requestId = this.requestIdCounter++;
|
241765
241759
|
return this.output.time(res => {
|
241766
241760
|
if (res) {
|
241767
241761
|
return `#${requestId} ← ${res.status} ${res.statusText}: ${res.headers.get('x-vercel-id')}`;
|
241768
241762
|
}
|
241769
241763
|
else {
|
241770
|
-
return `#${requestId} → ${opts.method || 'GET'} ${url}`;
|
241764
|
+
return `#${requestId} → ${opts.method || 'GET'} ${url.href}`;
|
241771
241765
|
}
|
241772
241766
|
}, (0, node_fetch_1.default)(url, { ...opts, headers, body }));
|
241773
241767
|
}
|
@@ -242861,8 +242855,10 @@ async function createBuildProcess(match, envConfigs, workPath, output) {
|
|
242861
242855
|
});
|
242862
242856
|
return new Promise((resolve, reject) => {
|
242863
242857
|
// The first message that the builder process sends is the `ready` event
|
242864
|
-
buildProcess.once('message',
|
242865
|
-
if (
|
242858
|
+
buildProcess.once('message', data => {
|
242859
|
+
if (data !== null &&
|
242860
|
+
typeof data === 'object' &&
|
242861
|
+
data.type !== 'ready') {
|
242866
242862
|
reject(new Error('Did not get "ready" event from builder'));
|
242867
242863
|
}
|
242868
242864
|
else {
|
@@ -243428,11 +243424,11 @@ function parseListen(str, defaultPort = 3000) {
|
|
243428
243424
|
return [url.pathname];
|
243429
243425
|
case 'tcp:':
|
243430
243426
|
url.port = url.port || String(defaultPort);
|
243431
|
-
return [parseInt(url.port, 10), url.hostname];
|
243427
|
+
return [parseInt(url.port, 10), url.hostname ?? undefined];
|
243432
243428
|
default:
|
243433
243429
|
if (!url.slashes) {
|
243434
243430
|
if (url.protocol === null) {
|
243435
|
-
return [defaultPort, url.pathname];
|
243431
|
+
return [defaultPort, url.pathname ?? undefined];
|
243436
243432
|
}
|
243437
243433
|
port = Number(url.hostname);
|
243438
243434
|
if (url.protocol && !isNaN(port)) {
|
@@ -243494,7 +243490,7 @@ exports.parseQueryString = parseQueryString;
|
|
243494
243490
|
*/
|
243495
243491
|
function formatQueryString(query) {
|
243496
243492
|
if (!query) {
|
243497
|
-
return
|
243493
|
+
return null;
|
243498
243494
|
}
|
243499
243495
|
let s = '';
|
243500
243496
|
let prefix = '?';
|
@@ -243509,7 +243505,7 @@ function formatQueryString(query) {
|
|
243509
243505
|
prefix = '&';
|
243510
243506
|
}
|
243511
243507
|
}
|
243512
|
-
return s ||
|
243508
|
+
return s || null;
|
243513
243509
|
}
|
243514
243510
|
exports.formatQueryString = formatQueryString;
|
243515
243511
|
|
@@ -243569,7 +243565,8 @@ function getRoutesTypes(routes = []) {
|
|
243569
243565
|
exports.getRoutesTypes = getRoutesTypes;
|
243570
243566
|
async function devRouter(reqUrl = '/', reqMethod, routes, devServer, vercelConfig, previousHeaders, missRoutes, phase) {
|
243571
243567
|
let result;
|
243572
|
-
let { pathname: reqPathname
|
243568
|
+
let { pathname: reqPathname, search: reqSearch } = url_1.default.parse(reqUrl);
|
243569
|
+
reqPathname ?? (reqPathname = '/');
|
243573
243570
|
const reqQuery = (0, parse_query_string_1.parseQueryString)(reqSearch);
|
243574
243571
|
const combinedHeaders = { ...previousHeaders };
|
243575
243572
|
let status;
|
@@ -243627,7 +243624,8 @@ async function devRouter(reqUrl = '/', reqMethod, routes, devServer, vercelConfi
|
|
243627
243624
|
vercelConfig &&
|
243628
243625
|
phase !== 'hit' &&
|
243629
243626
|
!isDestUrl) {
|
243630
|
-
|
243627
|
+
let { pathname } = url_1.default.parse(destPath);
|
243628
|
+
pathname ?? (pathname = '/');
|
243631
243629
|
const hasDestFile = await devServer.hasFilesystem(pathname, vercelConfig);
|
243632
243630
|
if (!hasDestFile) {
|
243633
243631
|
if (routeConfig.status && phase !== 'miss') {
|
@@ -243673,7 +243671,8 @@ async function devRouter(reqUrl = '/', reqMethod, routes, devServer, vercelConfi
|
|
243673
243671
|
if (!destPath.startsWith('/')) {
|
243674
243672
|
destPath = `/${destPath}`;
|
243675
243673
|
}
|
243676
|
-
|
243674
|
+
let { pathname: destPathname, search: destSearch } = url_1.default.parse(destPath);
|
243675
|
+
destPathname ?? (destPathname = '/');
|
243677
243676
|
const destQuery = (0, parse_query_string_1.parseQueryString)(destSearch);
|
243678
243677
|
Object.assign(destQuery, reqQuery);
|
243679
243678
|
result = {
|
@@ -250955,7 +250954,8 @@ const link_1 = __webpack_require__(67630);
|
|
250955
250954
|
*/
|
250956
250955
|
async function ensureLink(commandName, client, cwd, opts) {
|
250957
250956
|
let link = await (0, link_1.getLinkedProject)(client, cwd);
|
250958
|
-
if (link.status === '
|
250957
|
+
if ((link.status === 'linked' && opts.forceDelete) ||
|
250958
|
+
link.status === 'not_linked') {
|
250959
250959
|
link = await (0, setup_and_link_1.default)(client, cwd, opts);
|
250960
250960
|
if (link.status === 'not_linked') {
|
250961
250961
|
// User aborted project linking questions
|
@@ -254332,7 +254332,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
254332
254332
|
/***/ ((module) => {
|
254333
254333
|
|
254334
254334
|
"use strict";
|
254335
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.
|
254335
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.15\",\"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 --runInBand --bail --forceExit\",\"test-unit\":\"yarn test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"yarn 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.5.7\",\"@vercel/go\":\"2.2.15\",\"@vercel/hydrogen\":\"0.0.29\",\"@vercel/next\":\"3.2.9\",\"@vercel/node\":\"2.6.2\",\"@vercel/python\":\"3.1.24\",\"@vercel/redwood\":\"1.0.34\",\"@vercel/remix\":\"1.0.35\",\"@vercel/ruby\":\"1.3.41\",\"@vercel/static-build\":\"1.0.35\",\"update-notifier\":\"5.1.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/ansi-escapes\":\"3.0.0\",\"@types/ansi-regex\":\"4.0.0\",\"@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/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.2.16\",\"@vercel/error-utils\":\"1.0.3\",\"@vercel/frameworks\":\"1.1.11\",\"@vercel/fs-detectors\":\"3.4.8\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"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-prompt\":\"0.3.2\",\"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\",\"jsonlines\":\"0.1.1\",\"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\":\"5.2.0\",\"stripe\":\"5.1.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\",\"which\":\"2.0.2\",\"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\"]}}");
|
254336
254336
|
|
254337
254337
|
/***/ }),
|
254338
254338
|
|
@@ -254340,7 +254340,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.13\",\"pref
|
|
254340
254340
|
/***/ ((module) => {
|
254341
254341
|
|
254342
254342
|
"use strict";
|
254343
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.
|
254343
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.16\",\"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\":\"yarn 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\":\"yarn test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@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\":\"5.5.7\",\"@vercel/routing-utils\":\"2.1.2\",\"@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\"}}");
|
254344
254344
|
|
254345
254345
|
/***/ }),
|
254346
254346
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.4.
|
3
|
+
"version": "28.4.15",
|
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": "5.5.
|
45
|
-
"@vercel/go": "2.2.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.2.
|
48
|
-
"@vercel/node": "2.6.
|
49
|
-
"@vercel/python": "3.1.
|
50
|
-
"@vercel/redwood": "1.0.
|
51
|
-
"@vercel/remix": "1.0.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.0.
|
44
|
+
"@vercel/build-utils": "5.5.7",
|
45
|
+
"@vercel/go": "2.2.15",
|
46
|
+
"@vercel/hydrogen": "0.0.29",
|
47
|
+
"@vercel/next": "3.2.9",
|
48
|
+
"@vercel/node": "2.6.2",
|
49
|
+
"@vercel/python": "3.1.24",
|
50
|
+
"@vercel/redwood": "1.0.34",
|
51
|
+
"@vercel/remix": "1.0.35",
|
52
|
+
"@vercel/ruby": "1.3.41",
|
53
|
+
"@vercel/static-build": "1.0.35",
|
54
54
|
"update-notifier": "5.1.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
@@ -81,7 +81,7 @@
|
|
81
81
|
"@types/minimatch": "3.0.3",
|
82
82
|
"@types/mri": "1.1.0",
|
83
83
|
"@types/ms": "0.7.30",
|
84
|
-
"@types/node": "
|
84
|
+
"@types/node": "14.18.33",
|
85
85
|
"@types/node-fetch": "2.5.10",
|
86
86
|
"@types/npm-package-arg": "6.1.0",
|
87
87
|
"@types/pluralize": "0.0.29",
|
@@ -95,10 +95,10 @@
|
|
95
95
|
"@types/which": "1.3.2",
|
96
96
|
"@types/write-json-file": "2.2.1",
|
97
97
|
"@types/yauzl-promise": "2.1.0",
|
98
|
-
"@vercel/client": "12.2.
|
99
|
-
"@vercel/error-utils": "1.0.
|
100
|
-
"@vercel/frameworks": "1.1.
|
101
|
-
"@vercel/fs-detectors": "3.4.
|
98
|
+
"@vercel/client": "12.2.16",
|
99
|
+
"@vercel/error-utils": "1.0.3",
|
100
|
+
"@vercel/frameworks": "1.1.11",
|
101
|
+
"@vercel/fs-detectors": "3.4.8",
|
102
102
|
"@vercel/fun": "1.0.4",
|
103
103
|
"@vercel/ncc": "0.24.0",
|
104
104
|
"@zeit/source-map-support": "0.6.2",
|
@@ -194,5 +194,5 @@
|
|
194
194
|
"<rootDir>/test/**/*.test.ts"
|
195
195
|
]
|
196
196
|
},
|
197
|
-
"gitHead": "
|
197
|
+
"gitHead": "0964be17106419263b3f38d67784dd97b8b0c565"
|
198
198
|
}
|