@xh/hoist 78.1.3 → 78.1.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.
package/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 78.1.4 - 2025-12-05
4
+
5
+ ### 🐞 Bug Fixes
6
+
7
+ * Fix logging during MsalClient creation.
8
+
3
9
  ## 78.1.3 - 2025-12-04
4
10
 
5
11
  ### 🐞 Bug Fixes
12
+
6
13
  * Fix to Highchart timezone handling regression from version 77. Applications should note that
7
14
  Highcharts has deprecated the `time.useUTC` option and its functioning seem suspect. Apps
8
15
  should set `time.timezone` instead. See https://api.highcharts.com/highcharts/time.useUTC.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "78.1.3",
3
+ "version": "78.1.4",
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",
@@ -393,7 +393,7 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
393
393
  },
394
394
  system: {
395
395
  loggerOptions: {
396
- loggerCallback: this.logFromMsal,
396
+ loggerCallback: (level, message) => this.logFromMsal(level, message),
397
397
  logLevel: msalLogLevel
398
398
  },
399
399
  iframeHashTimeout: 3000 // Prevent long pauses for sso failures.
@@ -412,7 +412,7 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
412
412
  }
413
413
 
414
414
  private logFromMsal(level: LogLevel, message: string) {
415
- const source = this.client.constructor.name;
415
+ const source = this.client?.constructor.name;
416
416
  switch (level) {
417
417
  case msal.LogLevel.Info:
418
418
  return logInfo(message, source);