@dynamic-labs/multi-wallet 3.0.0-alpha.14 → 3.0.0-alpha.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,13 @@
1
1
 
2
+ ## [3.0.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.14...v3.0.0-alpha.15) (2024-07-11)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * catch third party wallet construction errors ([#6268](https://github.com/dynamic-labs/DynamicAuth/issues/6268)) ([badef39](https://github.com/dynamic-labs/DynamicAuth/commit/badef39d753c7d29925c6c8680053027bd99b69b))
8
+ * decode all solana transactions ([#6294](https://github.com/dynamic-labs/DynamicAuth/issues/6294)) ([5220ab2](https://github.com/dynamic-labs/DynamicAuth/commit/5220ab29381f3a7f1afc7043332b5a018b47eb0a))
9
+ * passkey cta ([#6255](https://github.com/dynamic-labs/DynamicAuth/issues/6255)) ([1b1b152](https://github.com/dynamic-labs/DynamicAuth/commit/1b1b152a24b409c5d941a9c92a003daf0bbe48a1))
10
+
2
11
  ## [3.0.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.13...v3.0.0-alpha.14) (2024-07-09)
3
12
 
4
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "3.0.0-alpha.14",
3
+ "version": "3.0.0-alpha.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -9,11 +9,11 @@
9
9
  "dependencies": {
10
10
  "@dynamic-labs/sdk-api-core": "0.0.470",
11
11
  "tslib": "2.4.1",
12
- "@dynamic-labs/rpc-providers": "3.0.0-alpha.14",
13
- "@dynamic-labs/types": "3.0.0-alpha.14",
14
- "@dynamic-labs/utils": "3.0.0-alpha.14",
15
- "@dynamic-labs/wallet-book": "3.0.0-alpha.14",
16
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.14"
12
+ "@dynamic-labs/rpc-providers": "3.0.0-alpha.15",
13
+ "@dynamic-labs/types": "3.0.0-alpha.15",
14
+ "@dynamic-labs/utils": "3.0.0-alpha.15",
15
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.15",
16
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.15"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@walletconnect/types": "2.10.6"
@@ -62,8 +62,17 @@ const getSupportedWallets = (args) => {
62
62
  const allWallets = walletConnectorsProp
63
63
  .map((walletConnector) => walletConnector(opts))
64
64
  .flat()
65
- .map((wallet) => new wallet(opts))
66
- .filter((wallet) => wallet.filter())
65
+ .map((wallet) => {
66
+ try {
67
+ // This may contain third party code so we must be ready for anything
68
+ return new wallet(opts);
69
+ }
70
+ catch (error) {
71
+ walletConnectorCore.logger.error(`Failed to construct wallet ${wallet.name}`, error);
72
+ return undefined;
73
+ }
74
+ })
75
+ .filter((wallet) => wallet === null || wallet === void 0 ? void 0 : wallet.filter())
67
76
  .map((wallet) => wallet.getMobileOrInstalledWallet());
68
77
  // Memoize the wallets
69
78
  const filteredWallets = filterWalletsForPlatform(walletBook, allWallets);
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- import { isEmbeddedConnector } from '@dynamic-labs/wallet-connector-core';
2
+ import { logger, isEmbeddedConnector } from '@dynamic-labs/wallet-connector-core';
3
3
  import { getWalletBookWallet, getWalletLinks } from '@dynamic-labs/wallet-book';
4
4
  import { isMobile, isIPad, isIPhone } from '@dynamic-labs/utils';
5
5
  import { ProviderEnum } from '@dynamic-labs/sdk-api-core';
@@ -58,8 +58,17 @@ const getSupportedWallets = (args) => {
58
58
  const allWallets = walletConnectorsProp
59
59
  .map((walletConnector) => walletConnector(opts))
60
60
  .flat()
61
- .map((wallet) => new wallet(opts))
62
- .filter((wallet) => wallet.filter())
61
+ .map((wallet) => {
62
+ try {
63
+ // This may contain third party code so we must be ready for anything
64
+ return new wallet(opts);
65
+ }
66
+ catch (error) {
67
+ logger.error(`Failed to construct wallet ${wallet.name}`, error);
68
+ return undefined;
69
+ }
70
+ })
71
+ .filter((wallet) => wallet === null || wallet === void 0 ? void 0 : wallet.filter())
63
72
  .map((wallet) => wallet.getMobileOrInstalledWallet());
64
73
  // Memoize the wallets
65
74
  const filteredWallets = filterWalletsForPlatform(walletBook, allWallets);