@vercel/node 5.6.12 → 5.6.15

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.
@@ -1248,10 +1248,13 @@ async function createEventHandler(entrypoint2, config, options) {
1248
1248
  const staticConfig = parseConfig(entrypointPath);
1249
1249
  const runtime = staticConfig?.runtime;
1250
1250
  validateConfiguredRuntime(runtime, entrypoint2);
1251
- const { maxDuration } = await getLambdaOptionsFromFunction({
1252
- sourceFile: entrypoint2,
1253
- config
1254
- });
1251
+ const { maxDuration: configMaxDuration } = await getLambdaOptionsFromFunction(
1252
+ {
1253
+ sourceFile: entrypoint2,
1254
+ config
1255
+ }
1256
+ );
1257
+ const maxDuration = typeof configMaxDuration === "number" ? configMaxDuration : void 0;
1255
1258
  const isMiddleware = config.middleware === true;
1256
1259
  const useEdgeRuntime = isMiddleware && !runtime || isEdgeRuntime(runtime);
1257
1260
  if (useEdgeRuntime) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "5.6.12",
3
+ "version": "5.6.15",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -32,8 +32,8 @@
32
32
  "tsx": "4.21.0",
33
33
  "typescript": "npm:typescript@5.9.3",
34
34
  "undici": "5.28.4",
35
- "@vercel/build-utils": "13.7.0",
36
- "@vercel/static-config": "3.1.2",
35
+ "@vercel/build-utils": "13.8.0",
36
+ "@vercel/static-config": "3.2.0",
37
37
  "@vercel/error-utils": "2.0.3"
38
38
  },
39
39
  "devDependencies": {