@lwrjs/view-registry 0.13.0-alpha.29 → 0.13.0-alpha.30
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.
|
@@ -129,7 +129,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
129
129
|
}
|
|
130
130
|
(0, import_utils.addExternalScriptNonce)(def, nonce);
|
|
131
131
|
requiredResources.push(def);
|
|
132
|
-
const errorShimDef = await resourceRegistry.getResource({specifier: "lwr-error-shim.js", version}, runtimeEnvironment, runtimeParams);
|
|
132
|
+
const errorShimDef = await resourceRegistry.getResource({specifier: "lwr-error-shim.js", version}, runtimeEnvironment, {...runtimeParams, ignoreDebug: true});
|
|
133
133
|
if (!errorShimDef) {
|
|
134
134
|
throw Error("Failed to find definition of resource: lwr-error-shim.js");
|
|
135
135
|
}
|
|
@@ -109,7 +109,7 @@ async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
109
109
|
}
|
|
110
110
|
(0, import_utils.addExternalScriptNonce)(def, nonce);
|
|
111
111
|
requiredResources.push(def);
|
|
112
|
-
const errorShimDef = await resourceRegistry.getResource({specifier: "lwr-error-shim.js", version}, runtimeEnvironment, runtimeParams);
|
|
112
|
+
const errorShimDef = await resourceRegistry.getResource({specifier: "lwr-error-shim.js", version}, runtimeEnvironment, {...runtimeParams, ignoreDebug: true});
|
|
113
113
|
if (!errorShimDef) {
|
|
114
114
|
throw Error("Failed to find definition of resource: lwr-error-shim.js");
|
|
115
115
|
}
|
|
@@ -133,7 +133,10 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
133
133
|
addExternalScriptNonce(def, nonce);
|
|
134
134
|
requiredResources.push(def);
|
|
135
135
|
// Always inline the error shim script after the shim
|
|
136
|
-
const errorShimDef = (await resourceRegistry.getResource({ specifier: 'lwr-error-shim.js', version }, runtimeEnvironment,
|
|
136
|
+
const errorShimDef = (await resourceRegistry.getResource({ specifier: 'lwr-error-shim.js', version }, runtimeEnvironment,
|
|
137
|
+
// Hack there is only a prod version of the error shim so forcing ignore debug
|
|
138
|
+
// So we never check the debug metadata
|
|
139
|
+
{ ...runtimeParams, ignoreDebug: true }));
|
|
137
140
|
if (!errorShimDef) {
|
|
138
141
|
throw Error('Failed to find definition of resource: lwr-error-shim.js');
|
|
139
142
|
}
|
|
@@ -101,7 +101,10 @@ export async function getHtmlResources(view, viewParams, resourceContext) {
|
|
|
101
101
|
addExternalScriptNonce(def, nonce);
|
|
102
102
|
requiredResources.push(def);
|
|
103
103
|
// Always inline the error shim script after the shim
|
|
104
|
-
const errorShimDef = (await resourceRegistry.getResource({ specifier: 'lwr-error-shim.js', version }, runtimeEnvironment,
|
|
104
|
+
const errorShimDef = (await resourceRegistry.getResource({ specifier: 'lwr-error-shim.js', version }, runtimeEnvironment,
|
|
105
|
+
// Hack there is only a prod version of the error shim so forcing ignore debug
|
|
106
|
+
// So we never check the debug metadata
|
|
107
|
+
{ ...runtimeParams, ignoreDebug: true }));
|
|
105
108
|
if (!errorShimDef) {
|
|
106
109
|
throw Error('Failed to find definition of resource: lwr-error-shim.js');
|
|
107
110
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.13.0-alpha.
|
|
7
|
+
"version": "0.13.0-alpha.30",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"build": "tsc -b"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@lwrjs/app-service": "0.13.0-alpha.
|
|
37
|
-
"@lwrjs/diagnostics": "0.13.0-alpha.
|
|
38
|
-
"@lwrjs/instrumentation": "0.13.0-alpha.
|
|
39
|
-
"@lwrjs/shared-utils": "0.13.0-alpha.
|
|
36
|
+
"@lwrjs/app-service": "0.13.0-alpha.30",
|
|
37
|
+
"@lwrjs/diagnostics": "0.13.0-alpha.30",
|
|
38
|
+
"@lwrjs/instrumentation": "0.13.0-alpha.30",
|
|
39
|
+
"@lwrjs/shared-utils": "0.13.0-alpha.30",
|
|
40
40
|
"lru-cache": "^10.2.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@lwrjs/types": "0.13.0-alpha.
|
|
43
|
+
"@lwrjs/types": "0.13.0-alpha.30"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "8bf14ed00a95675fdb506e2cbdb6033324bf95bf"
|
|
49
49
|
}
|