signalk-container 1.12.1 → 1.12.2
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.
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./preload-helper-2rxlSZO5.js";var t=`__mf_module_cache__`;globalThis[t]||={share:{},remote:{}},globalThis[t].share||={},globalThis[t].remote||={};var n=globalThis[t],r;async function i(){return r||=(async()=>{let t=await(await e(()=>import(`../remoteEntry.js`),[])).init(),r={},i=e=>{let t=e;for(let e=0;e<5;e++){let e=t?.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.keys(t).filter(e=>e!==`default`).map(e=>t[e]);if(n.length>0&&n.some(e=>e!==void 0))break;t=e}return t};for(let[e,a]of Object.entries(r))n.share[
|
|
1
|
+
import{t as e}from"./preload-helper-2rxlSZO5.js";var t=`__mf_module_cache__`;globalThis[t]||={share:{},remote:{}},globalThis[t].share||={},globalThis[t].remote||={};var n=globalThis[t],r;async function i(){return r||=(async()=>{let t=await(await e(()=>import(`../remoteEntry.js`),[])).init(),r={},i=e=>{let t=e;for(let e=0;e<5;e++){let e=t?.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.keys(t).filter(e=>e!==`default`).map(e=>t[e]);if(n.length>0&&n.some(e=>e!==void 0))break;t=e}return t};for(let[e,a]of Object.entries(r)){let r=a.shareConfig?.singleton||!a.version?e:`${e}@${a.version}`;n.share[r]===void 0&&await t.loadShare(e,{customShareInfo:{shareConfig:a.shareConfig}}).then(e=>{let t=typeof e==`function`?e():e;return Promise.resolve(t).then(e=>{n.share[r]=i(e)})})}return await Promise.all([]),t})(),r}r=i();export{r as hostInitPromise,i as initHost};
|
package/public/remoteEntry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./chunks/dist-BH59CfQQ.js";import{t}from"./chunks/preload-helper-2rxlSZO5.js";typeof __VUE_HMR_RUNTIME__>`u`&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});var n=`__mf_init__virtual:mf:__mfe_internal__signalk_container__mf_v__runtimeInit__mf_v__.js__`,r=globalThis[n];if(!r){let e,t,i=new Promise((n,r)=>{e=n,t=r});r=globalThis[n]={initPromise:i,initResolve:e,initReject:t}}var i=r.initResolve,a=`__mf_module_cache__`;globalThis[a]||={share:{},remote:{}},globalThis[a].share||={},globalThis[a].remote||={};var o=globalThis[a],s={},c=`default`,l=`__mfe_internal__signalk_container`,u,d;async function f(e){for(let t=0;;t++)try{return await e()}catch(e){throw e}}async function p(){return u||=f(()=>t(()=>import(`./chunks/_virtual_mf-localSharedImportMap___mfe_internal__signalk_container-B5ZtI5V1.js`),[])).catch(e=>{throw u=void 0,e}),u}async function m(){return d||=f(()=>t(()=>import(`./chunks/virtualExposes-DCpxtclj.js`),[])).then(e=>e.default??e).catch(e=>{throw d=void 0,e}),d}async function h(n={},r=[]){let{usedShared:a,usedRemotes:u}=await p(),d=[],m=globalThis.window===void 0?await Promise.all([t(()=>import(`./chunks/ssrEntryLoader-BHO-2Fv8.js`).then(e=>(e.default??e)({resolvedShared:{react:`/home/runner/work/signalk-container/signalk-container/node_modules/react/index.js`,"react-dom":`/home/runner/work/signalk-container/signalk-container/node_modules/react-dom/index.js`,"react/jsx-runtime":`/home/runner/work/signalk-container/signalk-container/node_modules/react/jsx-runtime.js`,"react/jsx-dev-runtime":`/home/runner/work/signalk-container/signalk-container/node_modules/react/jsx-dev-runtime.js`,"@module-federation/runtime":`/home/runner/work/signalk-container/signalk-container/node_modules/@module-federation/runtime/dist/index.cjs`,"@module-federation/runtime-core":`/home/runner/work/signalk-container/signalk-container/node_modules/@module-federation/runtime-core/dist/index.cjs`,"@module-federation/sdk":`/home/runner/work/signalk-container/signalk-container/node_modules/@module-federation/sdk/dist/index.cjs`}})),[])]):[],h=e({name:l,remotes:u,shared:a,plugins:[...d,...m],shareStrategy:`version-first`});var g=s[c];if(g||=s[c]={from:l},!(r.indexOf(g)>=0)){r.push(g),h.initShareScopeMap(`default`,n),i(h);try{await f(async()=>{await Promise.all(await h.initializeSharing(`default`,{strategy:`version-first`,from:`build`,initScope:r}))})}catch(e){console.error(`[Module Federation]`,e)}for(let[e,t]of Object.entries(a)){if(t.shareConfig?.import!==!1||o.share[
|
|
1
|
+
import{t as e}from"./chunks/dist-BH59CfQQ.js";import{t}from"./chunks/preload-helper-2rxlSZO5.js";typeof __VUE_HMR_RUNTIME__>`u`&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});var n=`__mf_init__virtual:mf:__mfe_internal__signalk_container__mf_v__runtimeInit__mf_v__.js__`,r=globalThis[n];if(!r){let e,t,i=new Promise((n,r)=>{e=n,t=r});r=globalThis[n]={initPromise:i,initResolve:e,initReject:t}}var i=r.initResolve,a=`__mf_module_cache__`;globalThis[a]||={share:{},remote:{}},globalThis[a].share||={},globalThis[a].remote||={};var o=globalThis[a],s={},c=`default`,l=`__mfe_internal__signalk_container`,u,d;async function f(e){for(let t=0;;t++)try{return await e()}catch(e){throw e}}async function p(){return u||=f(()=>t(()=>import(`./chunks/_virtual_mf-localSharedImportMap___mfe_internal__signalk_container-B5ZtI5V1.js`),[])).catch(e=>{throw u=void 0,e}),u}async function m(){return d||=f(()=>t(()=>import(`./chunks/virtualExposes-DCpxtclj.js`),[])).then(e=>e.default??e).catch(e=>{throw d=void 0,e}),d}async function h(n={},r=[]){let{usedShared:a,usedRemotes:u}=await p(),d=[],m=globalThis.window===void 0?await Promise.all([t(()=>import(`./chunks/ssrEntryLoader-BHO-2Fv8.js`).then(e=>(e.default??e)({resolvedShared:{react:`/home/runner/work/signalk-container/signalk-container/node_modules/react/index.js`,"react-dom":`/home/runner/work/signalk-container/signalk-container/node_modules/react-dom/index.js`,"react/jsx-runtime":`/home/runner/work/signalk-container/signalk-container/node_modules/react/jsx-runtime.js`,"react/jsx-dev-runtime":`/home/runner/work/signalk-container/signalk-container/node_modules/react/jsx-dev-runtime.js`,"@module-federation/runtime":`/home/runner/work/signalk-container/signalk-container/node_modules/@module-federation/runtime/dist/index.cjs`,"@module-federation/runtime-core":`/home/runner/work/signalk-container/signalk-container/node_modules/@module-federation/runtime-core/dist/index.cjs`,"@module-federation/sdk":`/home/runner/work/signalk-container/signalk-container/node_modules/@module-federation/sdk/dist/index.cjs`}})),[])]):[],h=e({name:l,remotes:u,shared:a,plugins:[...d,...m],shareStrategy:`version-first`});var g=s[c];if(g||=s[c]={from:l},!(r.indexOf(g)>=0)){r.push(g),h.initShareScopeMap(`default`,n),i(h);try{await f(async()=>{await Promise.all(await h.initializeSharing(`default`,{strategy:`version-first`,from:`build`,initScope:r}))})}catch(e){console.error(`[Module Federation]`,e)}for(let[e,t]of Object.entries(a)){let r=t.shareConfig?.singleton||!t.version?e:`${e}@${t.version}`;if(t.shareConfig?.import!==!1||o.share[r]!==void 0)continue;let i=e=>{let t=e;for(let e=0;e<5;e++){let e=t?.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.keys(t).filter(e=>e!==`default`).map(e=>t[e]);if(n.length>0&&n.some(e=>e!==void 0))break;t=e}return t},a=n?.[e],s=a&&a[Object.keys(a)[0]];if(!s)continue;let c=s.lib||(s.loading?await s.loading:await s.get?.()),l=typeof c==`function`?c():c,u=await Promise.resolve(l);o.share[r]=i(u)}return h}}async function g(e){let t=await m();if(!(e in t))throw Error(`[Module Federation] Module ${e} does not exist in container.`);return t[e]().then(e=>()=>e)}export{g as get,h as init};
|