@lwrjs/view-registry 0.6.0-alpha.15 → 0.6.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.
|
@@ -57,7 +57,7 @@ function getViewBootstrapConfigurationResource(viewInfo, config, runtimeEnvironm
|
|
|
57
57
|
].filter(Boolean).join("\n");
|
|
58
58
|
if (viewInfo.configAsSrc) {
|
|
59
59
|
const viewUrl = viewInfo.url || "/";
|
|
60
|
-
const url = (0, import_shared_utils.getClientBootstrapConfigurationUri)({id: viewInfo.id, url: viewUrl}, runtimeEnvironment, runtimeParams);
|
|
60
|
+
const url = (0, import_shared_utils.getClientBootstrapConfigurationUri)({id: viewInfo.id, url: viewUrl}, runtimeEnvironment, runtimeParams, (0, import_shared_utils.hashContent)(configString));
|
|
61
61
|
return {
|
|
62
62
|
type: CONTENT_TYPE,
|
|
63
63
|
content: configString,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getMappingUriPrefix, getModuleUriPrefix, getClientBootstrapConfigurationUri, } from '@lwrjs/shared-utils';
|
|
1
|
+
import { getMappingUriPrefix, getModuleUriPrefix, getClientBootstrapConfigurationUri, hashContent, } from '@lwrjs/shared-utils';
|
|
2
2
|
const CONTENT_TYPE = 'application/javascript';
|
|
3
3
|
export function getViewBootstrapConfigurationResource(viewInfo, config, runtimeEnvironment, runtimeParams) {
|
|
4
4
|
const { compat, debug, hmrEnabled, apiVersion, format } = runtimeEnvironment;
|
|
@@ -31,7 +31,7 @@ export function getViewBootstrapConfigurationResource(viewInfo, config, runtimeE
|
|
|
31
31
|
.join('\n');
|
|
32
32
|
if (viewInfo.configAsSrc) {
|
|
33
33
|
const viewUrl = viewInfo.url || '/';
|
|
34
|
-
const url = getClientBootstrapConfigurationUri({ id: viewInfo.id, url: viewUrl }, runtimeEnvironment, runtimeParams);
|
|
34
|
+
const url = getClientBootstrapConfigurationUri({ id: viewInfo.id, url: viewUrl }, runtimeEnvironment, runtimeParams, hashContent(configString));
|
|
35
35
|
return {
|
|
36
36
|
type: CONTENT_TYPE,
|
|
37
37
|
content: configString,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.6.0-alpha.
|
|
7
|
+
"version": "0.6.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.6.0-alpha.
|
|
34
|
-
"@lwrjs/diagnostics": "0.6.0-alpha.
|
|
35
|
-
"@lwrjs/shared-utils": "0.6.0-alpha.
|
|
33
|
+
"@lwrjs/app-service": "0.6.0-alpha.16",
|
|
34
|
+
"@lwrjs/diagnostics": "0.6.0-alpha.16",
|
|
35
|
+
"@lwrjs/shared-utils": "0.6.0-alpha.16"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lwrjs/types": "0.6.0-alpha.
|
|
38
|
+
"@lwrjs/types": "0.6.0-alpha.16"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=14.15.4 <17"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "2ccfba164126587f8c898da5994b6749ec23aa22"
|
|
44
44
|
}
|