@ocap/indexdb 1.17.13 → 1.17.16
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/lib/util.js +2 -0
- package/package.json +4 -4
package/lib/util.js
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
const get = require('lodash/get');
|
3
3
|
const uniq = require('lodash/uniq');
|
4
4
|
const pick = require('lodash/pick');
|
5
|
+
const uniqBy = require('lodash/uniqBy');
|
5
6
|
const { createSortedList } = require('@ocap/util/lib/create-sorted-list');
|
6
7
|
const { BN } = require('@ocap/util');
|
7
8
|
|
@@ -362,6 +363,7 @@ const formatTxBeforeInsert = (row) => {
|
|
362
363
|
tx.accounts = uniq(tx.accounts).filter(Boolean);
|
363
364
|
tx.stakes = uniq(tx.stakes).filter(Boolean);
|
364
365
|
tx.rollups = uniq(tx.rollups).filter(Boolean);
|
366
|
+
tx.tokenSymbols = uniqBy(tx.tokenSymbols, 'address');
|
365
367
|
|
366
368
|
return tx;
|
367
369
|
};
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"publishConfig": {
|
4
4
|
"access": "public"
|
5
5
|
},
|
6
|
-
"version": "1.17.
|
6
|
+
"version": "1.17.16",
|
7
7
|
"description": "Defines the basic interface for OCAP IndexDB",
|
8
8
|
"main": "lib/main.js",
|
9
9
|
"files": [
|
@@ -25,10 +25,10 @@
|
|
25
25
|
"jest": "^27.5.1"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
|
-
"@ocap/state": "1.17.
|
29
|
-
"@ocap/util": "1.17.
|
28
|
+
"@ocap/state": "1.17.16",
|
29
|
+
"@ocap/util": "1.17.16",
|
30
30
|
"kareem": "^2.4.1",
|
31
31
|
"lodash": "^4.17.21"
|
32
32
|
},
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "169f00efab9089ed10b8fd2bd298d159ab1c11b2"
|
34
34
|
}
|