@dynamic-labs-wallet/node 0.0.320 → 0.0.322
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/index.cjs.js +8 -2
- package/index.esm.js +8 -2
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -1440,7 +1440,10 @@ class DynamicWalletClient {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
// Get backup info from server
|
|
1442
1442
|
const user = await this.apiClient.getUser(uuid.v4());
|
|
1443
|
-
const walletData = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.find((vc)=>
|
|
1443
|
+
const walletData = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.find((vc)=>{
|
|
1444
|
+
var _vc_address;
|
|
1445
|
+
return ((_vc_address = vc.address) == null ? void 0 : _vc_address.toLowerCase()) === accountAddress.toLowerCase();
|
|
1446
|
+
});
|
|
1444
1447
|
return getExternalServerKeyShareBackupInfo({
|
|
1445
1448
|
walletProperties: walletData == null ? void 0 : walletData.walletProperties
|
|
1446
1449
|
});
|
|
@@ -1533,7 +1536,10 @@ class DynamicWalletClient {
|
|
|
1533
1536
|
this.logger.debug('getWaasWalletByAddress endpoint not available, falling back to getUser()');
|
|
1534
1537
|
// Fallback to getUser() approach
|
|
1535
1538
|
const user = await this.apiClient.getUser(uuid.v4());
|
|
1536
|
-
const wallet = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.find((vc)=>
|
|
1539
|
+
const wallet = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.find((vc)=>{
|
|
1540
|
+
var _vc_address;
|
|
1541
|
+
return vc.walletName === 'dynamicwaas' && ((_vc_address = vc.address) == null ? void 0 : _vc_address.toLowerCase()) === accountAddress.toLowerCase();
|
|
1542
|
+
});
|
|
1537
1543
|
if (!wallet) {
|
|
1538
1544
|
return null;
|
|
1539
1545
|
}
|
package/index.esm.js
CHANGED
|
@@ -1439,7 +1439,10 @@ class DynamicWalletClient {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
// Get backup info from server
|
|
1441
1441
|
const user = await this.apiClient.getUser(v4());
|
|
1442
|
-
const walletData = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.find((vc)=>
|
|
1442
|
+
const walletData = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.find((vc)=>{
|
|
1443
|
+
var _vc_address;
|
|
1444
|
+
return ((_vc_address = vc.address) == null ? void 0 : _vc_address.toLowerCase()) === accountAddress.toLowerCase();
|
|
1445
|
+
});
|
|
1443
1446
|
return getExternalServerKeyShareBackupInfo({
|
|
1444
1447
|
walletProperties: walletData == null ? void 0 : walletData.walletProperties
|
|
1445
1448
|
});
|
|
@@ -1532,7 +1535,10 @@ class DynamicWalletClient {
|
|
|
1532
1535
|
this.logger.debug('getWaasWalletByAddress endpoint not available, falling back to getUser()');
|
|
1533
1536
|
// Fallback to getUser() approach
|
|
1534
1537
|
const user = await this.apiClient.getUser(v4());
|
|
1535
|
-
const wallet = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.find((vc)=>
|
|
1538
|
+
const wallet = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.find((vc)=>{
|
|
1539
|
+
var _vc_address;
|
|
1540
|
+
return vc.walletName === 'dynamicwaas' && ((_vc_address = vc.address) == null ? void 0 : _vc_address.toLowerCase()) === accountAddress.toLowerCase();
|
|
1541
|
+
});
|
|
1536
1542
|
if (!wallet) {
|
|
1537
1543
|
return null;
|
|
1538
1544
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.322",
|
|
4
4
|
"license": "Licensed under the Dynamic Labs, Inc. Terms Of Service (https://www.dynamic.xyz/terms-conditions)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/core": "0.0.
|
|
7
|
+
"@dynamic-labs-wallet/core": "0.0.322",
|
|
8
8
|
"@dynamic-labs-wallet/forward-mpc-client": "0.5.5",
|
|
9
9
|
"@dynamic-labs/logger": "^4.45.2",
|
|
10
10
|
"@dynamic-labs/sdk-api-core": "^0.0.900",
|