@moneko/core 4.8.0 → 4.8.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"../../commom/paths.mjs";import{getConfigWithTypescript as t}from"../../utils/index.mjs";export function getModuleFederationRemoteUrls(o){let r=t(e.configPath).default;return Object.fromEntries((r?.moduleFederation??[]).flatMap(e=>e.remotes??[]).filter(e=>e?.name&&e?.host).map(e=>[`mf:${e.name}`,new URL(o,e.host).toString()]))}export async function fetchText(e){let{request:t}=await import("@moneko/request");return t(e,{responseType:"text",rejectUnauthorized:!1})}
|