vercel 28.4.5 → 28.4.6
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 +27 -13
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -203883,7 +203883,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
203883
203883
|
};
|
203884
203884
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
203885
203885
|
exports.upload = void 0;
|
203886
|
-
const
|
203886
|
+
const http_1 = __importDefault(__webpack_require__(98605));
|
203887
|
+
const https_1 = __importDefault(__webpack_require__(57211));
|
203887
203888
|
const stream_1 = __webpack_require__(92413);
|
203888
203889
|
const events_1 = __webpack_require__(28614);
|
203889
203890
|
const async_retry_1 = __importDefault(__webpack_require__(33691));
|
@@ -203942,7 +203943,9 @@ async function* upload(files, clientOptions, deploymentOptions) {
|
|
203942
203943
|
const uploadList = {};
|
203943
203944
|
debug('Building an upload list...');
|
203944
203945
|
const semaphore = new async_sema_1.Sema(50, { capacity: 50 });
|
203945
|
-
const agent =
|
203946
|
+
const agent = apiUrl?.startsWith('https://')
|
203947
|
+
? new https_1.default.Agent({ keepAlive: true })
|
203948
|
+
: new http_1.default.Agent({ keepAlive: true });
|
203946
203949
|
shas.forEach((sha, index) => {
|
203947
203950
|
const uploadProgress = uploads[index];
|
203948
203951
|
uploadList[sha] = async_retry_1.default(async (bail) => {
|
@@ -239107,12 +239110,16 @@ async function processDeployment({ org, cwd, projectName, isSettingUpProject, ar
|
|
239107
239110
|
.map((sha) => total.get(sha).data.length)
|
239108
239111
|
.reduce((a, b) => a + b, 0);
|
239109
239112
|
const totalSizeHuman = bytes_1.default.format(missingSize, { decimalPlaces: 1 });
|
239110
|
-
|
239113
|
+
// When stderr is not a TTY then we only want to
|
239114
|
+
// print upload progress in 25% increments
|
239115
|
+
let nextStep = 0;
|
239116
|
+
const stepSize = now._client.stderr.isTTY ? 0 : 0.25;
|
239117
|
+
const updateProgress = () => {
|
239111
239118
|
const uploadedBytes = uploads.reduce((acc, e) => {
|
239112
239119
|
return acc + e.bytesUploaded;
|
239113
239120
|
}, 0);
|
239114
239121
|
const bar = (0, progress_1.progress)(uploadedBytes, missingSize);
|
239115
|
-
if (!bar
|
239122
|
+
if (!bar) {
|
239116
239123
|
output.spinner(deployingSpinnerVal, 0);
|
239117
239124
|
}
|
239118
239125
|
else {
|
@@ -239120,9 +239127,15 @@ async function processDeployment({ org, cwd, projectName, isSettingUpProject, ar
|
|
239120
239127
|
decimalPlaces: 1,
|
239121
239128
|
fixedDecimals: true,
|
239122
239129
|
});
|
239123
|
-
|
239130
|
+
const percent = uploadedBytes / missingSize;
|
239131
|
+
if (percent >= nextStep) {
|
239132
|
+
output.spinner(`Uploading ${chalk_1.default.reset(`[${bar}] (${uploadedHuman}/${totalSizeHuman})`)}`, 0);
|
239133
|
+
nextStep += stepSize;
|
239134
|
+
}
|
239124
239135
|
}
|
239125
|
-
}
|
239136
|
+
};
|
239137
|
+
uploads.forEach((e) => e.on('progress', updateProgress));
|
239138
|
+
updateProgress();
|
239126
239139
|
}
|
239127
239140
|
if (event.type === 'file-uploaded') {
|
239128
239141
|
debug(`Uploaded: ${event.payload.file.names.join(' ')} (${(0, bytes_1.default)(event.payload.file.data.length)})`);
|
@@ -248509,6 +248522,7 @@ const chalk_1 = __importDefault(__webpack_require__(961));
|
|
248509
248522
|
const link_1 = __importDefault(__webpack_require__(98472));
|
248510
248523
|
const wait_1 = __importDefault(__webpack_require__(22015));
|
248511
248524
|
const is_error_1 = __webpack_require__(11026);
|
248525
|
+
const IS_TEST = process.env.NODE_ENV === 'test';
|
248512
248526
|
class Output {
|
248513
248527
|
constructor(stream, { debug: debugEnabled = false } = {}) {
|
248514
248528
|
this.isDebugEnabled = () => {
|
@@ -248556,12 +248570,15 @@ class Output {
|
|
248556
248570
|
}
|
248557
248571
|
};
|
248558
248572
|
this.spinner = (message, delay = 300) => {
|
248559
|
-
this.spinnerMessage = message;
|
248560
248573
|
if (this.debugEnabled) {
|
248561
248574
|
this.debug(`Spinner invoked (${message}) with a ${delay}ms delay`);
|
248562
248575
|
return;
|
248563
248576
|
}
|
248564
|
-
if (this.stream.isTTY) {
|
248577
|
+
if (IS_TEST || !this.stream.isTTY) {
|
248578
|
+
this.print(`${message}\n`);
|
248579
|
+
}
|
248580
|
+
else {
|
248581
|
+
this.spinnerMessage = message;
|
248565
248582
|
if (this._spinner) {
|
248566
248583
|
this._spinner.text = message;
|
248567
248584
|
}
|
@@ -248572,9 +248589,6 @@ class Output {
|
|
248572
248589
|
}, delay);
|
248573
248590
|
}
|
248574
248591
|
}
|
248575
|
-
else {
|
248576
|
-
this.print(`${message}\n`);
|
248577
|
-
}
|
248578
248592
|
};
|
248579
248593
|
this.stopSpinner = () => {
|
248580
248594
|
if (this.debugEnabled && this.spinnerMessage) {
|
@@ -250797,7 +250811,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
250797
250811
|
/***/ ((module) => {
|
250798
250812
|
|
250799
250813
|
"use strict";
|
250800
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.
|
250814
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.6\",\"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.3\",\"@vercel/go\":\"2.2.11\",\"@vercel/hydrogen\":\"0.0.24\",\"@vercel/next\":\"3.2.2\",\"@vercel/node\":\"2.5.21\",\"@vercel/python\":\"3.1.20\",\"@vercel/redwood\":\"1.0.29\",\"@vercel/remix\":\"1.0.30\",\"@vercel/ruby\":\"1.3.37\",\"@vercel/static-build\":\"1.0.29\",\"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\":\"11.11.0\",\"@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.11\",\"@vercel/frameworks\":\"1.1.6\",\"@vercel/fs-detectors\":\"3.4.1\",\"@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\"]}}");
|
250801
250815
|
|
250802
250816
|
/***/ }),
|
250803
250817
|
|
@@ -250805,7 +250819,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.5\",\"prefe
|
|
250805
250819
|
/***/ ((module) => {
|
250806
250820
|
|
250807
250821
|
"use strict";
|
250808
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.
|
250822
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.11\",\"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\":\"12.0.4\",\"@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.3\",\"@vercel/routing-utils\":\"2.0.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\"}}");
|
250809
250823
|
|
250810
250824
|
/***/ }),
|
250811
250825
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.4.
|
3
|
+
"version": "28.4.6",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"@vercel/build-utils": "5.5.3",
|
45
45
|
"@vercel/go": "2.2.11",
|
46
46
|
"@vercel/hydrogen": "0.0.24",
|
47
|
-
"@vercel/next": "3.2.
|
47
|
+
"@vercel/next": "3.2.2",
|
48
48
|
"@vercel/node": "2.5.21",
|
49
49
|
"@vercel/python": "3.1.20",
|
50
50
|
"@vercel/redwood": "1.0.29",
|
@@ -95,7 +95,7 @@
|
|
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.
|
98
|
+
"@vercel/client": "12.2.11",
|
99
99
|
"@vercel/frameworks": "1.1.6",
|
100
100
|
"@vercel/fs-detectors": "3.4.1",
|
101
101
|
"@vercel/fun": "1.0.4",
|
@@ -193,5 +193,5 @@
|
|
193
193
|
"<rootDir>/test/**/*.test.ts"
|
194
194
|
]
|
195
195
|
},
|
196
|
-
"gitHead": "
|
196
|
+
"gitHead": "053c185481b1fa0f980e3f54c9ecbeda53e7d72b"
|
197
197
|
}
|