@lwrjs/view-registry 0.7.0-alpha.12 → 0.7.0-alpha.15

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.
@@ -137,8 +137,9 @@ var LwrViewHandler = class {
137
137
  this.routeHandlerFunctionMap.set(routeHandler, routeHandlerFunction);
138
138
  this.inflightRouteHandlerEvalMap.delete(routeHandler);
139
139
  }
140
+ const locale = runtimeParams.locale;
140
141
  const viewApi = this.getBoundApi(route, runtimeEnvironment, runtimeParams);
141
- const response = await routeHandlerFunction(viewRequest, {route, viewApi, ...paths});
142
+ const response = await routeHandlerFunction({...viewRequest, locale}, {route, viewApi, ...paths});
142
143
  return response;
143
144
  }
144
145
  getBoundApi(route, runtimeEnvironment, runtimeParams) {
@@ -159,8 +159,9 @@ export class LwrViewHandler {
159
159
  this.routeHandlerFunctionMap.set(routeHandler, routeHandlerFunction);
160
160
  this.inflightRouteHandlerEvalMap.delete(routeHandler);
161
161
  }
162
+ const locale = runtimeParams.locale;
162
163
  const viewApi = this.getBoundApi(route, runtimeEnvironment, runtimeParams);
163
- const response = await routeHandlerFunction(viewRequest, { route, viewApi, ...paths });
164
+ const response = await routeHandlerFunction({ ...viewRequest, locale }, { route, viewApi, ...paths });
164
165
  return response;
165
166
  }
166
167
  /*
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.7.0-alpha.12",
7
+ "version": "0.7.0-alpha.15",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/app-service": "0.7.0-alpha.12",
34
- "@lwrjs/diagnostics": "0.7.0-alpha.12",
35
- "@lwrjs/shared-utils": "0.7.0-alpha.12"
33
+ "@lwrjs/app-service": "0.7.0-alpha.15",
34
+ "@lwrjs/diagnostics": "0.7.0-alpha.15",
35
+ "@lwrjs/shared-utils": "0.7.0-alpha.15"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.7.0-alpha.12"
38
+ "@lwrjs/types": "0.7.0-alpha.15"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=14.15.4 <17"
42
42
  },
43
- "gitHead": "785b8380a821b43b7320783dddaf20d1433216e2"
43
+ "gitHead": "4783f09f5487cca5bf2efc861531a3eda774961a"
44
44
  }