@xh/hoist 79.0.0-SNAPSHOT.1764968347393 → 79.0.0-SNAPSHOT.1764973958182

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "79.0.0-SNAPSHOT.1764968347393",
3
+ "version": "79.0.0-SNAPSHOT.1764973958182",
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);