Socket
Socket
Sign inDemoInstall

@elastic/elasticsearch-canary

Package Overview
Dependencies
Maintainers
75
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/elasticsearch-canary - npm Package Compare versions

Comparing version 7.15.0-canary.3 to 7.16.0-canary.1

22

api/api/security.js

@@ -1035,2 +1035,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) {

@@ -1232,2 +1253,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 } },

@@ -1234,0 +1256,0 @@ saml_complete_logout: { get () { return this.samlCompleteLogout } },

4

index.js

@@ -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": "7.15.0-canary.3",
"versionCanary": "7.15.0-canary.3",
"version": "7.16.0-canary.1",
"versionCanary": "7.16.0-canary.1",
"keywords": [

@@ -107,3 +107,3 @@ "elasticsearch",

},
"commitHash": "791cfdb1"
"commitHash": "65fabb26"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc