@vercel/node 3.1.7 → 3.2.1

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.
@@ -1067,8 +1067,9 @@ async function compileUserCode2(entrypointPath, awaiter, options) {
1067
1067
  return getWebExportsHandler(listener, HTTP_METHODS);
1068
1068
  }
1069
1069
  return async (req, res) => {
1070
- if (options.shouldAddHelpers)
1070
+ if (options.shouldAddHelpers && typeof listener.listen !== "function") {
1071
1071
  await addHelpers(req, res);
1072
+ }
1072
1073
  return listener(req, res);
1073
1074
  };
1074
1075
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "3.1.7",
3
+ "version": "3.2.1",
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": "8.2.2",
20
+ "@vercel/build-utils": "8.3.0",
21
21
  "@vercel/error-utils": "2.0.2",
22
22
  "@vercel/nft": "0.27.2",
23
23
  "@vercel/static-config": "3.0.0",
@@ -32,7 +32,7 @@
32
32
  "ts-morph": "12.0.0",
33
33
  "ts-node": "10.9.1",
34
34
  "typescript": "4.9.5",
35
- "undici": "5.26.5"
35
+ "undici": "5.28.4"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/core": "7.24.4",