@lwrjs/client-modules 0.22.10 → 0.22.11

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 n=globalThis,t=n.LWR;t.define||t.env?n.LWR=Object.freeze({define:t.define,env:t.env}):delete n.LWR;const a={addLoaderPlugin:()=>{console.warn("API is not supported in ESM format")},handleStaleModule:function(n){e.push(n),o||(o=new WebSocket(`ws://${location.host}`),o.addEventListener("message",(async o=>{const n=o.data,t=JSON.parse(n);if("moduleUpdate"===t.eventType){const{oldHash:o,newHash:n,module:{specifier:a}}=t.payload;for(let t=0;t<e.length;t++){if(null!==(0,e[t])({name:a,oldHash:o,newHash:n}))break}}})))},appMetadata:function(){const{appId:e,bootstrapModule:o,rootComponent:n,rootComponents:a}=t;return{appId:e,bootstrapModule:o,rootComponent:n,rootComponents:a}}(),addServerDataCallback:function(e){}};export{a as services};
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.10",
7
+ "version": "0.22.11",
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.10"
37
+ "@lwrjs/shared-utils": "0.22.11"
38
38
  },
39
39
  "devDependencies": {
40
- "@lwrjs/types": "0.22.10",
40
+ "@lwrjs/types": "0.22.11",
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": "52b77087a10567ad62b48bde04607c627580105d"
73
+ "gitHead": "85710371aa359747e08a064d4b4a2b3dfed1d30a"
74
74
  }