@xh/hoist 79.0.0-SNAPSHOT.1764802964843 → 79.0.0-SNAPSHOT.1764864358802

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## 79.0.0-SNAPSHOT - unreleased
4
4
 
5
- ## 78.1.2 - 2025-12-03
5
+ ## 78.1.3 - 2025-12-04
6
6
 
7
7
  ### 🐞 Bug Fixes
8
8
  * Fix to Highchart timezone handling regression from version 77. Applications should note that
@@ -49,7 +49,7 @@ export interface MsalClientConfig extends BaseOAuthClientConfig<MsalTokenSpec> {
49
49
  *
50
50
  * In practice, and according to documentation, this operation is likely to fail for a
51
51
  * number of reasons, and can often do so as timeout. Therefore, keeping the timeout limit
52
- * value -- `system.iFrameHashTimeout` -- at a relatively low value is critical. Hoist
52
+ * value -- `system.iframeHashTimeout` -- at a relatively low value is critical. Hoist
53
53
  * defaults this value to 3000ms vs. the default 10000ms.
54
54
  */
55
55
  enableSsoSilent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "79.0.0-SNAPSHOT.1764802964843",
3
+ "version": "79.0.0-SNAPSHOT.1764864358802",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
@@ -72,7 +72,7 @@ export interface MsalClientConfig extends BaseOAuthClientConfig<MsalTokenSpec> {
72
72
  *
73
73
  * In practice, and according to documentation, this operation is likely to fail for a
74
74
  * number of reasons, and can often do so as timeout. Therefore, keeping the timeout limit
75
- * value -- `system.iFrameHashTimeout` -- at a relatively low value is critical. Hoist
75
+ * value -- `system.iframeHashTimeout` -- at a relatively low value is critical. Hoist
76
76
  * defaults this value to 3000ms vs. the default 10000ms.
77
77
  */
78
78
  enableSsoSilent?: boolean;
@@ -385,37 +385,30 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
385
385
  const {clientId, authority, msalLogLevel, msalClientOptions, enableTelemetry} = this.config;
386
386
  throwIf(!authority, 'Missing MSAL authority. Please review your configuration.');
387
387
 
388
- const mergedConf: Configuration = mergeDeep(
389
- {
390
- auth: {
391
- clientId,
392
- authority,
393
- postLogoutRedirectUri: this.postLogoutRedirectUrl
394
- },
395
- system: {
396
- loggerOptions: {
397
- loggerCallback: this.logFromMsal,
398
- logLevel: msalLogLevel
399
- },
400
- iFrameHashTimeout: 3000 // Prevent long pauses for sso failures.
388
+ let conf: Configuration = {
389
+ auth: {
390
+ clientId,
391
+ authority,
392
+ postLogoutRedirectUri: this.postLogoutRedirectUrl
393
+ },
394
+ system: {
395
+ loggerOptions: {
396
+ loggerCallback: this.logFromMsal,
397
+ logLevel: msalLogLevel
401
398
  },
402
- cache: {
403
- cacheLocation: 'localStorage' // allows sharing auth info across tabs.
404
- }
399
+ iframeHashTimeout: 3000 // Prevent long pauses for sso failures.
405
400
  },
406
- msalClientOptions
407
- );
401
+ cache: {
402
+ cacheLocation: 'localStorage' // allows sharing auth info across tabs.
403
+ }
404
+ };
408
405
 
409
- return msal.PublicClientApplication.createPublicClientApplication(
410
- enableTelemetry
411
- ? {
412
- ...mergedConf,
413
- telemetry: {
414
- client: new BrowserPerformanceClient(mergedConf)
415
- }
416
- }
417
- : mergedConf
418
- );
406
+ conf = mergeDeep(conf, msalClientOptions);
407
+ if (enableTelemetry) {
408
+ conf.telemetry = {client: new BrowserPerformanceClient(conf)};
409
+ }
410
+
411
+ return msal.PublicClientApplication.createPublicClientApplication(conf);
419
412
  }
420
413
 
421
414
  private logFromMsal(level: LogLevel, message: string) {