@softarc/native-federation-node 3.4.2 → 3.5.0
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,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softarc/native-federation-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@softarc/native-federation-runtime": "^3.
|
|
6
|
+
"@softarc/native-federation-runtime": "^3.5.0",
|
|
7
7
|
"tslib": "^2.8.1"
|
|
8
8
|
},
|
|
9
9
|
"types": "./src/index.d.ts",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { register } from 'node:module';
|
|
2
|
-
import { pathToFileURL } from 'node:url';
|
|
3
1
|
import * as fs from 'node:fs/promises';
|
|
2
|
+
import { register } from 'node:module';
|
|
4
3
|
import * as path from 'node:path';
|
|
5
|
-
import {
|
|
4
|
+
import { pathToFileURL } from 'node:url';
|
|
5
|
+
import { fetchAndRegisterRemotes, mergeImportMaps, processHostInfo, } from '@softarc/native-federation-runtime';
|
|
6
6
|
import { IMPORT_MAP_FILE_NAME } from '../utils/import-map-loader';
|
|
7
7
|
import { resolver } from '../utils/loader-as-data-url';
|
|
8
8
|
const defaultOptions = {
|
|
@@ -26,7 +26,7 @@ async function createNodeImportMap(options) {
|
|
|
26
26
|
: await loadFsManifest(remotesOrManifestUrl);
|
|
27
27
|
const hostInfo = await loadFsFederationInfo(relBundlePath);
|
|
28
28
|
const hostImportMap = await processHostInfo(hostInfo, './' + relBundlePath);
|
|
29
|
-
const remotesImportMap = await
|
|
29
|
+
const remotesImportMap = await fetchAndRegisterRemotes(remotes, {
|
|
30
30
|
throwIfRemoteNotFound: options.throwIfRemoteNotFound,
|
|
31
31
|
cacheTag: options.cacheTag,
|
|
32
32
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-node-federation.js","sourceRoot":"","sources":["../../../../../../libs/native-federation-node/src/lib/node/init-node-federation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"init-node-federation.js","sourceRoot":"","sources":["../../../../../../libs/native-federation-node/src/lib/node/init-node-federation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAEL,uBAAuB,EAEvB,eAAe,EACf,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AASvD,MAAM,cAAc,GAA8B;IAChD,oBAAoB,EAAE,EAAE;IACxB,aAAa,EAAE,YAAY;IAC3B,qBAAqB,EAAE,KAAK;CAC7B,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAA2C;IAE3C,MAAM,aAAa,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,OAAO,EAAE,CAAC;IACxD,MAAM,SAAS,GAAG,MAAM,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAE3D,yEAAyE;IACzE,oCAAoC;IAEpC,MAAM,cAAc,CAAC,SAAS,CAAC,CAAC;IAChC,MAAM,aAAa,EAAE,CAAC;IAEtB,QAAQ,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAED,KAAK,UAAU,mBAAmB,CAChC,OAAkC;IAElC,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAExD,MAAM,OAAO,GACX,OAAO,oBAAoB,KAAK,QAAQ;QACtC,CAAC,C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