vercel 28.12.4 → 28.12.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 +60 -15
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -184534,8 +184534,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
184534
184534
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
184535
184535
|
exports.checkDeploymentStatus = void 0;
|
184536
184536
|
const sleep_promise_1 = __importDefault(__webpack_require__(10196));
|
184537
|
-
const ms_1 = __importDefault(__webpack_require__(21378));
|
184538
184537
|
const utils_1 = __webpack_require__(67110);
|
184538
|
+
const get_polling_delay_1 = __webpack_require__(14462);
|
184539
184539
|
const ready_state_1 = __webpack_require__(71507);
|
184540
184540
|
const utils_2 = __webpack_require__(67110);
|
184541
184541
|
/* eslint-disable */
|
@@ -184555,6 +184555,7 @@ async function* checkDeploymentStatus(deployment, clientOptions) {
|
|
184555
184555
|
// Build polling
|
184556
184556
|
debug('Waiting for builds and the deployment to complete...');
|
184557
184557
|
const finishedEvents = new Set();
|
184558
|
+
const startTime = Date.now();
|
184558
184559
|
while (true) {
|
184559
184560
|
// Deployment polling
|
184560
184561
|
const deploymentData = await utils_1.fetch(`${apiDeployments}/${deployment.id || deployment.deploymentId}${teamId ? `?teamId=${teamId}` : ''}`, token, { apiUrl, userAgent });
|
@@ -184634,7 +184635,9 @@ async function* checkDeploymentStatus(deployment, clientOptions) {
|
|
184634
184635
|
payload: deploymentUpdate.error || deploymentUpdate,
|
184635
184636
|
};
|
184636
184637
|
}
|
184637
|
-
|
184638
|
+
const elapsed = Date.now() - startTime;
|
184639
|
+
const duration = get_polling_delay_1.getPollingDelay(elapsed);
|
184640
|
+
await sleep_promise_1.default(duration);
|
184638
184641
|
}
|
184639
184642
|
}
|
184640
184643
|
exports.checkDeploymentStatus = checkDeploymentStatus;
|
@@ -184706,7 +184709,7 @@ function buildCreateDeployment() {
|
|
184706
184709
|
else {
|
184707
184710
|
debug(`Provided 'path' is a single file`);
|
184708
184711
|
}
|
184709
|
-
|
184712
|
+
const { fileList } = await utils_1.buildFileTree(path, clientOptions, debug);
|
184710
184713
|
// This is a useful warning because it prevents people
|
184711
184714
|
// from getting confused about a deployment that renders 404.
|
184712
184715
|
if (fileList.length === 0) {
|
@@ -185061,6 +185064,10 @@ async function* upload(files, clientOptions, deploymentOptions) {
|
|
185061
185064
|
}
|
185062
185065
|
await semaphore.acquire();
|
185063
185066
|
const { data } = file;
|
185067
|
+
if (typeof data === 'undefined') {
|
185068
|
+
// Directories don't need to be uploaded
|
185069
|
+
return;
|
185070
|
+
}
|
185064
185071
|
uploadProgress.bytesUploaded = 0;
|
185065
185072
|
// Split out into chunks
|
185066
185073
|
const body = new stream_1.Readable();
|
@@ -185198,6 +185205,34 @@ const zeitFetch = fetch_1.default(node_fetch_1.default);
|
|
185198
185205
|
exports.zeitFetch = zeitFetch;
|
185199
185206
|
|
185200
185207
|
|
185208
|
+
/***/ }),
|
185209
|
+
|
185210
|
+
/***/ 14462:
|
185211
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
185212
|
+
|
185213
|
+
"use strict";
|
185214
|
+
|
185215
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
185216
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
185217
|
+
};
|
185218
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
185219
|
+
exports.getPollingDelay = void 0;
|
185220
|
+
const ms_1 = __importDefault(__webpack_require__(21378));
|
185221
|
+
function getPollingDelay(elapsed) {
|
185222
|
+
if (elapsed <= ms_1.default('15s')) {
|
185223
|
+
return ms_1.default('1s');
|
185224
|
+
}
|
185225
|
+
if (elapsed <= ms_1.default('1m')) {
|
185226
|
+
return ms_1.default('5s');
|
185227
|
+
}
|
185228
|
+
if (elapsed <= ms_1.default('5m')) {
|
185229
|
+
return ms_1.default('15s');
|
185230
|
+
}
|
185231
|
+
return ms_1.default('30s');
|
185232
|
+
}
|
185233
|
+
exports.getPollingDelay = getPollingDelay;
|
185234
|
+
|
185235
|
+
|
185201
185236
|
/***/ }),
|
185202
185237
|
|
185203
185238
|
/***/ 24221:
|
@@ -185231,6 +185266,8 @@ exports.hash = hash;
|
|
185231
185266
|
const mapToObject = (map) => {
|
185232
185267
|
const obj = {};
|
185233
185268
|
for (const [key, value] of map) {
|
185269
|
+
if (typeof key === 'undefined')
|
185270
|
+
continue;
|
185234
185271
|
obj[key] = value;
|
185235
185272
|
}
|
185236
185273
|
return obj;
|
@@ -185249,15 +185286,19 @@ async function hashes(files, map = new Map()) {
|
|
185249
185286
|
await semaphore.acquire();
|
185250
185287
|
const stat = await fs_extra_1.default.lstat(name);
|
185251
185288
|
const mode = stat.mode;
|
185252
|
-
let data
|
185253
|
-
|
185254
|
-
|
185255
|
-
|
185256
|
-
|
185257
|
-
|
185258
|
-
|
185289
|
+
let data;
|
185290
|
+
const isDirectory = stat.isDirectory();
|
185291
|
+
let h;
|
185292
|
+
if (!isDirectory) {
|
185293
|
+
if (stat.isSymbolicLink()) {
|
185294
|
+
const link = await fs_extra_1.default.readlink(name);
|
185295
|
+
data = Buffer.from(link, 'utf8');
|
185296
|
+
}
|
185297
|
+
else {
|
185298
|
+
data = await fs_extra_1.default.readFile(name);
|
185299
|
+
}
|
185300
|
+
h = hash(data);
|
185259
185301
|
}
|
185260
|
-
const h = hash(data);
|
185261
185302
|
const entry = map.get(h);
|
185262
185303
|
if (entry) {
|
185263
185304
|
const names = new Set(entry.names);
|
@@ -185504,9 +185545,9 @@ const prepareFiles = (files, clientOptions) => {
|
|
185504
185545
|
}
|
185505
185546
|
preparedFiles.push({
|
185506
185547
|
file: isWin ? fileName.replace(/\\/g, '/') : fileName,
|
185507
|
-
size: file.data
|
185548
|
+
size: file.data?.byteLength || file.data?.length,
|
185508
185549
|
mode: file.mode,
|
185509
|
-
sha,
|
185550
|
+
sha: sha || undefined,
|
185510
185551
|
});
|
185511
185552
|
}
|
185512
185553
|
}
|
@@ -185638,6 +185679,10 @@ function readdir(path, ignores) {
|
|
185638
185679
|
if (stats.isDirectory()) {
|
185639
185680
|
readdir(filePath, ignores)
|
185640
185681
|
.then(function (res) {
|
185682
|
+
if (res.length === 0) {
|
185683
|
+
// Empty directories get returned
|
185684
|
+
list.push(filePath);
|
185685
|
+
}
|
185641
185686
|
list = list.concat(res);
|
185642
185687
|
pending -= 1;
|
185643
185688
|
if (!pending) {
|
@@ -214571,7 +214616,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
|
|
214571
214616
|
/***/ ((module) => {
|
214572
214617
|
|
214573
214618
|
"use strict";
|
214574
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.12.
|
214619
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.12.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 --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.15\",\"@vercel/node\":\"2.8.13\",\"@vercel/python\":\"3.1.40\",\"@vercel/redwood\":\"1.0.51\",\"@vercel/remix\":\"1.2.5\",\"@vercel/ruby\":\"1.3.56\",\"@vercel/static-build\":\"1.1.7\"},\"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.1\",\"@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\"]}}");
|
214575
214620
|
|
214576
214621
|
/***/ }),
|
214577
214622
|
|
@@ -214579,7 +214624,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.12.4\",\"pref
|
|
214579
214624
|
/***/ ((module) => {
|
214580
214625
|
|
214581
214626
|
"use strict";
|
214582
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.
|
214627
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.1\",\"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.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.9.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\"}}");
|
214583
214628
|
|
214584
214629
|
/***/ }),
|
214585
214630
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.12.
|
3
|
+
"version": "28.12.6",
|
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.
|
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.1.
|
44
|
+
"@vercel/build-utils": "5.9.0",
|
45
|
+
"@vercel/go": "2.2.30",
|
46
|
+
"@vercel/hydrogen": "0.0.44",
|
47
|
+
"@vercel/next": "3.3.15",
|
48
|
+
"@vercel/node": "2.8.13",
|
49
|
+
"@vercel/python": "3.1.40",
|
50
|
+
"@vercel/redwood": "1.0.51",
|
51
|
+
"@vercel/remix": "1.2.5",
|
52
|
+
"@vercel/ruby": "1.3.56",
|
53
|
+
"@vercel/static-build": "1.1.7"
|
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.
|
96
|
+
"@vercel/client": "12.3.1",
|
97
97
|
"@vercel/error-utils": "1.0.8",
|
98
98
|
"@vercel/frameworks": "1.2.4",
|
99
|
-
"@vercel/fs-detectors": "3.7.
|
99
|
+
"@vercel/fs-detectors": "3.7.5",
|
100
100
|
"@vercel/fun": "1.0.4",
|
101
101
|
"@vercel/ncc": "0.24.0",
|
102
102
|
"@vercel/routing-utils": "2.1.8",
|
@@ -195,5 +195,5 @@
|
|
195
195
|
"<rootDir>/test/**/*.test.ts"
|
196
196
|
]
|
197
197
|
},
|
198
|
-
"gitHead": "
|
198
|
+
"gitHead": "4ccdcde463560dc44da89edf52523419fc56ab62"
|
199
199
|
}
|