@elastic/elasticsearch
Advanced tools
Comparing version 6.8.4 to 6.8.5
@@ -104,4 +104,4 @@ // Licensed to Elasticsearch B.V under one or more agreements. | ||
// TODO: remove username and password here in 8 | ||
username: string; | ||
password: string; | ||
username?: string; | ||
password?: string; | ||
} | ||
@@ -108,0 +108,0 @@ } |
@@ -84,3 +84,3 @@ // Licensed to Elasticsearch B.V under one or more agreements. | ||
export interface TransportRequestOptions { | ||
ignore?: [number]; | ||
ignore?: number[]; | ||
requestTimeout?: number | string; | ||
@@ -87,0 +87,0 @@ maxRetries?: number; |
@@ -112,3 +112,3 @@ // Licensed to Elasticsearch B.V under one or more agreements. | ||
if (meta.connection === null) { | ||
return callback(new NoLivingConnectionsError('There are not living connections'), result) | ||
return callback(new NoLivingConnectionsError('There are no living connections'), result) | ||
} | ||
@@ -134,11 +134,13 @@ | ||
} | ||
headers['Content-Type'] = headers['Content-Type'] || 'application/json' | ||
if (compression === 'gzip') { | ||
if (isStream(params.body) === false) { | ||
params.body = intoStream(params.body).pipe(createGzip()) | ||
} else { | ||
params.body = params.body.pipe(createGzip()) | ||
if (params.body !== '') { | ||
headers['Content-Type'] = headers['Content-Type'] || 'application/json' | ||
if (compression === 'gzip') { | ||
if (isStream(params.body) === false) { | ||
params.body = intoStream(params.body).pipe(createGzip()) | ||
} else { | ||
params.body = params.body.pipe(createGzip()) | ||
} | ||
headers['Content-Encoding'] = compression | ||
} | ||
headers['Content-Encoding'] = compression | ||
} | ||
@@ -145,0 +147,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html", | ||
"version": "6.8.4", | ||
"version": "6.8.5", | ||
"keywords": [ | ||
@@ -10,0 +10,0 @@ "elasticsearch", |
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
954955
25110