@moneko/core 4.8.0 → 4.8.1

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,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  /**
2
3
  * 获取当前项目所有 moduleFederation 远端,生成指定文件名的 URL 映射
3
4
  * @param {string} filename - 文件名,如 'LLMs.md' 或 'module-federation.d.ts'
@@ -1 +1,2 @@
1
+ #!/usr/bin/env node
1
2
  import{request as e}from"@moneko/request";import t from"../../commom/paths.mjs";import{getConfigWithTypescript as o}from"../../utils/index.mjs";export function getModuleFederationRemoteUrls(e){let r=o(t.configPath).default;return Object.fromEntries((r?.moduleFederation??[]).flatMap(e=>e.remotes??[]).filter(e=>e?.name&&e?.host).map(t=>[`mf:${t.name}`,new URL(e,t.host).toString()]))}export async function fetchText(t){return e(t,{responseType:"text",rejectUnauthorized:!1})}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "4.8.0",
3
+ "version": "4.8.1",
4
4
  "description": "@moneko/core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",