@equinor/fusion-framework 8.1.4 → 9.0.1
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/README.md +10 -3
- package/dist/esm/__tests__/mock/application-module.test.js +1 -2
- package/dist/esm/__tests__/mock/application-module.test.js.map +1 -1
- package/dist/esm/__tests__/mock/documented-usage.test.js +15 -6
- package/dist/esm/__tests__/mock/documented-usage.test.js.map +1 -1
- package/dist/esm/__tests__/mock/mock-framework.test.js +28 -13
- package/dist/esm/__tests__/mock/mock-framework.test.js.map +1 -1
- package/dist/esm/mock/FrameworkMockConfigurator.js +5 -1
- package/dist/esm/mock/FrameworkMockConfigurator.js.map +1 -1
- package/dist/esm/mock/index.js.map +1 -1
- package/dist/esm/mock/mock-framework.js +5 -1
- package/dist/esm/mock/mock-framework.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/mock/FrameworkMockConfigurator.d.ts +5 -1
- package/dist/types/mock/index.d.ts +1 -1
- package/dist/types/mock/mock-framework.d.ts +5 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +5 -5
|
@@ -43,9 +43,13 @@ import { FrameworkConfigurator } from '../FrameworkConfigurator.js';
|
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* ```typescript
|
|
46
|
+
* import { createMockToken, FrameworkMockConfigurator } from '@equinor/fusion-framework/mock';
|
|
47
|
+
*
|
|
46
48
|
* const configurator = new FrameworkMockConfigurator();
|
|
47
49
|
*
|
|
48
|
-
* configurator.msal.
|
|
50
|
+
* configurator.msal.setAcquireToken(({ clientId, scopes }) =>
|
|
51
|
+
* createMockToken({ aud: clientId, scp: scopes.join(' ') }),
|
|
52
|
+
* );
|
|
49
53
|
* configurator.serviceDiscovery.setBaseUri('http://localhost:6669');
|
|
50
54
|
*
|
|
51
55
|
* const fusion = await init(configurator);
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
*/
|
|
25
25
|
export { mockFramework, type FrameworkMockConfigureFn } from './mock-framework.js';
|
|
26
26
|
export { FrameworkMockConfigurator } from './FrameworkMockConfigurator.js';
|
|
27
|
-
export { enableMsalMock, msalMockModule, MsalMockConfigurator, MsalMockClient, createMsalMockClient, createMockToken, type AuthConfigMockFn, type
|
|
27
|
+
export { enableMsalMock, msalMockModule, MsalMockConfigurator, MsalMockClient, createMsalMockClient, createMockToken, type AuthConfigMockFn, type MockTokenClaims, } from '@equinor/fusion-framework-module-msal/mock';
|
|
28
28
|
export { mockServiceDiscovery, enableServiceDiscoveryMock, serviceDiscoveryMockModule, ServiceDiscoveryMockClient, ServiceDiscoveryMockConfigurator, createMockService, defaultServiceDiscoveryMockServices, type ServiceDiscoveryConfigMockFn, type MockService, type ServiceDiscoveryMockClientOptions, } from '@equinor/fusion-framework-module-service-discovery/mock';
|
|
29
29
|
export { enableContextMock, contextMockModule, ContextMockConfigurator, type ContextMockConfigFn, type ContextResolverFn, } from '@equinor/fusion-framework-module-context/mock';
|
|
@@ -39,8 +39,12 @@ export type FrameworkMockConfigureFn<TModules extends Array<AnyModule> = []> = (
|
|
|
39
39
|
*
|
|
40
40
|
* @example Configure the built-in mocks
|
|
41
41
|
* ```typescript
|
|
42
|
+
* import { createMockToken, mockFramework } from '@equinor/fusion-framework/mock';
|
|
43
|
+
*
|
|
42
44
|
* const fusion = await mockFramework((configurator) => {
|
|
43
|
-
* configurator.msal.
|
|
45
|
+
* configurator.msal.setAcquireToken(({ clientId, scopes }) =>
|
|
46
|
+
* createMockToken({ aud: clientId, scp: scopes.join(' ') }),
|
|
47
|
+
* );
|
|
44
48
|
* configurator.serviceDiscovery.setBaseUri('http://localhost:6669');
|
|
45
49
|
* });
|
|
46
50
|
* ```
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "
|
|
1
|
+
export declare const version = "9.0.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@equinor/fusion-framework-module": "6.1.4",
|
|
45
45
|
"@equinor/fusion-framework-module-context": "9.0.1",
|
|
46
46
|
"@equinor/fusion-framework-module-event": "6.1.1",
|
|
47
|
-
"@equinor/fusion-framework-module-
|
|
48
|
-
"@equinor/fusion-framework-module-
|
|
47
|
+
"@equinor/fusion-framework-module-http": "8.1.2",
|
|
48
|
+
"@equinor/fusion-framework-module-msal": "12.0.0",
|
|
49
|
+
"@equinor/fusion-framework-module-service-discovery": "10.1.1",
|
|
49
50
|
"@equinor/fusion-framework-module-services": "8.1.2",
|
|
50
|
-
"@equinor/fusion-framework-module-telemetry": "7.1.2"
|
|
51
|
-
"@equinor/fusion-framework-module-service-discovery": "10.1.1"
|
|
51
|
+
"@equinor/fusion-framework-module-telemetry": "7.1.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "^7.0.2",
|