@elastic/elasticsearch-canary
Advanced tools
Comparing version 8.0.0-canary.17 to 8.0.0-canary.18
@@ -1077,2 +1077,23 @@ /* | ||
SecurityApi.prototype.queryApiKeys = function securityQueryApiKeysApi (params, options, callback) { | ||
;[params, options, callback] = normalizeArguments(params, options, callback) | ||
let { method, body, ...querystring } = params | ||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring) | ||
let path = '' | ||
if (method == null) method = body == null ? 'GET' : 'POST' | ||
path = '/' + '_security' + '/' + '_query' + '/' + 'api_key' | ||
// build request object | ||
const request = { | ||
method, | ||
path, | ||
body: body || '', | ||
querystring | ||
} | ||
return this.transport.request(request, options, callback) | ||
} | ||
SecurityApi.prototype.samlAuthenticate = function securitySamlAuthenticateApi (params, options, callback) { | ||
@@ -1276,2 +1297,3 @@ ;[params, options, callback] = normalizeArguments(params, options, callback) | ||
put_user: { get () { return this.putUser } }, | ||
query_api_keys: { get () { return this.queryApiKeys } }, | ||
saml_authenticate: { get () { return this.samlAuthenticate } }, | ||
@@ -1278,0 +1300,0 @@ saml_complete_logout: { get () { return this.samlCompleteLogout } }, |
@@ -326,5 +326,5 @@ /* | ||
if (Array.isArray(node)) { | ||
return node.some((n) => new URL(n).protocol === 'http:') | ||
return node.some((n) => (typeof n === 'string' ? new URL(n).protocol : n.url.protocol) === 'http:') | ||
} else { | ||
return new URL(node).protocol === 'http:' | ||
return (typeof node === 'string' ? new URL(node).protocol : node.url.protocol) === 'http:' | ||
} | ||
@@ -331,0 +331,0 @@ } |
@@ -562,3 +562,6 @@ /* | ||
this[kProductCheck] = 2 | ||
process.emitWarning('The client is unable to verify that the server is Elasticsearch due to security privileges on the server side. Some functionality may not be compatible if the server is running an unsupported product.') | ||
process.emitWarning( | ||
'The client is unable to verify that the server is Elasticsearch due to security privileges on the server side. Some functionality may not be compatible if the server is running an unsupported product.', | ||
'ProductNotSupportedSecurityError' | ||
) | ||
productCheckEmitter.emit('product-check', null, true) | ||
@@ -565,0 +568,0 @@ } else { |
@@ -14,4 +14,4 @@ { | ||
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html", | ||
"version": "8.0.0-canary.17", | ||
"versionCanary": "8.0.0-canary.17", | ||
"version": "8.0.0-canary.18", | ||
"versionCanary": "8.0.0-canary.18", | ||
"keywords": [ | ||
@@ -107,3 +107,3 @@ "elasticsearch", | ||
}, | ||
"commitHash": "08b80844" | ||
"commitHash": "a0dcace7" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2212744
36094