@dynamic-labs-wallet/node 0.0.322 → 0.0.323
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 +3 -6
- package/index.esm.js +3 -7
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -72,12 +72,8 @@ const base64ToBytes = (base64)=>{
|
|
|
72
72
|
const ensureBase64Padding = (str)=>{
|
|
73
73
|
return str.padEnd(Math.ceil(str.length / 4) * 4, '=');
|
|
74
74
|
};
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
const hex = str.startsWith('0x') ? str.slice(2) : str;
|
|
78
|
-
// Check if string contains only hex characters
|
|
79
|
-
return /^[0-9A-Fa-f]+$/.test(hex);
|
|
80
|
-
};
|
|
75
|
+
const stripHexPrefix = (str)=>str.startsWith('0x') ? str.slice(2) : str;
|
|
76
|
+
const isHexString = (str)=>/^[0-9A-Fa-f]+$/.test(stripHexPrefix(str));
|
|
81
77
|
const getExternalServerKeyShareBackupInfo = (params)=>{
|
|
82
78
|
var _params_walletProperties, _params_walletProperties_keyShares_;
|
|
83
79
|
const backups = {
|
|
@@ -1883,6 +1879,7 @@ exports.mergeUniqueKeyShares = mergeUniqueKeyShares;
|
|
|
1883
1879
|
exports.retryPromise = retryPromise;
|
|
1884
1880
|
exports.revokeDelegation = revokeDelegation;
|
|
1885
1881
|
exports.stringToBytes = stringToBytes;
|
|
1882
|
+
exports.stripHexPrefix = stripHexPrefix;
|
|
1886
1883
|
Object.keys(core).forEach(function (k) {
|
|
1887
1884
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
1888
1885
|
enumerable: true,
|
package/index.esm.js
CHANGED
|
@@ -71,12 +71,8 @@ const base64ToBytes = (base64)=>{
|
|
|
71
71
|
const ensureBase64Padding = (str)=>{
|
|
72
72
|
return str.padEnd(Math.ceil(str.length / 4) * 4, '=');
|
|
73
73
|
};
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
const hex = str.startsWith('0x') ? str.slice(2) : str;
|
|
77
|
-
// Check if string contains only hex characters
|
|
78
|
-
return /^[0-9A-Fa-f]+$/.test(hex);
|
|
79
|
-
};
|
|
74
|
+
const stripHexPrefix = (str)=>str.startsWith('0x') ? str.slice(2) : str;
|
|
75
|
+
const isHexString = (str)=>/^[0-9A-Fa-f]+$/.test(stripHexPrefix(str));
|
|
80
76
|
const getExternalServerKeyShareBackupInfo = (params)=>{
|
|
81
77
|
var _params_walletProperties, _params_walletProperties_keyShares_;
|
|
82
78
|
const backups = {
|
|
@@ -1848,4 +1844,4 @@ const revokeDelegation = async (client, walletId)=>{
|
|
|
1848
1844
|
}
|
|
1849
1845
|
};
|
|
1850
1846
|
|
|
1851
|
-
export { DynamicWalletClient, base64ToBytes, bytesToBase64, createDelegatedWalletClient, createLogError, delegatedSignMessage, ensureBase64Padding, formatEvmMessage, formatMessage, getExternalServerKeyShareBackupInfo, getMPCSignatureScheme, getMPCSigner, isHexString, logError, mergeUniqueKeyShares, retryPromise, revokeDelegation, stringToBytes };
|
|
1847
|
+
export { DynamicWalletClient, base64ToBytes, bytesToBase64, createDelegatedWalletClient, createLogError, delegatedSignMessage, ensureBase64Padding, formatEvmMessage, formatMessage, getExternalServerKeyShareBackupInfo, getMPCSignatureScheme, getMPCSigner, isHexString, logError, mergeUniqueKeyShares, retryPromise, revokeDelegation, stringToBytes, stripHexPrefix };
|
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.323",
|
|
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.323",
|
|
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",
|