@elastic/elasticsearch
Advanced tools
Comparing version 8.8.0 to 8.8.1
@@ -23,3 +23,3 @@ "use strict"; | ||
const acceptedPath = ['index']; | ||
const acceptedBody = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']; | ||
const acceptedBody = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'rank', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']; | ||
const querystring = {}; | ||
@@ -26,0 +26,0 @@ // @ts-expect-error |
@@ -701,2 +701,3 @@ "use strict"; | ||
const { items } = result; | ||
let indexSlice = 0; | ||
for (let i = 0, len = items.length; i < len; i++) { | ||
@@ -708,3 +709,2 @@ const action = items[i]; | ||
(0, assert_1.default)(responseItem !== undefined, 'The responseItem is undefined, please file a bug report'); | ||
const indexSlice = operation !== 'delete' ? i * 2 : i; | ||
if (responseItem.status >= 400) { | ||
@@ -738,2 +738,3 @@ // 429 is the only staus code where we might want to retry | ||
} | ||
operation === 'delete' ? indexSlice += 1 : indexSlice += 2; | ||
} | ||
@@ -740,0 +741,0 @@ callback(null, retry); |
{ | ||
"name": "@elastic/elasticsearch", | ||
"version": "8.8.0", | ||
"versionCanary": "8.8.0-canary.2", | ||
"version": "8.8.1", | ||
"versionCanary": "8.8.1-canary.2", | ||
"description": "The official Elasticsearch client for Node.js", | ||
@@ -89,3 +89,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@elastic/transport": "^8.3.1", | ||
"@elastic/transport": "^8.3.2", | ||
"tslib": "^2.4.0" | ||
@@ -92,0 +92,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2382578
48966
108
1
1
0
18
Updated@elastic/transport@^8.3.2