@ocap/indexdb-memory 1.31.1 → 1.31.2

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/esm/db/base.mjs CHANGED
@@ -52,7 +52,7 @@ var LocalBaseIndexDB = class extends BaseIndexDB {
52
52
  const { assets = [] } = assetFilter;
53
53
  const { tokens = [] } = tokenFilter;
54
54
  const { accounts = [] } = accountFilter;
55
- const { txs = [], gasPayer: txGasPayer } = txFilter;
55
+ const { txs = [], gasPayer: txGasPayer, evidences = [] } = txFilter;
56
56
  const gasPayer = addressGasPayer || txGasPayer || "";
57
57
  const { rollups = [] } = rollupFilter;
58
58
  const { stakes = [] } = stakeFilter;
@@ -99,6 +99,7 @@ var LocalBaseIndexDB = class extends BaseIndexDB {
99
99
  applyArrayFilter(query, accounts, "accounts", true);
100
100
  applyArrayFilter(query, tokenFactories, "tokenFactories", true);
101
101
  applyArrayFilter(query, txs, "hash", false);
102
+ applyArrayFilter(query, evidences, "evidences", true);
102
103
  applyArrayFilter(query, rollups, "rollups", true);
103
104
  applyArrayFilter(query, stakes, "stakes", true);
104
105
  applyArrayFilter(query, delegations, "delegations", true);
package/lib/db/base.cjs CHANGED
@@ -56,7 +56,7 @@ var LocalBaseIndexDB = class extends _ocap_indexdb.BaseIndexDB {
56
56
  const { assets = [] } = assetFilter;
57
57
  const { tokens = [] } = tokenFilter;
58
58
  const { accounts = [] } = accountFilter;
59
- const { txs = [], gasPayer: txGasPayer } = txFilter;
59
+ const { txs = [], gasPayer: txGasPayer, evidences = [] } = txFilter;
60
60
  const gasPayer = addressGasPayer || txGasPayer || "";
61
61
  const { rollups = [] } = rollupFilter;
62
62
  const { stakes = [] } = stakeFilter;
@@ -103,6 +103,7 @@ var LocalBaseIndexDB = class extends _ocap_indexdb.BaseIndexDB {
103
103
  applyArrayFilter(query, accounts, "accounts", true);
104
104
  applyArrayFilter(query, tokenFactories, "tokenFactories", true);
105
105
  applyArrayFilter(query, txs, "hash", false);
106
+ applyArrayFilter(query, evidences, "evidences", true);
106
107
  applyArrayFilter(query, rollups, "rollups", true);
107
108
  applyArrayFilter(query, stakes, "stakes", true);
108
109
  applyArrayFilter(query, delegations, "delegations", true);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/indexdb-memory",
3
3
  "description": "OCAP indexdb adapter that uses memory as backend, just for test purpose",
4
- "version": "1.31.1",
4
+ "version": "1.31.2",
5
5
  "type": "module",
6
6
  "author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
7
7
  "bugs": {
@@ -15,7 +15,7 @@
15
15
  "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)"
16
16
  ],
17
17
  "devDependencies": {
18
- "@ocap/indexdb-test": "1.31.1",
18
+ "@ocap/indexdb-test": "1.31.2",
19
19
  "@types/debug": "^4.1.12",
20
20
  "@types/lodash": "^4.17.10",
21
21
  "@types/lokijs": "^1.5.14",
@@ -79,10 +79,10 @@
79
79
  },
80
80
  "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e",
81
81
  "dependencies": {
82
- "@arcblock/did": "1.31.1",
83
- "@ocap/indexdb": "1.31.1",
84
- "@ocap/types": "1.31.1",
85
- "@ocap/util": "1.31.1",
82
+ "@arcblock/did": "1.31.2",
83
+ "@ocap/indexdb": "1.31.2",
84
+ "@ocap/types": "1.31.2",
85
+ "@ocap/util": "1.31.2",
86
86
  "debug": "^4.4.3",
87
87
  "lodash": "^4.17.23",
88
88
  "lokijs": "^1.5.12"