@vercel/node 5.3.22 → 5.3.24

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 +14 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -70101,7 +70101,20 @@ var build = async ({
70101
70101
  );
70102
70102
  }
70103
70103
  if (entrypointCallback) {
70104
- entrypointPath = (0, import_path3.join)(entrypointFsDirname, await entrypointCallback());
70104
+ const entrypoint2 = await entrypointCallback();
70105
+ entrypointPath = (0, import_path3.join)(entrypointFsDirname, entrypoint2);
70106
+ const functionConfig = config.functions?.[entrypoint2];
70107
+ if (functionConfig) {
70108
+ const normalizeArray = (value2) => Array.isArray(value2) ? value2 : value2 ? [value2] : [];
70109
+ config.includeFiles = [
70110
+ ...normalizeArray(config.includeFiles),
70111
+ ...normalizeArray(functionConfig.includeFiles)
70112
+ ];
70113
+ config.excludeFiles = [
70114
+ ...normalizeArray(config.excludeFiles),
70115
+ ...normalizeArray(functionConfig.excludeFiles)
70116
+ ];
70117
+ }
70105
70118
  }
70106
70119
  const isMiddleware = config.middleware === true;
70107
70120
  let isEdgeFunction = isMiddleware;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "5.3.22",
3
+ "version": "5.3.24",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",