@dynamic-labs/logger 4.20.13 → 4.20.15

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,4 +1,19 @@
1
1
 
2
+ ### [4.20.15](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.14...v4.20.15) (2025-07-03)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * triggering waas wallet creation attempt on logout ([#9083](https://github.com/dynamic-labs/dynamic-auth/issues/9083)) ([19a66f7](https://github.com/dynamic-labs/dynamic-auth/commit/19a66f7e49d4bd95725131f81eab9eeed2dc1b27))
8
+
9
+ ### [4.20.14](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.13...v4.20.14) (2025-07-03)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * refresh function user state for sessionId ([#9073](https://github.com/dynamic-labs/dynamic-auth/issues/9073)) ([080e923](https://github.com/dynamic-labs/dynamic-auth/commit/080e92356e3920f1d240b5025db9c831aa2abc5a))
15
+ * remove default commonjs setups for @dynamic-labs-wallet/browser-wallet-client ([#9079](https://github.com/dynamic-labs/dynamic-auth/issues/9079)) ([27507ab](https://github.com/dynamic-labs/dynamic-auth/commit/27507abedfd223209cad15d5c1e12b37fa421071))
16
+
2
17
  ### [4.20.13](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.12...v4.20.13) (2025-07-02)
3
18
 
4
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/logger",
3
- "version": "4.20.13",
3
+ "version": "4.20.15",
4
4
  "description": "A simple client side logging library used in Dynamic SDK",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
package/src/index.cjs CHANGED
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var _tslib = require('../_virtual/_tslib.cjs');
7
7
  var EventEmitter = require('eventemitter3');
8
- var types = require('./types.cjs');
9
8
  var MetaData = require('./MetaData/MetaData.cjs');
10
- var processArgs = require('./utils/processArgs.cjs');
11
- var mapLogLevel = require('./utils/mapLogLevel.cjs');
9
+ var types = require('./types.cjs');
12
10
  var createCircularReferenceReplacer = require('./utils/createCircularReferenceReplacer.cjs');
11
+ var mapLogLevel = require('./utils/mapLogLevel.cjs');
12
+ var processArgs = require('./utils/processArgs.cjs');
13
13
 
14
14
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
15
 
@@ -25,9 +25,11 @@ class Logger {
25
25
  this.metaData = new MetaData.MetaData();
26
26
  this._level = level;
27
27
  if (typeof window !== 'undefined' && window.localStorage !== undefined) {
28
+ // Don't unset the value if it's already set
28
29
  Logger.troubleshootModeEnabled =
29
- window.localStorage.getItem('dynamic_enableTroubleshootMode') ===
30
- 'true';
30
+ Logger.troubleshootModeEnabled ||
31
+ window.localStorage.getItem('dynamic_enableTroubleshootMode') ===
32
+ 'true';
31
33
  window.enableTroubleshootMode = () => {
32
34
  window.localStorage.setItem('dynamic_enableTroubleshootMode', 'true');
33
35
  Logger.troubleshootModeEnabled = true;
package/src/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import EventEmitter from 'eventemitter3';
2
- import { LogLevel, Message } from './types';
3
2
  import { MetaData } from './MetaData';
3
+ import { LogLevel, Message } from './types';
4
4
  export { LogLevel, type Message } from './types';
5
5
  type EmitHttpOptions = {
6
6
  args?: any[];
package/src/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../_virtual/_tslib.js';
3
3
  import EventEmitter from 'eventemitter3';
4
+ import { MetaData } from './MetaData/MetaData.js';
4
5
  import { LogLevel } from './types.js';
5
6
  export { LogLevel } from './types.js';
6
- import { MetaData } from './MetaData/MetaData.js';
7
- import { processArgs } from './utils/processArgs.js';
8
- import { mapLogLevel } from './utils/mapLogLevel.js';
9
7
  import { createCircularReferenceReplacer } from './utils/createCircularReferenceReplacer.js';
8
+ import { mapLogLevel } from './utils/mapLogLevel.js';
9
+ import { processArgs } from './utils/processArgs.js';
10
10
 
11
11
  /* eslint-disable @typescript-eslint/no-explicit-any, no-console */
12
12
  const IGNORE_MESSAGES = ['Failed to send logs to server'];
@@ -18,9 +18,11 @@ class Logger {
18
18
  this.metaData = new MetaData();
19
19
  this._level = level;
20
20
  if (typeof window !== 'undefined' && window.localStorage !== undefined) {
21
+ // Don't unset the value if it's already set
21
22
  Logger.troubleshootModeEnabled =
22
- window.localStorage.getItem('dynamic_enableTroubleshootMode') ===
23
- 'true';
23
+ Logger.troubleshootModeEnabled ||
24
+ window.localStorage.getItem('dynamic_enableTroubleshootMode') ===
25
+ 'true';
24
26
  window.enableTroubleshootMode = () => {
25
27
  window.localStorage.setItem('dynamic_enableTroubleshootMode', 'true');
26
28
  Logger.troubleshootModeEnabled = true;