@softarc/native-federation-orchestrator 4.6.0 → 4.6.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.
- package/README.md +2 -2
- package/fesm2022/@softarc/native-federation-orchestrator.mjs +101 -20
- package/fesm2022/@softarc/native-federation-orchestrator.mjs.map +3 -3
- package/fesm2022/node.mjs +1 -1
- package/fesm2022/node.mjs.map +1 -1
- package/node-loader/loader.mjs +19 -2
- package/node-loader/loader.mjs.map +2 -2
- package/package.json +1 -1
- package/quickstart.mjs +11 -11
- package/types/lib/core/3.adapters/browser/sse-handler.d.ts +0 -8
- package/types/scripts/node-loader.d.ts +1 -0
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import type { ImportMapConfig } from '../../2.app/config/import-map.contract';
|
|
2
2
|
import type { ForSSE } from '../../2.app/driving-ports/for-sse.port';
|
|
3
3
|
import type { LoggingConfig } from '../../2.app/config/log.contract';
|
|
4
|
-
/**
|
|
5
|
-
* Watches for federation build completion events and automatically reloads the page.
|
|
6
|
-
*
|
|
7
|
-
* This function establishes a Server-Sent Events (SSE) connection to listen for
|
|
8
|
-
* 'federation-rebuild-complete' notifications. When a build completes successfully,
|
|
9
|
-
* it triggers a page reload to reflect the latest changes.
|
|
10
|
-
* @param endpoint - The SSE endpoint URL to watch for build notifications.
|
|
11
|
-
*/
|
|
12
4
|
declare const createSSEHandler: (config: ImportMapConfig & LoggingConfig) => ForSSE;
|
|
13
5
|
export { createSSEHandler };
|
|
@@ -35,6 +35,7 @@ type LoadResult = {
|
|
|
35
35
|
format: string;
|
|
36
36
|
source?: string | ArrayBuffer | Uint8Array;
|
|
37
37
|
shortCircuit?: boolean;
|
|
38
|
+
responseURL?: string;
|
|
38
39
|
};
|
|
39
40
|
type NextLoad = (url: string, context?: LoadContext) => Promise<LoadResult>;
|
|
40
41
|
export declare function load(url: string, context: LoadContext, nextLoad: NextLoad): Promise<LoadResult>;
|