@@ -22,7 +22,7 @@ import { watchFederationBuildCompletion } from './watch-federation-build';
2222 */
2323export async function initFederation (
2424 remotesOrManifestUrl : Record < string , string > | string = { } ,
25- options ?: InitFederationOptions ,
25+ options ?: InitFederationOptions
2626) : Promise < ImportMap > {
2727 const cacheOption = options ?. cacheTag ? `?t=${ options . cacheTag } ` : '' ;
2828 const remotes =
@@ -50,7 +50,7 @@ async function loadManifest(remotes: string): Promise<Record<string, string>> {
5050
5151export async function processRemoteInfos (
5252 remotes : Record < string , string > ,
53- options : ProcessRemoteInfoOptions = { throwIfRemoteNotFound : false } ,
53+ options : ProcessRemoteInfoOptions = { throwIfRemoteNotFound : false }
5454) : Promise < ImportMap > {
5555 const processRemoteInfoPromises = Object . keys ( remotes ) . map (
5656 async ( remoteName ) => {
@@ -72,23 +72,23 @@ export async function processRemoteInfos(
7272 console . error ( error ) ;
7373 return null ;
7474 }
75- } ,
75+ }
7676 ) ;
7777
7878 const remoteImportMaps = await Promise . all ( processRemoteInfoPromises ) ;
7979
8080 const importMap = remoteImportMaps . reduce < ImportMap > (
8181 ( acc , remoteImportMap ) =>
8282 remoteImportMap ? mergeImportMaps ( acc , remoteImportMap ) : acc ,
83- { imports : { } , scopes : { } } ,
83+ { imports : { } , scopes : { } }
8484 ) ;
8585
8686 return importMap ;
8787}
8888
8989export async function processRemoteInfo (
9090 federationInfoUrl : string ,
91- remoteName ?: string ,
91+ remoteName ?: string
9292) : Promise < ImportMap > {
9393 const baseUrl = getDirectory ( federationInfoUrl ) ;
9494 const remoteInfo = await loadFederationInfo ( federationInfoUrl ) ;
@@ -99,7 +99,7 @@ export async function processRemoteInfo(
9999
100100 if ( remoteInfo . buildNotificationsEndpoint ) {
101101 watchFederationBuildCompletion (
102- baseUrl + remoteInfo . buildNotificationsEndpoint ,
102+ baseUrl + remoteInfo . buildNotificationsEndpoint
103103 ) ;
104104 }
105105
@@ -112,7 +112,7 @@ export async function processRemoteInfo(
112112function createRemoteImportMap (
113113 remoteInfo : FederationInfo ,
114114 remoteName : string ,
115- baseUrl : string ,
115+ baseUrl : string
116116) : ImportMap {
117117 const imports = processExposed ( remoteInfo , remoteName , baseUrl ) ;
118118 const scopes = processRemoteImports ( remoteInfo , baseUrl ) ;
@@ -126,7 +126,7 @@ async function loadFederationInfo(url: string): Promise<FederationInfo> {
126126
127127function processRemoteImports (
128128 remoteInfo : FederationInfo ,
129- baseUrl : string ,
129+ baseUrl : string
130130) : Scopes {
131131 const scopes : Scopes = { } ;
132132 const scopedImports : Imports = { } ;
@@ -145,7 +145,7 @@ function processRemoteImports(
145145function processExposed (
146146 remoteInfo : FederationInfo ,
147147 remoteName : string ,
148- baseUrl : string ,
148+ baseUrl : string
149149) : Imports {
150150 const imports : Imports = { } ;
151151
@@ -160,14 +160,14 @@ function processExposed(
160160
161161export async function processHostInfo (
162162 hostInfo : FederationInfo ,
163- relBundlesPath = './' ,
163+ relBundlesPath = './'
164164) : Promise < ImportMap > {
165165 const imports = hostInfo . shared . reduce (
166166 ( acc , cur ) => ( {
167167 ...acc ,
168168 [ cur . packageName ] : relBundlesPath + cur . outFileName ,
169169 } ) ,
170- { } ,
170+ { }
171171 ) as Imports ;
172172
173173 for ( const shared of hostInfo . shared ) {
0 commit comments