Skip to content

Commit c60bf4f

Browse files
committed
republished as 1.2.4 b/c of issue with npm publish
1 parent e7af234 commit c60bf4f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/mf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-architects/module-federation",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"license": "MIT",
55
"repository": {
66
"type": "GitHub",

packages/mf/src/utils/dynamic-federation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type LoadRemoteModuleOptions = {
3535
}
3636

3737
export function loadRemoteEntry(remoteEntry: string, remoteName: string): Promise<void> {
38-
return new Promise<any>((resolve, reject) => {
38+
return new Promise<void>((resolve, reject) => {
3939

4040
// Is remoteEntry already loaded?
4141
if (moduleMap[remoteEntry]) {

packages/mf/src/utils/shared-mappings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class SharedMappings {
2020
throw new Error('SharedMappings.register: tsConfigPath needs to be an absolute path!');
2121
}
2222

23-
const tsConfig = JSON5.parse(fs.readFileSync(tsConfigPath, {encoding: 'UTF8'}));
23+
const tsConfig = JSON5.parse(fs.readFileSync(tsConfigPath, {encoding: 'utf-8'}));
2424
const mappings = tsConfig?.compilerOptions?.paths;
2525
const rootPath = path.normalize(path.dirname(tsConfigPath));
2626

@@ -54,7 +54,7 @@ export class SharedMappings {
5454
const packageJsonPath = path.join(libPath, '..', 'package.json');
5555
if (fs.existsSync(packageJsonPath)) {
5656
const packageJson = JSON5.parse(
57-
fs.readFileSync(packageJsonPath, { encoding: 'UTF8' }));
57+
fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
5858

5959
return packageJson.version ?? null;
6060
}

0 commit comments

Comments
 (0)