v7.0.0-rc1 support 🚀 (#792)

Support for Elasticsearch `v7.0.0-rc1`
This commit is contained in:
Tomas Della Vedova
2019-03-28 08:32:24 +01:00
committed by GitHub
parent c7675708de
commit 1f6c68df9c
264 changed files with 733 additions and 3156 deletions

View File

@ -51,15 +51,6 @@ function buildCcrGetAutoFollowPattern (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
ccrGetAutoFollowPattern(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// validate headers object
if (options.headers != null && typeof options.headers !== 'object') {
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)