@equinor/fusion-framework-app 10.4.0 → 10.4.2
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/CHANGELOG.md +21 -0
- package/dist/esm/AppConfigurator.js +4 -3
- package/dist/esm/AppConfigurator.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/AppConfigurator.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/src/AppConfigurator.ts +4 -3
- package/src/version.ts +1 -1
|
@@ -49,7 +49,7 @@ export declare class AppConfigurator<TModules extends Array<AnyModule> | unknown
|
|
|
49
49
|
/**
|
|
50
50
|
* Reads app config's endpoints and configure the endpoints as httpClients
|
|
51
51
|
*/
|
|
52
|
-
protected
|
|
52
|
+
protected _configureHttpClientsFromAppConfig(): void;
|
|
53
53
|
configureHttp(...args: Parameters<typeof configureHttp>): void;
|
|
54
54
|
configureHttpClient(...args: Parameters<typeof configureHttpClient>): void;
|
|
55
55
|
/**
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "10.4.
|
|
1
|
+
export declare const version = "10.4.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-app",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"rxjs": "^7.8.1",
|
|
49
|
-
"@equinor/fusion-framework": "7.4.
|
|
50
|
-
"@equinor/fusion-framework-module-event": "5.0.0",
|
|
51
|
-
"@equinor/fusion-framework-module-app": "7.4.0",
|
|
49
|
+
"@equinor/fusion-framework": "7.4.6",
|
|
52
50
|
"@equinor/fusion-framework-module": "5.0.5",
|
|
51
|
+
"@equinor/fusion-framework-module-app": "7.4.0",
|
|
52
|
+
"@equinor/fusion-framework-module-http": "7.0.7",
|
|
53
53
|
"@equinor/fusion-framework-module-msal": "7.0.0",
|
|
54
|
-
"@equinor/fusion-framework-module-telemetry": "4.6.
|
|
55
|
-
"@equinor/fusion-framework-module-
|
|
54
|
+
"@equinor/fusion-framework-module-telemetry": "4.6.3",
|
|
55
|
+
"@equinor/fusion-framework-module-event": "5.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"typescript": "^5.8.2",
|
package/src/AppConfigurator.ts
CHANGED
|
@@ -79,17 +79,18 @@ export class AppConfigurator<
|
|
|
79
79
|
*/
|
|
80
80
|
static readonly className: string = 'AppConfigurator';
|
|
81
81
|
|
|
82
|
+
// @todo - use zod to validate provided env config shape?
|
|
82
83
|
constructor(public readonly env: TEnv) {
|
|
83
84
|
super([event, http, auth]);
|
|
84
85
|
|
|
85
|
-
this.
|
|
86
|
+
this._configureHttpClientsFromAppConfig();
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
/**
|
|
89
90
|
* Reads app config's endpoints and configure the endpoints as httpClients
|
|
90
91
|
*/
|
|
91
|
-
protected
|
|
92
|
-
const endpoints =
|
|
92
|
+
protected _configureHttpClientsFromAppConfig() {
|
|
93
|
+
const { endpoints = {} } = this.env.config ?? {};
|
|
93
94
|
for (const [key, { url, scopes }] of Object.entries(endpoints)) {
|
|
94
95
|
this.configureHttpClient(key, {
|
|
95
96
|
baseUri: url,
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '10.4.
|
|
2
|
+
export const version = '10.4.2';
|