@moneko/core 4.4.4-beta.6 → 4.4.4-beta.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function fetchModuleFederationDts(host: string, name: string): Promise<
|
|
1
|
+
declare function fetchModuleFederationDts(host: string, name: string): Promise<string>;
|
|
2
2
|
export default fetchModuleFederationDts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as t}from"@moneko/request";import{updateFile as
|
|
1
|
+
import{request as t}from"@moneko/request";import{updateFile as r}from"@moneko/utils";import o from"../commom/log.mjs";import{CACHE_NAME as e}from"../process-env.mjs";import{node_modules as m}from"./index.mjs";async function s(s,i){try{let o=`${s.startsWith("//")?`http:${s}`:s}/module-federation.d.ts`,n=await t(o,{responseType:"text",rejectUnauthorized:!1});return r(m(`@types/${e}/${i}.d.ts`),n),n}catch(t){return o(t),""}}export default s;
|