vercel 24.2.4-canary.0 → 24.2.4-canary.1
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 +9 -28
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -235315,6 +235315,7 @@ const error_404_1 = __importDefault(__webpack_require__(47062));
|
|
235315
235315
|
const error_502_1 = __importDefault(__webpack_require__(73862));
|
235316
235316
|
const redirect_1 = __importDefault(__webpack_require__(14050));
|
235317
235317
|
const expose_system_envs_1 = __importDefault(__webpack_require__(40313));
|
235318
|
+
const tree_kill_1 = __webpack_require__(21780);
|
235318
235319
|
const frontendRuntimeSet = new Set(frameworks_1.default.map(f => { var _a; return ((_a = f.useRuntime) === null || _a === void 0 ? void 0 : _a.use) || '@vercel/static-build'; }));
|
235319
235320
|
function sortBuilders(buildA, buildB) {
|
235320
235321
|
if (buildA && buildA.use && build_utils_1.isOfficialRuntime('static-build', buildA.use)) {
|
@@ -236442,19 +236443,7 @@ class DevServer {
|
|
236442
236443
|
ops.push(builder_1.shutdownBuilder(match, this.output));
|
236443
236444
|
}
|
236444
236445
|
if (devProcess) {
|
236445
|
-
ops.push(
|
236446
|
-
devProcess.once('exit', () => resolve());
|
236447
|
-
try {
|
236448
|
-
process.kill(devProcess.pid);
|
236449
|
-
}
|
236450
|
-
catch (err) {
|
236451
|
-
if (err.code === 'ESRCH') {
|
236452
|
-
// Process already exited
|
236453
|
-
return resolve();
|
236454
|
-
}
|
236455
|
-
reject(err);
|
236456
|
-
}
|
236457
|
-
}));
|
236446
|
+
ops.push(tree_kill_1.treeKill(devProcess.pid));
|
236458
236447
|
}
|
236459
236448
|
ops.push(close(this.server));
|
236460
236449
|
if (this.watcher) {
|
@@ -236488,13 +236477,7 @@ class DevServer {
|
|
236488
236477
|
const { debug } = this.output;
|
236489
236478
|
debug(`Killing builder dev server with PID ${pid}`);
|
236490
236479
|
this.devServerPids.delete(pid);
|
236491
|
-
|
236492
|
-
process.kill(pid, 'SIGTERM');
|
236493
|
-
debug(`Killed builder dev server with PID ${pid}`);
|
236494
|
-
}
|
236495
|
-
catch (err) {
|
236496
|
-
debug(`Failed to kill builder dev server with PID ${pid}: ${err}`);
|
236497
|
-
}
|
236480
|
+
await tree_kill_1.treeKill(pid);
|
236498
236481
|
}
|
236499
236482
|
async send404(req, res, requestId) {
|
236500
236483
|
return this.sendError(req, res, requestId, 'NOT_FOUND', 404);
|
@@ -236770,7 +236753,7 @@ class DevServer {
|
|
236770
236753
|
let command = devCommand
|
236771
236754
|
.replace(/\$PORT/g, `${port}`)
|
236772
236755
|
.replace(/%PORT%/g, `${port}`);
|
236773
|
-
this.output.debug(`Starting dev command with parameters
|
236756
|
+
this.output.debug(`Starting dev command with parameters: ${JSON.stringify({
|
236774
236757
|
cwd,
|
236775
236758
|
command,
|
236776
236759
|
port,
|
@@ -236797,6 +236780,7 @@ class DevServer {
|
|
236797
236780
|
cwd,
|
236798
236781
|
env,
|
236799
236782
|
});
|
236783
|
+
this.devProcess = p;
|
236800
236784
|
if (!p.stdout || !p.stderr) {
|
236801
236785
|
throw new Error('Expected child process to have stdout and stderr');
|
236802
236786
|
}
|
@@ -236805,15 +236789,12 @@ class DevServer {
|
|
236805
236789
|
p.stdout.on('data', (data) => {
|
236806
236790
|
process.stdout.write(data.replace(proxyPort, devPort));
|
236807
236791
|
});
|
236808
|
-
p.on('exit', (code) => {
|
236809
|
-
|
236810
|
-
process.exit(code);
|
236811
|
-
}
|
236792
|
+
p.on('exit', (code, signal) => {
|
236793
|
+
this.output.debug(`Dev command exited with "${signal || code}"`);
|
236812
236794
|
this.devProcessPort = undefined;
|
236813
236795
|
});
|
236814
236796
|
await checkForPort(port, 1000 * 60 * 5);
|
236815
236797
|
this.devProcessPort = port;
|
236816
|
-
this.devProcess = p;
|
236817
236798
|
}
|
236818
236799
|
}
|
236819
236800
|
exports.default = DevServer;
|
@@ -245299,7 +245280,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
245299
245280
|
/***/ ((module) => {
|
245300
245281
|
|
245301
245282
|
"use strict";
|
245302
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"24.2.4-canary.
|
245283
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"24.2.4-canary.1\",\"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/\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"3.0.2-canary.0\",\"@vercel/go\":\"1.4.3-canary.0\",\"@vercel/node\":\"1.15.3-canary.1\",\"@vercel/python\":\"2.3.3-canary.0\",\"@vercel/ruby\":\"1.3.6-canary.0\",\"update-notifier\":\"4.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\",\"@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/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/progress\":\"2.0.3\",\"@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\",\"@vercel/client\":\"11.0.3-canary.0\",\"@vercel/frameworks\":\"0.9.1-canary.0\",\"@vercel/ncc\":\"0.24.0\",\"@zeit/fun\":\"0.11.2\",\"@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\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"clipboardy\":\"2.1.0\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"credit-card\":\"3.0.1\",\"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\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.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.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"progress\":\"2.0.3\",\"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\":\"8.3.0\",\"typescript\":\"4.3.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\"},\"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\"]},\"gitHead\":\"1c3497dc746ffef7a16747b25f3fc8c99f2294f2\"}");
|
245303
245284
|
|
245304
245285
|
/***/ }),
|
245305
245286
|
|
@@ -245315,7 +245296,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
245315
245296
|
/***/ ((module) => {
|
245316
245297
|
|
245317
245298
|
"use strict";
|
245318
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"11.0.3-canary.0\",\"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\":\">= 12\"},\"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\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"3.0.2-canary.0\",\"@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.1\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\"}
|
245299
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"11.0.3-canary.0\",\"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\":\">= 12\"},\"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\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"3.0.2-canary.0\",\"@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.1\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\"}}");
|
245319
245300
|
|
245320
245301
|
/***/ }),
|
245321
245302
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "24.2.4-canary.
|
3
|
+
"version": "24.2.4-canary.1",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -12,10 +12,10 @@
|
|
12
12
|
},
|
13
13
|
"scripts": {
|
14
14
|
"preinstall": "node ./scripts/preinstall.js",
|
15
|
-
"test": "jest --env node --verbose --runInBand --bail",
|
16
|
-
"test-unit": "yarn test",
|
15
|
+
"test": "jest --env node --verbose --runInBand --bail --forceExit",
|
16
|
+
"test-unit": "yarn test test/unit/",
|
17
17
|
"test-integration-cli": "rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose",
|
18
|
-
"test-integration-dev": "
|
18
|
+
"test-integration-dev": "yarn test test/dev/",
|
19
19
|
"prepublishOnly": "yarn build",
|
20
20
|
"coverage": "codecov",
|
21
21
|
"build": "node -r ts-eager/register ./scripts/build.ts",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"dependencies": {
|
46
46
|
"@vercel/build-utils": "3.0.2-canary.0",
|
47
47
|
"@vercel/go": "1.4.3-canary.0",
|
48
|
-
"@vercel/node": "1.15.3-canary.
|
48
|
+
"@vercel/node": "1.15.3-canary.1",
|
49
49
|
"@vercel/python": "2.3.3-canary.0",
|
50
50
|
"@vercel/ruby": "1.3.6-canary.0",
|
51
51
|
"update-notifier": "4.1.0"
|
@@ -186,5 +186,5 @@
|
|
186
186
|
"<rootDir>/test/**/*.test.ts"
|
187
187
|
]
|
188
188
|
},
|
189
|
-
"gitHead": "
|
189
|
+
"gitHead": "1c3497dc746ffef7a16747b25f3fc8c99f2294f2"
|
190
190
|
}
|