@agrotools1/at-mf-utils 0.2.6 → 0.2.7
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/dist/build/index.d.ts +1 -1
- package/dist/build/index.js +1 -1
- package/package.json +1 -1
package/dist/build/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare type IResponse = {
|
|
|
8
8
|
* @param url URL do módulo
|
|
9
9
|
* @param app Instância do Vue
|
|
10
10
|
*
|
|
11
|
-
* Não cacheie o objeto de retorno da `getModule`. Se precisar de um valor do objeto
|
|
11
|
+
* Não cacheie o objeto de retorno da `getModule`. Se precisar de um valor do objeto chame a função novamente.
|
|
12
12
|
*/
|
|
13
13
|
export default function getModule(moduleId: string, url: string, app?: any): Promise<IResponse>;
|
|
14
14
|
export {};
|
package/dist/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function u(){const e=document.querySelectorAll('link[from="athost"]');for(let n=0;n<e.length;n++)e[n].remove()}function l(e,n){const o=document.getElementById(e);window[n]=null,o?.remove()}async function d(e,n){if(!e||!n)return;const o=Object.entries(e);for(let s=0;s<o.length;s++){const[i,t]=o[s],r=await t();n.appContext.app.component(i,r.default)}}async function m(e,n){return new Promise(o=>{u(),l(e,n),o()})}async function f(e,n,o){const s=`remote-entry-${e}`;return await m(s,e),await __webpack_init_sharing__?.("default"),new Promise(i=>{const t=document.createElement("script");t.type="text/javascript",t.src=n,t.defer=!0,t.async=!0,t.id=s,document.head.appendChild(t),t.onload=async()=>{const r=window[e],c=typeof __webpack_share_scopes__<"u"?__webpack_share_scopes__:null;await r?.init(c?.default);const a=(await(await r.get?.(e))().default)?.default;d(a.asyncComponents,o);const p={...a||{},defaultImport:a,unmount:()=>{a?.unmount(),document.getElementById("agrotools-app")?.remove()}};i(p)}})}export{f as default};
|