Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 8.0.0-canary.17 to 8.0.0-canary.18

22

api/api/security.js

@@ -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 } },

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": "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

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