@ocap/indexdb-elasticsearch 1.13.86 → 1.14.3

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.
Files changed (2) hide show
  1. package/lib/db.js +8 -1
  2. package/package.json +5 -5
package/lib/db.js CHANGED
@@ -456,7 +456,14 @@ class ESIndexDB extends BaseIndexDB {
456
456
  conditions.push({
457
457
  nested: {
458
458
  path: 'foreignToken',
459
- query: { bool: { must: { term: { 'foreignToken.contractAddress': toChecksumAddress(foreignTokenAddr) } } } },
459
+ query: {
460
+ bool: {
461
+ should: [
462
+ { match: { 'foreignToken.contractAddress': toChecksumAddress(foreignTokenAddr) } },
463
+ { match: { 'foreignToken.contractAddress': foreignTokenAddr.toLowerCase() } },
464
+ ],
465
+ },
466
+ },
460
467
  },
461
468
  });
462
469
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/indexdb-elasticsearch",
3
3
  "description": "OCAP indexdb adapter that uses elasticsearch as backend",
4
- "version": "1.13.86",
4
+ "version": "1.14.3",
5
5
  "author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ArcBlock/asset-chain/issues",
@@ -38,12 +38,12 @@
38
38
  "test": "jest --forceExit --detectOpenHandles",
39
39
  "coverage": "npm run test -- --coverage"
40
40
  },
41
- "gitHead": "c13c697b2019329f04f1dc54d3ab9172c67f1ae7",
41
+ "gitHead": "05775365b339c77fa517d1a3180d347fee66d146",
42
42
  "dependencies": {
43
- "@arcblock/did": "1.13.86",
43
+ "@arcblock/did": "1.14.3",
44
44
  "@elastic/elasticsearch": "7.13.0",
45
- "@ocap/indexdb": "1.13.86",
46
- "@ocap/util": "1.13.86",
45
+ "@ocap/indexdb": "1.14.3",
46
+ "@ocap/util": "1.14.3",
47
47
  "axios": "^0.21.4",
48
48
  "bn.js": "^5.2.0",
49
49
  "debug": "^4.3.2",