@vercel/node 5.3.6 → 5.3.8
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 +12 -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,14 @@ var build = async ({
|
|
|
70066
70068
|
}
|
|
70067
70069
|
];
|
|
70068
70070
|
}
|
|
70071
|
+
if (shim) {
|
|
70072
|
+
const handlerDir = (0, import_path3.dirname)(handler);
|
|
70073
|
+
const shimHandler = handlerDir === "." ? "shim.js" : (0, import_path3.join)(handlerDir, "shim.js");
|
|
70074
|
+
preparedFiles[shimHandler] = new import_build_utils3.FileBlob({
|
|
70075
|
+
data: shim(handler)
|
|
70076
|
+
});
|
|
70077
|
+
handler = shimHandler;
|
|
70078
|
+
}
|
|
70069
70079
|
if (isEdgeFunction) {
|
|
70070
70080
|
output = new import_build_utils3.EdgeFunction({
|
|
70071
70081
|
entrypoint: handler,
|
|
@@ -70081,7 +70091,7 @@ var build = async ({
|
|
|
70081
70091
|
handler,
|
|
70082
70092
|
architecture: staticConfig?.architecture,
|
|
70083
70093
|
runtime: nodeVersion.runtime,
|
|
70084
|
-
useWebApi: isMiddleware,
|
|
70094
|
+
useWebApi: isMiddleware ? true : useWebApi,
|
|
70085
70095
|
shouldAddHelpers: isMiddleware ? false : shouldAddHelpers,
|
|
70086
70096
|
shouldAddSourcemapSupport,
|
|
70087
70097
|
awsLambdaHandler,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.8",
|
|
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.6"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "node build.mjs",
|