@vercel/node 5.6.11 → 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) {
@@ -61,7 +61,6 @@ async function parseRequestEvent(event) {
61
61
  }
62
62
 
63
63
  // This will be invoked by logic using this template
64
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
65
64
  function registerFetchListener(module, options, dependencies) {
66
65
  let handler;
67
66
 
package/dist/index.js CHANGED
@@ -70417,7 +70417,7 @@ function validateConfiguredRuntime(runtime, entrypoint) {
70417
70417
 
70418
70418
  // src/build.ts
70419
70419
  var require_2 = (0, import_module2.createRequire)(__filename);
70420
- var libPathRegEx = /^node_modules|[\/\\]node_modules[\/\\]/;
70420
+ var libPathRegEx = /^node_modules|[/\\]node_modules[/\\]/;
70421
70421
  async function downloadInstallAndBundle({
70422
70422
  files,
70423
70423
  entrypoint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "5.6.11",
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,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/error-utils": "2.0.3",
36
- "@vercel/static-config": "3.1.2",
37
- "@vercel/build-utils": "13.6.3"
35
+ "@vercel/build-utils": "13.8.0",
36
+ "@vercel/static-config": "3.2.0",
37
+ "@vercel/error-utils": "2.0.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@babel/core": "7.24.4",