@lwrjs/view-registry 0.7.0-alpha.13 → 0.7.0-alpha.16
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) {
|
package/build/es/view-handler.js
CHANGED
|
@@ -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.
|
|
7
|
+
"version": "0.7.0-alpha.16",
|
|
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.
|
|
34
|
-
"@lwrjs/diagnostics": "0.7.0-alpha.
|
|
35
|
-
"@lwrjs/shared-utils": "0.7.0-alpha.
|
|
33
|
+
"@lwrjs/app-service": "0.7.0-alpha.16",
|
|
34
|
+
"@lwrjs/diagnostics": "0.7.0-alpha.16",
|
|
35
|
+
"@lwrjs/shared-utils": "0.7.0-alpha.16"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lwrjs/types": "0.7.0-alpha.
|
|
38
|
+
"@lwrjs/types": "0.7.0-alpha.16"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=14.15.4 <17"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "632cea5f1cb4c4e529a1cda3bdc006a698eee855"
|
|
44
44
|
}
|