@dynamic-labs/logger 0.17.18 → 0.17.20

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,20 @@
1
1
 
2
+ ### [0.17.20](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.19...v0.17.20) (2023-07-03)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * persist chain to WalletConnect session when changed in wallet ([#2556](https://github.com/dynamic-labs/DynamicAuth/issues/2556)) ([#2562](https://github.com/dynamic-labs/DynamicAuth/issues/2562)) ([0415e6d](https://github.com/dynamic-labs/DynamicAuth/commit/0415e6d055e860ab63ebf0d249ca9cdd71dfdb83))
8
+
9
+ ### [0.17.19](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.18...v0.17.19) (2023-07-02)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * log out if there's any session sync issue ([#2548](https://github.com/dynamic-labs/DynamicAuth/issues/2548)) ([3f92bab](https://github.com/dynamic-labs/DynamicAuth/commit/3f92bab1b6b317f4a024a68d4d220921bad3437c))
15
+ * WC2 sign-message on non-selected chain ([#2551](https://github.com/dynamic-labs/DynamicAuth/issues/2551)) ([c455e53](https://github.com/dynamic-labs/DynamicAuth/commit/c455e530c964b2865ffd29529546faddf2a57096)), closes [#2544](https://github.com/dynamic-labs/DynamicAuth/issues/2544) [#2552](https://github.com/dynamic-labs/DynamicAuth/issues/2552) [#2525](https://github.com/dynamic-labs/DynamicAuth/issues/2525) [#2500](https://github.com/dynamic-labs/DynamicAuth/issues/2500) [#2546](https://github.com/dynamic-labs/DynamicAuth/issues/2546)
16
+ * **wcv2:** don't force required chain to eth in case is not enabled ([#2538](https://github.com/dynamic-labs/DynamicAuth/issues/2538)) ([933dc20](https://github.com/dynamic-labs/DynamicAuth/commit/933dc20b300f0740a438810b9e65d693aae61689))
17
+
2
18
  ### [0.17.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.17...v0.17.18) (2023-06-29)
3
19
 
4
20
  ### [0.17.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.16...v0.17.17) (2023-06-29)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/logger",
3
- "version": "0.17.18",
3
+ "version": "0.17.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
package/src/index.cjs CHANGED
@@ -24,6 +24,9 @@ class Logger {
24
24
  this.level = level;
25
25
  }
26
26
  }
27
+ get logLevel() {
28
+ return exports.LogLevel[this.level];
29
+ }
27
30
  setLogLevel(level) {
28
31
  if (level in exports.LogLevel && typeof level === 'string') {
29
32
  this.level = exports.LogLevel[level];
package/src/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export declare class Logger {
10
10
  private name;
11
11
  private level;
12
12
  constructor(name: string, level?: LogLevel);
13
+ get logLevel(): string;
13
14
  setLogLevel(level: LogLevel | keyof typeof LogLevel): void;
14
15
  private formatMessage;
15
16
  log(level: LogLevel, message: Message, ...args: any[]): void;
package/src/index.js CHANGED
@@ -20,6 +20,9 @@ class Logger {
20
20
  this.level = level;
21
21
  }
22
22
  }
23
+ get logLevel() {
24
+ return LogLevel[this.level];
25
+ }
23
26
  setLogLevel(level) {
24
27
  if (level in LogLevel && typeof level === 'string') {
25
28
  this.level = LogLevel[level];