@ocap/indexdb 1.17.15 → 1.17.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/util.js +2 -0
  2. 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.15",
6
+ "version": "1.17.18",
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.15",
29
- "@ocap/util": "1.17.15",
28
+ "@ocap/state": "1.17.18",
29
+ "@ocap/util": "1.17.18",
30
30
  "kareem": "^2.4.1",
31
31
  "lodash": "^4.17.21"
32
32
  },
33
- "gitHead": "f2684cde2accb71a1c46144cd77090d099e3e551"
33
+ "gitHead": "103fab8c32e816f494b9a486e27804b91ca290b4"
34
34
  }