@cumulus/es-client 9.2.3 → 9.4.1
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/indexer.js +7 -1
- package/package.json +8 -8
package/indexer.js
CHANGED
|
@@ -74,7 +74,13 @@ async function genericRecordUpdate(esClient, id, doc, index, type, parent) {
|
|
|
74
74
|
|
|
75
75
|
// adding or replacing record to ES
|
|
76
76
|
const actualEsClient = esClient || (await Search.es());
|
|
77
|
-
|
|
77
|
+
let indexResponse;
|
|
78
|
+
try {
|
|
79
|
+
indexResponse = await actualEsClient.index(params);
|
|
80
|
+
} catch (error) {
|
|
81
|
+
logger.error(`Error thrown on index ${JSON.stringify(error)}`);
|
|
82
|
+
throw error;
|
|
83
|
+
}
|
|
78
84
|
return indexResponse.body;
|
|
79
85
|
}
|
|
80
86
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/es-client",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.1",
|
|
4
4
|
"description": "Utilities for working with Elasticsearch",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CUMULUS",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"author": "Cumulus Authors",
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@cumulus/common": "9.
|
|
34
|
-
"@cumulus/errors": "9.
|
|
35
|
-
"@cumulus/logger": "9.
|
|
36
|
-
"@cumulus/message": "9.
|
|
33
|
+
"@cumulus/common": "9.4.1",
|
|
34
|
+
"@cumulus/errors": "9.4.1",
|
|
35
|
+
"@cumulus/logger": "9.4.1",
|
|
36
|
+
"@cumulus/message": "9.4.1",
|
|
37
37
|
"@elastic/elasticsearch": "^5.6.20",
|
|
38
38
|
"aws-elasticsearch-connector": "8.2.0",
|
|
39
39
|
"aws-sdk": "^2.585.0",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"p-limit": "^1.2.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@cumulus/aws-client": "9.
|
|
46
|
-
"@cumulus/test-data": "9.
|
|
45
|
+
"@cumulus/aws-client": "9.4.1",
|
|
46
|
+
"@cumulus/test-data": "9.4.1",
|
|
47
47
|
"p-each-series": "^2.1.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "fce4415918c43a6a14d46ac7d9572f5a97a98a45"
|
|
50
50
|
}
|