@elastic/elasticsearch
Advanced tools
Comparing version 5.6.16 to 5.6.17
@@ -79,5 +79,7 @@ /* | ||
buildRequestObject(params: any): http.ClientRequestArgs; | ||
// @ts-ignore | ||
[inspect.custom](object: any, options: InspectOptions): string; | ||
toJSON(): any; | ||
} | ||
export {}; |
@@ -194,3 +194,4 @@ /* | ||
origin: url.origin, | ||
port: url.port, | ||
// https://github.com/elastic/elasticsearch-js/issues/843 | ||
port: url.port !== '' ? url.port : undefined, | ||
headers: this.headers, | ||
@@ -242,2 +243,15 @@ auth: !!url.username === true || !!url.password === true | ||
} | ||
toJSON () { | ||
return { | ||
url: this.url, | ||
id: this.id, | ||
headers: this.headers, | ||
deadCount: this.deadCount, | ||
resurrectTimeout: this.resurrectTimeout, | ||
_openRequests: this._openRequests, | ||
status: this.status, | ||
roles: this.roles | ||
} | ||
} | ||
} | ||
@@ -244,0 +258,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html", | ||
"version": "5.6.16", | ||
"version": "5.6.17", | ||
"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
652709
16945