@equinor/fusion-framework-module-msal 8.0.3 → 8.0.4

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.
@@ -1 +1 @@
1
- export declare const version = "8.0.3";
1
+ export declare const version = "8.0.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-module-msal",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "description": "Microsoft Authentication Library (MSAL) integration module for Fusion Framework",
5
5
  "main": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -48,10 +48,10 @@
48
48
  "devDependencies": {
49
49
  "@types/semver": "^7.7.1",
50
50
  "semver": "^7.7.4",
51
- "typescript": "^5.9.3",
52
- "zod": "^4.3.6",
51
+ "typescript": "^6.0.3",
52
+ "zod": "^4.4.3",
53
53
  "@equinor/fusion-framework-module": "^6.0.0",
54
- "@equinor/fusion-framework-module-telemetry": "^5.0.1"
54
+ "@equinor/fusion-framework-module-telemetry": "^5.0.2"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@types/semver": "^7.0.0",
@@ -59,7 +59,7 @@
59
59
  "typescript": "^5.0.0",
60
60
  "zod": "^4.0.0",
61
61
  "@equinor/fusion-framework-module": "^6.0.0",
62
- "@equinor/fusion-framework-module-telemetry": "^5.0.1"
62
+ "@equinor/fusion-framework-module-telemetry": "^5.0.2"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "@equinor/fusion-framework-module-telemetry": {
@@ -39,7 +39,7 @@ export type TelemetryConfig = z.infer<typeof TelemetryConfigSchema>;
39
39
  * @internal
40
40
  */
41
41
  const MsalConfigSchema = z.object({
42
- client: z.custom<IMsalClient>(),
42
+ client: z.custom<IMsalClient>().optional(),
43
43
  provider: z.custom<IMsalProvider>().optional(),
44
44
  requiresAuth: z.boolean().optional(),
45
45
  redirectUri: z.string().optional(),
@@ -61,4 +61,15 @@ describe('MsalConfigurator', () => {
61
61
 
62
62
  expect(config.authCode).toBeUndefined();
63
63
  });
64
+
65
+ it('createConfigAsync should succeed when client is omitted', async () => {
66
+ const configurator = new MsalConfigurator();
67
+
68
+ const config = await configurator.createConfigAsync(
69
+ createConfigCallbackArgs(),
70
+ createInitialConfig(),
71
+ );
72
+
73
+ expect(config.client).toBeUndefined();
74
+ });
64
75
  });
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '8.0.3';
2
+ export const version = '8.0.4';