@vercel/node 5.3.7 → 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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -70069,10 +70069,12 @@ var build = async ({
70069
70069
  ];
70070
70070
  }
70071
70071
  if (shim) {
70072
- preparedFiles["shim.js"] = new import_build_utils3.FileBlob({
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({
70073
70075
  data: shim(handler)
70074
70076
  });
70075
- handler = "shim.js";
70077
+ handler = shimHandler;
70076
70078
  }
70077
70079
  if (isEdgeFunction) {
70078
70080
  output = new import_build_utils3.EdgeFunction({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "5.3.7",
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",
@@ -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.5"
60
+ "@vercel/functions": "2.2.6"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "node build.mjs",