@vercel/next 4.0.17 → 4.1.0

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 +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -11188,6 +11188,7 @@ async function getMiddlewareBundle({
11188
11188
  return {
11189
11189
  type,
11190
11190
  page: edgeFunction.page,
11191
+ name: edgeFunction.name,
11191
11192
  edgeFunction: (() => {
11192
11193
  const { source: source2, map } = wrappedModuleSource.sourceAndMap();
11193
11194
  const transformedMap = stringifySourceMap(
@@ -11272,8 +11273,7 @@ async function getMiddlewareBundle({
11272
11273
  edgeFunctions: {}
11273
11274
  };
11274
11275
  for (const worker of workerConfigs.values()) {
11275
- const edgeFile = worker.edgeFunction.name;
11276
- let shortPath = edgeFile;
11276
+ let shortPath = worker.name;
11277
11277
  if (shortPath.startsWith("pages/")) {
11278
11278
  shortPath = shortPath.replace(/^pages\//, "");
11279
11279
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.0.17",
3
+ "version": "4.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -30,7 +30,7 @@
30
30
  "@types/semver": "6.0.0",
31
31
  "@types/text-table": "0.2.1",
32
32
  "@types/webpack-sources": "3.2.0",
33
- "@vercel/build-utils": "7.4.1",
33
+ "@vercel/build-utils": "7.5.1",
34
34
  "@vercel/routing-utils": "3.1.0",
35
35
  "async-sema": "3.0.1",
36
36
  "buffer-crc32": "0.2.13",