@vercel/node 5.3.5 → 5.3.7
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 +10 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -70000,6 +70000,8 @@ function getAWSLambdaHandler(entrypoint, config) {
|
|
|
70000
70000
|
var build = async ({
|
|
70001
70001
|
files,
|
|
70002
70002
|
entrypoint,
|
|
70003
|
+
shim,
|
|
70004
|
+
useWebApi,
|
|
70003
70005
|
workPath,
|
|
70004
70006
|
repoRootPath,
|
|
70005
70007
|
config = {},
|
|
@@ -70044,7 +70046,7 @@ var build = async ({
|
|
|
70044
70046
|
(0, import_build_utils3.debug)(`Trace complete [${Date.now() - traceTime}ms]`);
|
|
70045
70047
|
let routes;
|
|
70046
70048
|
let output;
|
|
70047
|
-
|
|
70049
|
+
let handler = renameTStoJS((0, import_path3.relative)(baseDir, entrypointPath));
|
|
70048
70050
|
const outputPath = entrypointToOutputPath(entrypoint, config.zeroConfig);
|
|
70049
70051
|
if (isMiddleware) {
|
|
70050
70052
|
const src = getRegExpFromMatchers(staticConfig?.matcher);
|
|
@@ -70066,6 +70068,12 @@ var build = async ({
|
|
|
70066
70068
|
}
|
|
70067
70069
|
];
|
|
70068
70070
|
}
|
|
70071
|
+
if (shim) {
|
|
70072
|
+
preparedFiles["shim.js"] = new import_build_utils3.FileBlob({
|
|
70073
|
+
data: shim(handler)
|
|
70074
|
+
});
|
|
70075
|
+
handler = "shim.js";
|
|
70076
|
+
}
|
|
70069
70077
|
if (isEdgeFunction) {
|
|
70070
70078
|
output = new import_build_utils3.EdgeFunction({
|
|
70071
70079
|
entrypoint: handler,
|
|
@@ -70081,7 +70089,7 @@ var build = async ({
|
|
|
70081
70089
|
handler,
|
|
70082
70090
|
architecture: staticConfig?.architecture,
|
|
70083
70091
|
runtime: nodeVersion.runtime,
|
|
70084
|
-
useWebApi: isMiddleware,
|
|
70092
|
+
useWebApi: isMiddleware ? true : useWebApi,
|
|
70085
70093
|
shouldAddHelpers: isMiddleware ? false : shouldAddHelpers,
|
|
70086
70094
|
shouldAddSourcemapSupport,
|
|
70087
70095
|
awsLambdaHandler,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.7",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@edge-runtime/primitives": "4.1.0",
|
|
18
18
|
"@edge-runtime/vm": "3.2.0",
|
|
19
19
|
"@types/node": "16.18.11",
|
|
20
|
-
"@vercel/build-utils": "
|
|
20
|
+
"@vercel/build-utils": "11.0.0",
|
|
21
21
|
"@vercel/error-utils": "2.0.3",
|
|
22
22
|
"@vercel/nft": "0.29.2",
|
|
23
23
|
"@vercel/static-config": "3.1.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tree-kill": "1.2.2",
|
|
58
58
|
"vite": "^5.1.6",
|
|
59
59
|
"vitest": "^2.0.1",
|
|
60
|
-
"@vercel/functions": "2.2.
|
|
60
|
+
"@vercel/functions": "2.2.5"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "node build.mjs",
|