@exodus/balances 13.9.0 → 13.9.1
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 +6 -0
- package/module/index.js +13 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [13.9.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.9.0...@exodus/balances@13.9.1) (2025-06-11)
|
|
7
|
+
|
|
8
|
+
### Performance
|
|
9
|
+
|
|
10
|
+
- perf: clone balances (#12882)
|
|
11
|
+
|
|
6
12
|
## [13.9.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.8.2...@exodus/balances@13.9.0) (2025-06-03)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/module/index.js
CHANGED
|
@@ -7,12 +7,20 @@ import makeConcurrent from 'make-concurrent'
|
|
|
7
7
|
import { processAssetBalances, validateBalances } from './balances-utils.js'
|
|
8
8
|
import defaultConfig from '../default-config.js'
|
|
9
9
|
|
|
10
|
-
const {
|
|
10
|
+
const { isEmpty, merge, zipObject } = lodash
|
|
11
11
|
|
|
12
|
-
const cloneBalances = (balances) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
12
|
+
export const cloneBalances = (balances) => {
|
|
13
|
+
if (isNumberUnit(balances)) {
|
|
14
|
+
return balances
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const cloned = Object.create(Object.getPrototypeOf(balances))
|
|
18
|
+
for (const key in balances) {
|
|
19
|
+
cloned[key] = cloneBalances(balances[key])
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return cloned
|
|
23
|
+
}
|
|
16
24
|
|
|
17
25
|
const zipNonNull = (keys, values) =>
|
|
18
26
|
zipObject(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/balances",
|
|
3
|
-
"version": "13.9.
|
|
3
|
+
"version": "13.9.1",
|
|
4
4
|
"description": "Tracks crypto balances across enabled wallet accounts.",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
"@exodus/assets-feature": "^8.1.2",
|
|
57
57
|
"@exodus/available-assets": "^8.7.0",
|
|
58
58
|
"@exodus/bitcoin-meta": "^2.0.0",
|
|
59
|
-
"@exodus/blockchain-metadata": "^15.11.
|
|
59
|
+
"@exodus/blockchain-metadata": "^15.11.1",
|
|
60
60
|
"@exodus/ethereum-meta": "^2.0.0",
|
|
61
61
|
"@exodus/fee-data-monitors": "^5.0.4",
|
|
62
62
|
"@exodus/storage-memory": "^2.2.2",
|
|
63
|
-
"@exodus/wallet-accounts": "^17.6.
|
|
63
|
+
"@exodus/wallet-accounts": "^17.6.1",
|
|
64
64
|
"events": "^3.3.0",
|
|
65
65
|
"redux": "^4.2.1"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "7db677f161ff564c5ee65cf8f52f213c24b9624a"
|
|
71
71
|
}
|