elasticsearch
Advanced tools
Comparing version 13.1.2 to 13.2.0
@@ -10,3 +10,3 @@ { | ||
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html", | ||
"version": "13.1.2", | ||
"version": "13.2.0", | ||
"keywords": [ | ||
@@ -13,0 +13,0 @@ "elasticsearch", |
@@ -1,2 +0,2 @@ | ||
# elasticsearch.js 13.1.2 | ||
# elasticsearch.js 13.2.0 | ||
@@ -3,0 +3,0 @@ The official low-level Elasticsearch client for Node.js and the browser. |
@@ -76,2 +76,14 @@ /** | ||
if (config.hasOwnProperty('sniffedNodesFilterPath')) { | ||
self.sniffedNodesFilterPath = config.sniffedNodesFilterPath; | ||
} else { | ||
self.sniffedNodesFilterPath = [ | ||
'nodes.*.http.publish_address', | ||
'nodes.*.name', | ||
'nodes.*.hostname', | ||
'nodes.*.host', | ||
'nodes.*.version', | ||
].join(','); | ||
} | ||
if (config.sniffOnStart) { | ||
@@ -400,2 +412,3 @@ self.sniff(); | ||
var sniffedNodesProtocol = this.sniffedNodesProtocol; | ||
var sniffedNodesFilterPath = this.sniffedNodesFilterPath; | ||
@@ -407,11 +420,3 @@ // make cb a function if it isn't | ||
path: this.sniffEndpoint, | ||
query: { | ||
filter_path: [ | ||
'nodes.*.http.publish_address', | ||
'nodes.*.name', | ||
'nodes.*.hostname', | ||
'nodes.*.host', | ||
'nodes.*.version', | ||
].join(','), | ||
}, | ||
query: { filter_path: sniffedNodesFilterPath }, | ||
method: 'GET' | ||
@@ -418,0 +423,0 @@ }, function (err, resp, status) { |
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
76265
2705002
59