@lwrjs/client-modules 0.22.10 → 0.22.12
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=[];let o;const
|
|
1
|
+
const e=[];let o;const t=globalThis,n=t.LWR;n.define||n.env||n.importMap?t.LWR=Object.freeze({define:n.define,env:n.env,importMap:n.importMap}):delete t.LWR;const a={addLoaderPlugin:()=>{console.warn("API is not supported in ESM format")},handleStaleModule:function(t){e.push(t),o||(o=new WebSocket(`ws://${location.host}`),o.addEventListener("message",(async o=>{const t=o.data,n=JSON.parse(t);if("moduleUpdate"===n.eventType){const{oldHash:o,newHash:t,module:{specifier:a}}=n.payload;for(let n=0;n<e.length;n++){if(null!==(0,e[n])({name:a,oldHash:o,newHash:t}))break}}})))},appMetadata:function(){const{appId:e,bootstrapModule:o,rootComponent:t,rootComponents:a}=n;return{appId:e,bootstrapModule:o,rootComponent:t,rootComponents:a}}(),addServerDataCallback:function(e){}};export{a as services};
|
|
2
2
|
//# sourceMappingURL=servicesESM.js.map
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
const GLOBAL = globalThis;
|
|
7
7
|
const lwrGlobals = GLOBAL.LWR;
|
|
8
|
-
if (lwrGlobals.define || lwrGlobals.env) {
|
|
8
|
+
if (lwrGlobals.define || lwrGlobals.env || lwrGlobals.importMap) {
|
|
9
9
|
// AMD only
|
|
10
10
|
GLOBAL.LWR = Object.freeze({
|
|
11
11
|
define: lwrGlobals.define,
|
|
12
|
-
env: lwrGlobals.env
|
|
12
|
+
env: lwrGlobals.env,
|
|
13
|
+
importMap: lwrGlobals.importMap
|
|
13
14
|
});
|
|
14
15
|
} else {
|
|
15
16
|
delete GLOBAL.LWR;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.22.
|
|
7
|
+
"version": "0.22.12",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@locker/sandbox": "0.26.4",
|
|
37
|
-
"@lwrjs/shared-utils": "0.22.
|
|
37
|
+
"@lwrjs/shared-utils": "0.22.12"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@lwrjs/types": "0.22.
|
|
40
|
+
"@lwrjs/types": "0.22.12",
|
|
41
41
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
42
42
|
"@rollup/plugin-sucrase": "^5.0.2",
|
|
43
43
|
"@rollup/plugin-terser": "^0.4.4",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"volta": {
|
|
71
71
|
"extends": "../../../package.json"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "a928ee1f7c37665c49f77336a4daa179bcd61a4f"
|
|
74
74
|
}
|