@ocap/indexdb-elasticsearch 1.17.7 → 1.17.10
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/table/base.js +2 -0
- package/package.json +7 -7
package/lib/table/base.js
CHANGED
|
@@ -144,6 +144,8 @@ class ESIndex extends BaseIndex {
|
|
|
144
144
|
index: this.name,
|
|
145
145
|
id: docId,
|
|
146
146
|
retry_on_conflict: 5,
|
|
147
|
+
// partial doc merge is supported in opensearch, so we just pass the updates here
|
|
148
|
+
// @link https://www.elastic.co/guide/en/elasticsearch/reference/7.16/docs-update.html#update-api-desc
|
|
147
149
|
body: { doc: { ...updates } },
|
|
148
150
|
});
|
|
149
151
|
debug(`update ${this.name}`, { docId, result: body.result });
|
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.17.
|
|
4
|
+
"version": "1.17.10",
|
|
5
5
|
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/ArcBlock/asset-chain/issues",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"dotenv-flow": "^3.2.0",
|
|
18
|
-
"jest": "^27.
|
|
18
|
+
"jest": "^27.5.1"
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/ArcBlock/asset-chain/tree/master/indexdb/elasticsearch",
|
|
21
21
|
"keywords": [
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"test": "jest --forceExit --detectOpenHandles",
|
|
39
39
|
"coverage": "npm run test -- --coverage"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "062c4f18a4e6d370cb1659980c602e8494969dc3",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcblock/did": "1.17.
|
|
43
|
+
"@arcblock/did": "1.17.10",
|
|
44
44
|
"@elastic/elasticsearch": "7.13.0",
|
|
45
|
-
"@ocap/indexdb": "1.17.
|
|
46
|
-
"@ocap/util": "1.17.
|
|
45
|
+
"@ocap/indexdb": "1.17.10",
|
|
46
|
+
"@ocap/util": "1.17.10",
|
|
47
47
|
"axios": "^0.25.0",
|
|
48
48
|
"bn.js": "^5.2.1",
|
|
49
|
-
"debug": "^4.3.
|
|
49
|
+
"debug": "^4.3.4",
|
|
50
50
|
"lodash": "^4.17.21"
|
|
51
51
|
}
|
|
52
52
|
}
|