File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/module-federation" ,
3
- "version" : " 1.2.3 " ,
3
+ "version" : " 1.2.4 " ,
4
4
"license" : " MIT" ,
5
5
"repository" : {
6
6
"type" : " GitHub" ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export type LoadRemoteModuleOptions = {
35
35
}
36
36
37
37
export function loadRemoteEntry ( remoteEntry : string , remoteName : string ) : Promise < void > {
38
- return new Promise < any > ( ( resolve , reject ) => {
38
+ return new Promise < void > ( ( resolve , reject ) => {
39
39
40
40
// Is remoteEntry already loaded?
41
41
if ( moduleMap [ remoteEntry ] ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class SharedMappings {
20
20
throw new Error ( 'SharedMappings.register: tsConfigPath needs to be an absolute path!' ) ;
21
21
}
22
22
23
- const tsConfig = JSON5 . parse ( fs . readFileSync ( tsConfigPath , { encoding : 'UTF8 ' } ) ) ;
23
+ const tsConfig = JSON5 . parse ( fs . readFileSync ( tsConfigPath , { encoding : 'utf-8 ' } ) ) ;
24
24
const mappings = tsConfig ?. compilerOptions ?. paths ;
25
25
const rootPath = path . normalize ( path . dirname ( tsConfigPath ) ) ;
26
26
@@ -54,7 +54,7 @@ export class SharedMappings {
54
54
const packageJsonPath = path . join ( libPath , '..' , 'package.json' ) ;
55
55
if ( fs . existsSync ( packageJsonPath ) ) {
56
56
const packageJson = JSON5 . parse (
57
- fs . readFileSync ( packageJsonPath , { encoding : 'UTF8 ' } ) ) ;
57
+ fs . readFileSync ( packageJsonPath , { encoding : 'utf-8 ' } ) ) ;
58
58
59
59
return packageJson . version ?? null ;
60
60
}
You can’t perform that action at this time.
0 commit comments