@equinor/fusion-framework 8.0.10 → 8.0.11
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 +42 -0
- package/dist/esm/FrameworkConfigurator.js +3 -0
- package/dist/esm/FrameworkConfigurator.js.map +1 -1
- package/dist/esm/init.js +1 -0
- package/dist/esm/init.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +10 -10
- package/src/FrameworkConfigurator.ts +4 -1
- package/src/init.ts +1 -0
- package/src/version.ts +1 -1
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.0.
|
|
1
|
+
export declare const version = "8.0.11";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"rxjs": "^7.8.1",
|
|
35
|
-
"@equinor/fusion-framework-module
|
|
36
|
-
"@equinor/fusion-framework-module": "
|
|
37
|
-
"@equinor/fusion-framework-module-
|
|
38
|
-
"@equinor/fusion-framework-module-
|
|
39
|
-
"@equinor/fusion-framework-module-
|
|
40
|
-
"@equinor/fusion-framework-module-
|
|
41
|
-
"@equinor/fusion-framework-module-
|
|
42
|
-
"@equinor/fusion-framework-module-
|
|
35
|
+
"@equinor/fusion-framework-module": "6.1.1",
|
|
36
|
+
"@equinor/fusion-framework-module-context": "8.0.1",
|
|
37
|
+
"@equinor/fusion-framework-module-http": "8.0.4",
|
|
38
|
+
"@equinor/fusion-framework-module-msal": "10.0.2",
|
|
39
|
+
"@equinor/fusion-framework-module-event": "6.0.1",
|
|
40
|
+
"@equinor/fusion-framework-module-services": "8.0.2",
|
|
41
|
+
"@equinor/fusion-framework-module-service-discovery": "10.0.2",
|
|
42
|
+
"@equinor/fusion-framework-module-telemetry": "7.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^
|
|
45
|
+
"typescript": "^7.0.2",
|
|
46
46
|
"vitest": "^4.1.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
@@ -56,7 +56,7 @@ import { version } from './version.js';
|
|
|
56
56
|
*/
|
|
57
57
|
export class FrameworkConfigurator<
|
|
58
58
|
TModules extends Array<AnyModule> = [],
|
|
59
|
-
//
|
|
59
|
+
// biome-ignore lint/suspicious/noExplicitAny: default must be bivariant `any`, not `unknown` \u2014 `unknown` breaks assignability when a concrete `FrameworkConfigurator<TModules, TRef>` is used where the default-typed class is expected
|
|
60
60
|
TRef = any,
|
|
61
61
|
> extends ModulesConfigurator<FusionModules<TModules>, TRef> {
|
|
62
62
|
/**
|
|
@@ -187,12 +187,15 @@ export class FrameworkConfigurator<
|
|
|
187
187
|
this.addConfig({
|
|
188
188
|
module: auth,
|
|
189
189
|
configure: (builder) => {
|
|
190
|
+
// Only override the default requiresAuth flag when the caller explicitly set one
|
|
190
191
|
if (requiresAuth !== undefined) {
|
|
191
192
|
builder.setRequiresAuth(!!requiresAuth);
|
|
192
193
|
}
|
|
194
|
+
// A function argument configures the builder directly
|
|
193
195
|
if (typeof cb_or_config === 'function') {
|
|
194
196
|
cb_or_config(builder);
|
|
195
197
|
}
|
|
198
|
+
// A plain object argument is applied as the MSAL client config
|
|
196
199
|
if (typeof cb_or_config === 'object') {
|
|
197
200
|
builder.setClientConfig(cb_or_config);
|
|
198
201
|
}
|
package/src/init.ts
CHANGED
|
@@ -49,6 +49,7 @@ export const init = async <TModules extends Array<AnyModule>, TRef extends objec
|
|
|
49
49
|
window.Fusion = fusion as unknown as Fusion;
|
|
50
50
|
modules.event.dispatchEvent('onFrameworkLoaded', { detail: fusion });
|
|
51
51
|
|
|
52
|
+
// The generic TModules type is erased on the plain object above; restore it for the return type
|
|
52
53
|
return fusion as unknown as Fusion<TModules>;
|
|
53
54
|
};
|
|
54
55
|
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '8.0.
|
|
2
|
+
export const version = '8.0.11';
|