vercel 48.10.7 → 48.10.9

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 +10 -2
  2. package/package.json +15 -15
package/dist/index.js CHANGED
@@ -49731,7 +49731,7 @@ var require_package = __commonJS2({
49731
49731
  "../client/package.json"(exports2, module2) {
49732
49732
  module2.exports = {
49733
49733
  name: "@vercel/client",
49734
- version: "17.2.8",
49734
+ version: "17.2.9",
49735
49735
  main: "dist/index.js",
49736
49736
  typings: "dist/index.d.ts",
49737
49737
  homepage: "https://vercel.com",
@@ -49770,7 +49770,7 @@ var require_package = __commonJS2({
49770
49770
  vitest: "2.0.1"
49771
49771
  },
49772
49772
  dependencies: {
49773
- "@vercel/build-utils": "13.1.0",
49773
+ "@vercel/build-utils": "13.1.1",
49774
49774
  "@vercel/error-utils": "2.0.3",
49775
49775
  "@vercel/microfrontends": "1.2.2",
49776
49776
  "@vercel/routing-utils": "5.3.0",
@@ -148895,7 +148895,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
148895
148895
  try {
148896
148896
  const routesJson = await readJSONFile(routesJsonPath);
148897
148897
  if (routesJson && typeof routesJson === "object" && "routes" in routesJson && Array.isArray(routesJson.routes)) {
148898
+ const indexLambda = "index" in buildResult.output ? buildResult.output["index"] : void 0;
148898
148899
  const convertedRoutes = [];
148900
+ const convertedOutputs = indexLambda ? { index: indexLambda } : {};
148899
148901
  for (const route of routesJson.routes) {
148900
148902
  if (typeof route.source !== "string") {
148901
148903
  continue;
@@ -148911,6 +148913,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
148911
148913
  if (route.source === "/") {
148912
148914
  continue;
148913
148915
  }
148916
+ if (indexLambda) {
148917
+ convertedOutputs[route.source] = indexLambda;
148918
+ }
148914
148919
  convertedRoutes.push(newRoute);
148915
148920
  }
148916
148921
  buildResult.routes = [
@@ -148918,6 +148923,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
148918
148923
  ...convertedRoutes,
148919
148924
  { src: "/(.*)", dest: "/" }
148920
148925
  ];
148926
+ if (indexLambda) {
148927
+ buildResult.output = convertedOutputs;
148928
+ }
148921
148929
  }
148922
148930
  } catch (error3) {
148923
148931
  output_manager_default.error(`Failed to read routes.json: ${error3}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "48.10.7",
3
+ "version": "48.10.9",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -22,26 +22,26 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@vercel/blob": "1.0.2",
25
- "@vercel/build-utils": "13.1.0",
26
- "@vercel/elysia": "0.1.6",
27
- "@vercel/express": "0.1.10",
28
- "@vercel/fastify": "0.1.9",
25
+ "@vercel/build-utils": "13.1.1",
26
+ "@vercel/elysia": "0.1.7",
27
+ "@vercel/express": "0.1.12",
28
+ "@vercel/fastify": "0.1.10",
29
29
  "@vercel/fun": "1.2.0",
30
30
  "@vercel/go": "3.2.3",
31
- "@vercel/h3": "0.1.15",
32
- "@vercel/hono": "0.2.9",
31
+ "@vercel/h3": "0.1.16",
32
+ "@vercel/hono": "0.2.10",
33
33
  "@vercel/hydrogen": "1.3.2",
34
34
  "@vercel/next": "4.15.3",
35
- "@vercel/node": "5.5.8",
36
- "@vercel/python": "6.0.6",
35
+ "@vercel/node": "5.5.9",
36
+ "@vercel/python": "6.0.7",
37
37
  "@vercel/redwood": "2.4.2",
38
38
  "@vercel/remix-builder": "5.5.2",
39
39
  "@vercel/ruby": "2.2.2",
40
- "@vercel/static-build": "2.8.8",
40
+ "@vercel/static-build": "2.8.9",
41
41
  "chokidar": "4.0.0",
42
42
  "jose": "5.9.6",
43
- "@vercel/backends": "0.0.9",
44
- "@vercel/detect-agent": "1.0.0"
43
+ "@vercel/detect-agent": "1.0.0",
44
+ "@vercel/backends": "0.0.11"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@alex_neo/jest-expect-message": "1.0.5",
@@ -85,7 +85,7 @@
85
85
  "@types/which": "3.0.0",
86
86
  "@types/write-json-file": "2.2.1",
87
87
  "@types/yauzl-promise": "2.1.0",
88
- "@vercel/client": "17.2.8",
88
+ "@vercel/client": "17.2.9",
89
89
  "@vercel/error-utils": "2.0.3",
90
90
  "@vercel/frameworks": "3.15.3",
91
91
  "@vercel/fs-detectors": "5.7.7",
@@ -170,8 +170,8 @@
170
170
  "xdg-app-paths": "5.1.0",
171
171
  "yauzl-promise": "2.1.3",
172
172
  "@vercel-internals/constants": "1.0.4",
173
- "@vercel-internals/get-package-json": "1.0.0",
174
- "@vercel-internals/types": "3.0.6"
173
+ "@vercel-internals/types": "3.0.6",
174
+ "@vercel-internals/get-package-json": "1.0.0"
175
175
  },
176
176
  "scripts": {
177
177
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",