vercel 28.16.4 → 28.16.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 +52 -9
- package/package.json +14 -15
package/dist/index.js
CHANGED
@@ -197229,9 +197229,15 @@ async function main(client) {
|
|
197229
197229
|
continue: true,
|
197230
197230
|
});
|
197231
197231
|
}));
|
197232
|
-
|
197233
|
-
|
197234
|
-
|
197232
|
+
// only process the first 201 projects
|
197233
|
+
const to = Math.min(projectDeployments.length, 201);
|
197234
|
+
for (let i = 0; i < to; i++) {
|
197235
|
+
for (const pDepl of projectDeployments[i]) {
|
197236
|
+
const depl = pDepl;
|
197237
|
+
depl.aliases = [];
|
197238
|
+
deployments.push(depl);
|
197239
|
+
}
|
197240
|
+
}
|
197235
197241
|
projects = [];
|
197236
197242
|
}
|
197237
197243
|
else {
|
@@ -201575,13 +201581,42 @@ async function getDeploymentsByProjectId(client, projectId, options = { from: nu
|
|
201575
201581
|
if (options.from) {
|
201576
201582
|
query.set('from', options.from.toString());
|
201577
201583
|
}
|
201578
|
-
const { deployments } = await client.fetch(`/
|
201584
|
+
const { deployments: legacyDeployments } = await client.fetch(`/v6/deployments?${query}`);
|
201585
|
+
// we need to transform the old deployment shape to the new shape
|
201586
|
+
const deployments = legacyDeployments.map(depl => {
|
201587
|
+
return {
|
201588
|
+
aliasAssigned: depl.aliasAssigned,
|
201589
|
+
aliasError: depl.aliasError,
|
201590
|
+
buildingAt: depl.buildingAt,
|
201591
|
+
checksConclusion: depl.checksConclusion,
|
201592
|
+
checksState: depl.checksState,
|
201593
|
+
createdAt: depl.created,
|
201594
|
+
creator: {
|
201595
|
+
uid: depl.creator.uid,
|
201596
|
+
username: depl.creator.username,
|
201597
|
+
},
|
201598
|
+
id: depl.uid,
|
201599
|
+
inspectorUrl: depl.inspectorUrl,
|
201600
|
+
meta: depl.meta,
|
201601
|
+
name: depl.name,
|
201602
|
+
public: true,
|
201603
|
+
ready: depl.ready,
|
201604
|
+
readyState: depl.state,
|
201605
|
+
regions: [],
|
201606
|
+
source: depl.source,
|
201607
|
+
status: depl.state,
|
201608
|
+
target: depl.target,
|
201609
|
+
type: depl.type,
|
201610
|
+
url: depl.url,
|
201611
|
+
version: 2,
|
201612
|
+
};
|
201613
|
+
});
|
201579
201614
|
total += deployments.length;
|
201580
201615
|
if (options.max && total >= options.max) {
|
201581
201616
|
return deployments;
|
201582
201617
|
}
|
201583
201618
|
if (options.continue && deployments.length === limit) {
|
201584
|
-
const nextFrom = deployments[deployments.length - 1].
|
201619
|
+
const nextFrom = deployments[deployments.length - 1].createdAt;
|
201585
201620
|
const nextOptions = Object.assign({}, options, { from: nextFrom });
|
201586
201621
|
deployments.push(...(await getDeploymentsByProjectId(client, projectId, nextOptions, total)));
|
201587
201622
|
}
|
@@ -202450,14 +202485,19 @@ exports.default = isURL;
|
|
202450
202485
|
/***/ }),
|
202451
202486
|
|
202452
202487
|
/***/ 38213:
|
202453
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
202488
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
202454
202489
|
|
202455
202490
|
"use strict";
|
202456
202491
|
|
202492
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
202493
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
202494
|
+
};
|
202457
202495
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
202458
202496
|
const mime_types_1 = __webpack_require__(92981);
|
202497
|
+
const path_1 = __importDefault(__webpack_require__(85622));
|
202459
202498
|
function getMimeType(fileName) {
|
202460
|
-
|
202499
|
+
const extension = path_1.default.extname(fileName);
|
202500
|
+
return (0, mime_types_1.contentType)(extension) || 'application/octet-stream';
|
202461
202501
|
}
|
202462
202502
|
exports.default = getMimeType;
|
202463
202503
|
|
@@ -213413,6 +213453,9 @@ const imagesSchema = {
|
|
213413
213453
|
additionalProperties: false,
|
213414
213454
|
required: ['sizes'],
|
213415
213455
|
properties: {
|
213456
|
+
contentDispositionType: {
|
213457
|
+
enum: ['inline', 'attachment'],
|
213458
|
+
},
|
213416
213459
|
contentSecurityPolicy: {
|
213417
213460
|
type: 'string',
|
213418
213461
|
minLength: 1,
|
@@ -214020,7 +214063,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
|
|
214020
214063
|
/***/ ((module) => {
|
214021
214064
|
|
214022
214065
|
"use strict";
|
214023
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.16.
|
214066
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.16.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-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-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.3.1\",\"@vercel/go\":\"2.3.8\",\"@vercel/hydrogen\":\"0.0.54\",\"@vercel/next\":\"3.6.0\",\"@vercel/node\":\"2.9.7\",\"@vercel/python\":\"3.1.50\",\"@vercel/redwood\":\"1.1.6\",\"@vercel/remix\":\"1.4.1\",\"@vercel/ruby\":\"1.3.67\",\"@vercel/static-build\":\"1.3.11\"},\"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.4.1\",\"@vercel/error-utils\":\"1.0.8\",\"@vercel/frameworks\":\"1.3.1\",\"@vercel/fs-detectors\":\"3.8.1\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/routing-utils\":\"2.1.9\",\"@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\",\"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\",\"find-up\":\"4.1.0\",\"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\",\"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\"]}}");
|
214024
214067
|
|
214025
214068
|
/***/ }),
|
214026
214069
|
|
@@ -214028,7 +214071,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.16.4\",\"pref
|
|
214028
214071
|
/***/ ((module) => {
|
214029
214072
|
|
214030
214073
|
"use strict";
|
214031
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.4.
|
214074
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.4.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-e2e\":\"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.3.1\",\"@vercel/routing-utils\":\"2.1.9\",\"@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\"}}");
|
214032
214075
|
|
214033
214076
|
/***/ }),
|
214034
214077
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.16.
|
3
|
+
"version": "28.16.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": "6.3.
|
45
|
-
"@vercel/go": "2.3.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.
|
48
|
-
"@vercel/node": "2.9.
|
49
|
-
"@vercel/python": "3.1.
|
50
|
-
"@vercel/redwood": "1.1.
|
51
|
-
"@vercel/remix": "1.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.3.
|
44
|
+
"@vercel/build-utils": "6.3.1",
|
45
|
+
"@vercel/go": "2.3.8",
|
46
|
+
"@vercel/hydrogen": "0.0.54",
|
47
|
+
"@vercel/next": "3.6.0",
|
48
|
+
"@vercel/node": "2.9.7",
|
49
|
+
"@vercel/python": "3.1.50",
|
50
|
+
"@vercel/redwood": "1.1.6",
|
51
|
+
"@vercel/remix": "1.4.1",
|
52
|
+
"@vercel/ruby": "1.3.67",
|
53
|
+
"@vercel/static-build": "1.3.11"
|
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.4.
|
96
|
+
"@vercel/client": "12.4.1",
|
97
97
|
"@vercel/error-utils": "1.0.8",
|
98
98
|
"@vercel/frameworks": "1.3.1",
|
99
|
-
"@vercel/fs-detectors": "3.8.
|
99
|
+
"@vercel/fs-detectors": "3.8.1",
|
100
100
|
"@vercel/fun": "1.0.4",
|
101
101
|
"@vercel/ncc": "0.24.0",
|
102
102
|
"@vercel/routing-utils": "2.1.9",
|
@@ -140,7 +140,6 @@
|
|
140
140
|
"is-url": "1.2.2",
|
141
141
|
"jaro-winkler": "0.2.8",
|
142
142
|
"jest-matcher-utils": "29.3.1",
|
143
|
-
"json5": "2.2.1",
|
144
143
|
"jsonlines": "0.1.1",
|
145
144
|
"line-async-iterator": "3.0.0",
|
146
145
|
"load-json-file": "3.0.0",
|
@@ -195,5 +194,5 @@
|
|
195
194
|
"<rootDir>/test/**/*.test.ts"
|
196
195
|
]
|
197
196
|
},
|
198
|
-
"gitHead": "
|
197
|
+
"gitHead": "6c5f0b7aa08ed2e2612557ca8bc0f509d55b374d"
|
199
198
|
}
|