@dynamic-labs/logger 4.4.4 → 4.5.0

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,18 @@
1
1
 
2
+ ## [4.5.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.4...v4.5.0) (2025-02-04)
3
+
4
+
5
+ ### Features
6
+
7
+ * allow injecting onramp providers for funding via sdk overrides ([#7967](https://github.com/dynamic-labs/dynamic-auth/issues/7967)) ([d738b3b](https://github.com/dynamic-labs/dynamic-auth/commit/d738b3ba1307bc6f2ffc5c8f98a44c6f509c0e96))
8
+ * headless transaction simulation ([#7928](https://github.com/dynamic-labs/dynamic-auth/issues/7928)) ([8eb4c9c](https://github.com/dynamic-labs/dynamic-auth/commit/8eb4c9cd9857a34c56f2e58aba124b5b7e185359))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * memo hooks and state to reduce rerenders ([#7912](https://github.com/dynamic-labs/dynamic-auth/issues/7912)) ([5351570](https://github.com/dynamic-labs/dynamic-auth/commit/5351570874eb3b9465d2a2c99ea5caaa787ecc80))
14
+ * rely on bitcoin sats-connect transaction inputs for handling sigHashTypes ([#7969](https://github.com/dynamic-labs/dynamic-auth/issues/7969)) ([e043306](https://github.com/dynamic-labs/dynamic-auth/commit/e043306be44dd9058265c19d7e14cb07dd6db1fe))
15
+
2
16
  ### [4.4.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.3...v4.4.4) (2025-01-31)
3
17
 
4
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/logger",
3
- "version": "4.4.4",
3
+ "version": "4.5.0",
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
@@ -18,9 +18,12 @@ const IGNORE_MESSAGES = ['Failed to send logs to server'];
18
18
  const messageQueue = [];
19
19
  class Logger {
20
20
  constructor(name, level) {
21
+ var _a;
21
22
  this.name = name;
22
23
  this.metaData = new MetaData.MetaData();
23
- if (level === undefined && process.env['NODE_ENV'] !== 'production') {
24
+ if (level === undefined &&
25
+ typeof process !== 'undefined' &&
26
+ ((_a = process.env) === null || _a === void 0 ? void 0 : _a['NODE_ENV']) !== 'production') {
24
27
  this.level = types.LogLevel.DEBUG;
25
28
  }
26
29
  else if (level === undefined) {
package/src/index.js CHANGED
@@ -11,9 +11,12 @@ const IGNORE_MESSAGES = ['Failed to send logs to server'];
11
11
  const messageQueue = [];
12
12
  class Logger {
13
13
  constructor(name, level) {
14
+ var _a;
14
15
  this.name = name;
15
16
  this.metaData = new MetaData();
16
- if (level === undefined && process.env['NODE_ENV'] !== 'production') {
17
+ if (level === undefined &&
18
+ typeof process !== 'undefined' &&
19
+ ((_a = process.env) === null || _a === void 0 ? void 0 : _a['NODE_ENV']) !== 'production') {
17
20
  this.level = LogLevel.DEBUG;
18
21
  }
19
22
  else if (level === undefined) {