vercel 33.0.1 → 33.0.2
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 +17 -11
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -52621,8 +52621,8 @@ var GA_TRACKING_ID, SENTRY_DSN;
|
|
52621
52621
|
var init_constants = __esm({
|
52622
52622
|
"src/util/constants.ts"() {
|
52623
52623
|
"use strict";
|
52624
|
-
GA_TRACKING_ID =
|
52625
|
-
SENTRY_DSN =
|
52624
|
+
GA_TRACKING_ID = void 0;
|
52625
|
+
SENTRY_DSN = void 0;
|
52626
52626
|
}
|
52627
52627
|
});
|
52628
52628
|
|
@@ -186584,9 +186584,9 @@ var init_server = __esm({
|
|
186584
186584
|
});
|
186585
186585
|
}
|
186586
186586
|
if (startMiddlewareResult) {
|
186587
|
-
const { port, pid } = startMiddlewareResult;
|
186587
|
+
const { port, pid, shutdown } = startMiddlewareResult;
|
186588
186588
|
middlewarePid = pid;
|
186589
|
-
this.
|
186589
|
+
this.shutdownCallbacks.set(pid, shutdown);
|
186590
186590
|
const middlewareReqHeaders = nodeHeadersToFetchHeaders(req.headers);
|
186591
186591
|
const proxyHeaders = this.getProxyHeaders(req, requestId, true);
|
186592
186592
|
for (const [name, value] of nodeHeadersToFetchHeaders(proxyHeaders)) {
|
@@ -186951,8 +186951,8 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
186951
186951
|
}
|
186952
186952
|
if (devServerResult) {
|
186953
186953
|
requestId = generateRequestId(this.podId, true);
|
186954
|
-
const { port, pid } = devServerResult;
|
186955
|
-
this.
|
186954
|
+
const { port, pid, shutdown } = devServerResult;
|
186955
|
+
this.shutdownCallbacks.set(pid, shutdown);
|
186956
186956
|
res.once("close", () => {
|
186957
186957
|
this.killBuilderDevServer(pid);
|
186958
186958
|
});
|
@@ -187129,7 +187129,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
187129
187129
|
this.watchAggregationTimeout = 500;
|
187130
187130
|
this.filter = (path11) => Boolean(path11);
|
187131
187131
|
this.podId = Math.random().toString(32).slice(-5);
|
187132
|
-
this.
|
187132
|
+
this.shutdownCallbacks = /* @__PURE__ */ new Map();
|
187133
187133
|
}
|
187134
187134
|
get address() {
|
187135
187135
|
if (!this._address) {
|
@@ -187756,7 +187756,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
187756
187756
|
debug3(`Closing file watcher`);
|
187757
187757
|
ops.push(this.watcher.close());
|
187758
187758
|
}
|
187759
|
-
for (const pid of this.
|
187759
|
+
for (const pid of this.shutdownCallbacks.keys()) {
|
187760
187760
|
ops.push(this.killBuilderDevServer(pid));
|
187761
187761
|
}
|
187762
187762
|
try {
|
@@ -187772,7 +187772,13 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
187772
187772
|
async killBuilderDevServer(pid) {
|
187773
187773
|
const { debug: debug3 } = this.output;
|
187774
187774
|
debug3(`Killing builder dev server with PID ${pid}`);
|
187775
|
-
this.
|
187775
|
+
const shutdownCb = this.shutdownCallbacks.get(pid);
|
187776
|
+
this.shutdownCallbacks.delete(pid);
|
187777
|
+
if (shutdownCb) {
|
187778
|
+
debug3(`Running shutdown callback for PID ${pid}`);
|
187779
|
+
await shutdownCb();
|
187780
|
+
return;
|
187781
|
+
}
|
187776
187782
|
try {
|
187777
187783
|
await treeKill(pid);
|
187778
187784
|
debug3(`Killed builder dev server with PID ${pid}`);
|
@@ -198503,7 +198509,7 @@ function createProxy(client2) {
|
|
198503
198509
|
|
198504
198510
|
// src/util/extension/exec.ts
|
198505
198511
|
async function execExtension(client2, name, args2, cwd) {
|
198506
|
-
const { debug: debug3 } = client2.output;
|
198512
|
+
const { debug: debug3, log: log2 } = client2.output;
|
198507
198513
|
const extensionCommand = `vercel-${name}`;
|
198508
198514
|
const { packageJsonPath, lockfilePath } = await (0, import_build_utils4.scanParentDirs)(cwd);
|
198509
198515
|
const baseFile = lockfilePath || packageJsonPath;
|
@@ -198545,7 +198551,7 @@ async function execExtension(client2, name, args2, cwd) {
|
|
198545
198551
|
});
|
198546
198552
|
proxy.close();
|
198547
198553
|
if (result instanceof Error) {
|
198548
|
-
|
198554
|
+
log2(`Error running extension ${extensionCommand}: ${result.message}`);
|
198549
198555
|
}
|
198550
198556
|
return result.exitCode;
|
198551
198557
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "33.0.
|
3
|
+
"version": "33.0.2",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -23,13 +23,13 @@
|
|
23
23
|
"dependencies": {
|
24
24
|
"@vercel/build-utils": "7.4.1",
|
25
25
|
"@vercel/fun": "1.1.0",
|
26
|
-
"@vercel/go": "3.0.
|
26
|
+
"@vercel/go": "3.0.5",
|
27
27
|
"@vercel/hydrogen": "1.0.1",
|
28
|
-
"@vercel/next": "4.0.
|
29
|
-
"@vercel/node": "3.0.
|
28
|
+
"@vercel/next": "4.0.17",
|
29
|
+
"@vercel/node": "3.0.15",
|
30
30
|
"@vercel/python": "4.1.0",
|
31
|
-
"@vercel/redwood": "2.0.
|
32
|
-
"@vercel/remix-builder": "2.0.
|
31
|
+
"@vercel/redwood": "2.0.6",
|
32
|
+
"@vercel/remix-builder": "2.0.16",
|
33
33
|
"@vercel/ruby": "2.0.4",
|
34
34
|
"@vercel/static-build": "2.0.16",
|
35
35
|
"chokidar": "3.3.1"
|