@vercel/node 5.6.9 → 5.6.11
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/dev-server.mjs +4 -7
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/dev-server.mjs
CHANGED
|
@@ -662,16 +662,13 @@ var Awaiter = class {
|
|
|
662
662
|
() => this.promises.size > 0 ? this.waitForBatch() : Promise.resolve()
|
|
663
663
|
);
|
|
664
664
|
this.waitUntil = (promise) => {
|
|
665
|
-
|
|
665
|
+
const handledPromise = Promise.resolve(promise).catch(this.onError);
|
|
666
|
+
this.promises.add(handledPromise);
|
|
666
667
|
};
|
|
667
668
|
this.waitForBatch = async () => {
|
|
668
669
|
const promises = Array.from(this.promises);
|
|
669
670
|
this.promises.clear();
|
|
670
|
-
await Promise.all(
|
|
671
|
-
promises.map(
|
|
672
|
-
(promise) => Promise.resolve(promise).then(() => void 0, this.onError)
|
|
673
|
-
)
|
|
674
|
-
);
|
|
671
|
+
await Promise.all(promises);
|
|
675
672
|
};
|
|
676
673
|
this.onError = onError ?? console.error;
|
|
677
674
|
}
|
|
@@ -907,7 +904,7 @@ function getBodyParser(body, contentType) {
|
|
|
907
904
|
try {
|
|
908
905
|
const str = body.toString();
|
|
909
906
|
return str ? JSON.parse(str) : {};
|
|
910
|
-
} catch (
|
|
907
|
+
} catch (_error) {
|
|
911
908
|
throw new ApiError(400, "Invalid JSON");
|
|
912
909
|
}
|
|
913
910
|
}
|
package/dist/index.js
CHANGED
|
@@ -70050,7 +70050,7 @@ function register(opts = {}) {
|
|
|
70050
70050
|
compiler = require_.resolve(options.compiler || "typescript", {
|
|
70051
70051
|
paths: [options.project || cwd]
|
|
70052
70052
|
});
|
|
70053
|
-
} catch (
|
|
70053
|
+
} catch (_e) {
|
|
70054
70054
|
compiler = "typescript";
|
|
70055
70055
|
}
|
|
70056
70056
|
const ts = require_(compiler);
|
|
@@ -71242,7 +71242,7 @@ var startDevServer = async (opts) => {
|
|
|
71242
71242
|
if (runtime === "bun") {
|
|
71243
71243
|
try {
|
|
71244
71244
|
process.kill(pid, "SIGTERM");
|
|
71245
|
-
} catch (
|
|
71245
|
+
} catch (_err) {
|
|
71246
71246
|
await treeKill(pid);
|
|
71247
71247
|
}
|
|
71248
71248
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"tsx": "4.21.0",
|
|
33
33
|
"typescript": "npm:typescript@5.9.3",
|
|
34
34
|
"undici": "5.28.4",
|
|
35
|
-
"@vercel/
|
|
35
|
+
"@vercel/error-utils": "2.0.3",
|
|
36
36
|
"@vercel/static-config": "3.1.2",
|
|
37
|
-
"@vercel/
|
|
37
|
+
"@vercel/build-utils": "13.6.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@babel/core": "7.24.4",
|