@dynamic-labs/wallet-book 0.19.0-alpha.16 → 0.19.0-alpha.17

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,12 @@
1
1
 
2
+ ## [0.19.0-alpha.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.16...v0.19.0-alpha.17) (2023-10-19)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * memoize createEmbeddedWallet so sync passkey is not called multiple times ([#3612](https://github.com/dynamic-labs/DynamicAuth/issues/3612)) ([11d53e9](https://github.com/dynamic-labs/DynamicAuth/commit/11d53e9bf3e7c4ceb4be7dede96e6facd07a6767))
8
+ * revert any changes of the form of the wallet connector key ([#3608](https://github.com/dynamic-labs/DynamicAuth/issues/3608)) ([f0e2a89](https://github.com/dynamic-labs/DynamicAuth/commit/f0e2a8988047e7533cbfc52eee06d6752c5aa9c4))
9
+
2
10
  ## [0.19.0-alpha.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.0-alpha.15...v0.19.0-alpha.16) (2023-10-17)
3
11
 
4
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "0.19.0-alpha.16",
3
+ "version": "0.19.0-alpha.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.21.4",
29
- "@dynamic-labs/logger": "0.19.0-alpha.16"
29
+ "@dynamic-labs/logger": "0.19.0-alpha.17"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^17.0.2 || ^18.0.0",
@@ -5,10 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var normalizeWalletName = require('./normalizeWalletName.cjs');
6
6
 
7
7
  const getWalletBookWallet = (walletBook, walletName) => {
8
- // the below line is added to support the new injected wallet keys
9
- // since the wallet book is not fully updated yet, we need to remove the __evm suffix
10
- const baseName = walletName?.split('__')[0];
11
- const normalizedWalletName = normalizeWalletName.normalizeWalletName(baseName);
8
+ const normalizedWalletName = normalizeWalletName.normalizeWalletName(walletName);
12
9
  const walletData = walletBook?.wallets?.[normalizedWalletName];
13
10
  if (!walletData)
14
11
  throw new Error(`Wallet ${walletName} not found in wallet book (${Object.keys(walletBook?.wallets ?? {}).length} wallets found)`);
@@ -1,10 +1,7 @@
1
1
  import { normalizeWalletName } from './normalizeWalletName.js';
2
2
 
3
3
  const getWalletBookWallet = (walletBook, walletName) => {
4
- // the below line is added to support the new injected wallet keys
5
- // since the wallet book is not fully updated yet, we need to remove the __evm suffix
6
- const baseName = walletName?.split('__')[0];
7
- const normalizedWalletName = normalizeWalletName(baseName);
4
+ const normalizedWalletName = normalizeWalletName(walletName);
8
5
  const walletData = walletBook?.wallets?.[normalizedWalletName];
9
6
  if (!walletData)
10
7
  throw new Error(`Wallet ${walletName} not found in wallet book (${Object.keys(walletBook?.wallets ?? {}).length} wallets found)`);