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

elasticsearch

Package Overview
Dependencies
Maintainers
2
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch - npm Package Compare versions

Comparing version 10.1.2 to 10.1.3

2

package.json

@@ -10,3 +10,3 @@ {

"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html",
"version": "10.1.2",
"version": "10.1.3",
"browser": {

@@ -13,0 +13,0 @@ "./src/lib/connectors/index.js": "./src/lib/connectors/browser_index.js",

@@ -1,2 +0,2 @@

# elasticsearch.js 10.1.2
# elasticsearch.js 10.1.3

@@ -3,0 +3,0 @@ The official low-level Elasticsearch client for Node.js and the browser.

@@ -15,3 +15,3 @@ /**

if (typeof window !== 'undefined') {
if (typeof window !== 'undefined' && typeof window.location !== 'undefined') {
defaultProto = window.location.protocol;

@@ -18,0 +18,0 @@ btoa = window.btoa;

@@ -13,7 +13,8 @@ var _ = require('./utils');

* @constructor
* @param {string|Object|ArrayOfStrings|ArrayOfObjects} output - Either the level
* to setup a single logger, a full config object for alogger, or an array of
* @param {object} config
* @param {string|Object|ArrayOfStrings|ArrayOfObjects} config.log - Either the level
* to setup a single logger, a full config object for a logger, or an array of
* config objects to use for creating log outputs.
* @param {string} output.level - One of the keys in Log.levels (error, warning, etc.)
* @param {string} output.type - The name of the logger to use for this output
* @param {string|array} config.log.level|config.log.levels - One or more keys in Log.levels (error, warning, etc.)
* @param {string} config.log.type - The name of the logger to use for this output
*/

@@ -200,3 +201,3 @@ function Log(config) {

* can be found in the `src/loggers` directory.
* @param {String|ArrayOfStrings} [config.levels=warning] - The levels to output
* @param {String|ArrayOfStrings} [config.level|config.levels=warning] - The levels to output
* to this logger, when an array is specified no levels other than the ones

@@ -203,0 +204,0 @@ * specified will be listened to. When a string is specified, that and all lower

@@ -125,5 +125,6 @@ /**

* @param {Number} params.requestTimeout - timeout for the entire request (inculding all retries)
* @param {Number} params.maxRetries - number of times the request will be re-run in
* the original node chosen can not be connected to.
* @param {String} params.url - The url for the request
* @param {Number} params.maxRetries - number of times to re-run request if the
* original node chosen can not be connected to.
* @param {string} [params.path="/"] - URL pathname. Do not include query string.
* @param {string|object} [params.query] - Query string.
* @param {String} params.method - The HTTP method for the request

@@ -130,0 +131,0 @@ * @param {String} params.body - The body of the HTTP request

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