vercel 28.2.2 → 28.2.3
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 +30 -18
- package/package.json +15 -15
package/dist/index.js
CHANGED
@@ -216387,12 +216387,13 @@ exports.detectFramework = detectFramework;
|
|
216387
216387
|
/***/ }),
|
216388
216388
|
|
216389
216389
|
/***/ 56114:
|
216390
|
-
/***/ ((__unused_webpack_module, exports) => {
|
216390
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
216391
216391
|
|
216392
216392
|
"use strict";
|
216393
216393
|
|
216394
216394
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
216395
216395
|
exports.DetectorFilesystem = void 0;
|
216396
|
+
const path_1 = __webpack_require__(85622);
|
216396
216397
|
/**
|
216397
216398
|
* `DetectorFilesystem` is an abstract class that represents a virtual filesystem
|
216398
216399
|
* to perform read-only operations on in order to detect which framework is being
|
@@ -216446,12 +216447,34 @@ class DetectorFilesystem {
|
|
216446
216447
|
};
|
216447
216448
|
/**
|
216448
216449
|
* Returns a list of Stat objects from the current working directory.
|
216450
|
+
* @param dirPath The path of the directory to read.
|
216451
|
+
* @param options.potentialFiles optional. Array of potential file names (relative to the path). If provided, these will be used to mark the filesystem caches as existing or not existing.
|
216449
216452
|
*/
|
216450
|
-
this.readdir = async (
|
216451
|
-
let p = this.readdirCache.get(
|
216453
|
+
this.readdir = async (dirPath, options) => {
|
216454
|
+
let p = this.readdirCache.get(dirPath);
|
216452
216455
|
if (!p) {
|
216453
|
-
p = this._readdir(
|
216454
|
-
this.readdirCache.set(
|
216456
|
+
p = this._readdir(dirPath);
|
216457
|
+
this.readdirCache.set(dirPath, p);
|
216458
|
+
const directoryContent = await p;
|
216459
|
+
const directoryFiles = new Set();
|
216460
|
+
for (const file of directoryContent) {
|
216461
|
+
if (file.type === 'file') {
|
216462
|
+
// we know this file exists, mark it as so on the filesystem
|
216463
|
+
this.fileCache.set(file.path, Promise.resolve(true));
|
216464
|
+
this.pathCache.set(file.path, Promise.resolve(true));
|
216465
|
+
directoryFiles.add(file.name);
|
216466
|
+
}
|
216467
|
+
}
|
216468
|
+
if (options?.potentialFiles) {
|
216469
|
+
// calculate the set of paths that truly do not exist
|
216470
|
+
const filesThatDoNotExist = options.potentialFiles.filter(path => !directoryFiles.has(path));
|
216471
|
+
for (const filePath of filesThatDoNotExist) {
|
216472
|
+
const fullFilePath = dirPath === '/' ? filePath : path_1.posix.join(dirPath, filePath);
|
216473
|
+
// we know this file does not exist, mark it as so on the filesystem
|
216474
|
+
this.fileCache.set(fullFilePath, Promise.resolve(false));
|
216475
|
+
this.pathCache.set(fullFilePath, Promise.resolve(false));
|
216476
|
+
}
|
216477
|
+
}
|
216455
216478
|
}
|
216456
216479
|
return p;
|
216457
216480
|
};
|
@@ -216466,17 +216489,6 @@ class DetectorFilesystem {
|
|
216466
216489
|
this.readFileCache = new Map();
|
216467
216490
|
this.readdirCache = new Map();
|
216468
216491
|
}
|
216469
|
-
/**
|
216470
|
-
* Writes a file to the filesystem cache.
|
216471
|
-
* @param name the name of the file to write
|
216472
|
-
* @param content The content of the file
|
216473
|
-
*/
|
216474
|
-
writeFile(name, content) {
|
216475
|
-
if (content)
|
216476
|
-
this.readFileCache.set(name, Promise.resolve(Buffer.from(content)));
|
216477
|
-
this.fileCache.set(name, Promise.resolve(true));
|
216478
|
-
this.pathCache.set(name, Promise.resolve(true));
|
216479
|
-
}
|
216480
216492
|
}
|
216481
216493
|
exports.DetectorFilesystem = DetectorFilesystem;
|
216482
216494
|
//# sourceMappingURL=filesystem.js.map
|
@@ -249433,7 +249445,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
249433
249445
|
/***/ ((module) => {
|
249434
249446
|
|
249435
249447
|
"use strict";
|
249436
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.2.
|
249448
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.2.3\",\"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.4.2\",\"@vercel/go\":\"2.2.5\",\"@vercel/hydrogen\":\"0.0.18\",\"@vercel/next\":\"3.1.25\",\"@vercel/node\":\"2.5.14\",\"@vercel/python\":\"3.1.14\",\"@vercel/redwood\":\"1.0.23\",\"@vercel/remix\":\"1.0.24\",\"@vercel/ruby\":\"1.3.31\",\"@vercel/static-build\":\"1.0.22\",\"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.4\",\"@vercel/frameworks\":\"1.1.4\",\"@vercel/fs-detectors\":\"3.0.0\",\"@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\"]}}");
|
249437
249449
|
|
249438
249450
|
/***/ }),
|
249439
249451
|
|
@@ -249441,7 +249453,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.2.2\",\"prefe
|
|
249441
249453
|
/***/ ((module) => {
|
249442
249454
|
|
249443
249455
|
"use strict";
|
249444
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.
|
249456
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.4\",\"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.4.2\",\"@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\"}}");
|
249445
249457
|
|
249446
249458
|
/***/ }),
|
249447
249459
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.2.
|
3
|
+
"version": "28.2.3",
|
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.4.
|
45
|
-
"@vercel/go": "2.2.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.1.
|
48
|
-
"@vercel/node": "2.5.
|
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.4.2",
|
45
|
+
"@vercel/go": "2.2.5",
|
46
|
+
"@vercel/hydrogen": "0.0.18",
|
47
|
+
"@vercel/next": "3.1.25",
|
48
|
+
"@vercel/node": "2.5.14",
|
49
|
+
"@vercel/python": "3.1.14",
|
50
|
+
"@vercel/redwood": "1.0.23",
|
51
|
+
"@vercel/remix": "1.0.24",
|
52
|
+
"@vercel/ruby": "1.3.31",
|
53
|
+
"@vercel/static-build": "1.0.22",
|
54
54
|
"update-notifier": "5.1.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
@@ -95,9 +95,9 @@
|
|
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/frameworks": "1.1.
|
100
|
-
"@vercel/fs-detectors": "
|
98
|
+
"@vercel/client": "12.2.4",
|
99
|
+
"@vercel/frameworks": "1.1.4",
|
100
|
+
"@vercel/fs-detectors": "3.0.0",
|
101
101
|
"@vercel/fun": "1.0.4",
|
102
102
|
"@vercel/ncc": "0.24.0",
|
103
103
|
"@zeit/source-map-support": "0.6.2",
|
@@ -193,5 +193,5 @@
|
|
193
193
|
"<rootDir>/test/**/*.test.ts"
|
194
194
|
]
|
195
195
|
},
|
196
|
-
"gitHead": "
|
196
|
+
"gitHead": "d5537500d8957985c1ffb3798659a611cc2e5d5d"
|
197
197
|
}
|