@dynamic-labs/bitcoin 4.0.0-alpha.20 → 4.0.0-alpha.22

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.0.0-alpha.22](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.21...v4.0.0-alpha.22) (2024-10-30)
3
+
4
+
5
+ ### Features
6
+
7
+ * **QNTM-522:** add wallet details card ([#7239](https://github.com/dynamic-labs/dynamic-auth/issues/7239)) ([0181c87](https://github.com/dynamic-labs/dynamic-auth/commit/0181c8727af575620525b8ea47b196945c347846))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * update check for wallet provider event listeners support ([#7303](https://github.com/dynamic-labs/dynamic-auth/issues/7303)) ([c5f3766](https://github.com/dynamic-labs/dynamic-auth/commit/c5f376691c87a0999991e477f9acd07eed4774aa))
13
+
14
+ ## [4.0.0-alpha.21](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.20...v4.0.0-alpha.21) (2024-10-30)
15
+
2
16
  ## [4.0.0-alpha.20](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.19...v4.0.0-alpha.20) (2024-10-30)
3
17
 
4
18
  ## [4.0.0-alpha.19](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.18...v4.0.0-alpha.19) (2024-10-29)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.20";
6
+ var version = "4.0.0-alpha.22";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.20";
2
+ var version = "4.0.0-alpha.22";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/bitcoin",
3
- "version": "4.0.0-alpha.20",
3
+ "version": "4.0.0-alpha.22",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -25,11 +25,11 @@
25
25
  "bitcoinjs-lib": "6.1.5",
26
26
  "sats-connect": "2.8.0",
27
27
  "jsontokens": "4.0.1",
28
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.20",
29
- "@dynamic-labs/types": "4.0.0-alpha.20",
30
- "@dynamic-labs/utils": "4.0.0-alpha.20",
31
- "@dynamic-labs/wallet-book": "4.0.0-alpha.20",
32
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.20",
28
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.22",
29
+ "@dynamic-labs/types": "4.0.0-alpha.22",
30
+ "@dynamic-labs/utils": "4.0.0-alpha.22",
31
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.22",
32
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.22",
33
33
  "eventemitter3": "5.0.1"
34
34
  },
35
35
  "peerDependencies": {}
@@ -251,13 +251,19 @@ class BitcoinSatsConnectConnector extends BitcoinWalletConnector.BitcoinWalletCo
251
251
  });
252
252
  }
253
253
  validateActiveWallet(expectedAddress) {
254
+ const _super = Object.create(null, {
255
+ validateActiveWallet: { get: () => super.validateActiveWallet }
256
+ });
254
257
  return _tslib.__awaiter(this, void 0, void 0, function* () {
255
258
  // TODO: this is a workaround to avoid extra connecting prompt for xverse
256
259
  // we should revisit it once xverse releases a new version with bug fixes
260
+ if (this.key !== 'xverse') {
261
+ yield _super.validateActiveWallet.call(this, expectedAddress);
262
+ return;
263
+ }
257
264
  walletConnectorCore.logger.debug('validateActiveWallet - skipping validation for xverse', {
258
265
  expectedAddress,
259
266
  });
260
- return;
261
267
  });
262
268
  }
263
269
  handleXverseAccountChange() {
@@ -247,13 +247,19 @@ class BitcoinSatsConnectConnector extends BitcoinWalletConnector {
247
247
  });
248
248
  }
249
249
  validateActiveWallet(expectedAddress) {
250
+ const _super = Object.create(null, {
251
+ validateActiveWallet: { get: () => super.validateActiveWallet }
252
+ });
250
253
  return __awaiter(this, void 0, void 0, function* () {
251
254
  // TODO: this is a workaround to avoid extra connecting prompt for xverse
252
255
  // we should revisit it once xverse releases a new version with bug fixes
256
+ if (this.key !== 'xverse') {
257
+ yield _super.validateActiveWallet.call(this, expectedAddress);
258
+ return;
259
+ }
253
260
  logger.debug('validateActiveWallet - skipping validation for xverse', {
254
261
  expectedAddress,
255
262
  });
256
- return;
257
263
  });
258
264
  }
259
265
  handleXverseAccountChange() {