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

@elastic/elasticsearch

Package Overview
Dependencies
Maintainers
61
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/elasticsearch - npm Package Compare versions

Comparing version 7.5.0 to 7.5.1

4

index.d.ts

@@ -104,4 +104,4 @@ // Licensed to Elasticsearch B.V under one or more agreements.

// TODO: remove username and password here in 8
username: string;
password: string;
username?: string;
password?: string;
}

@@ -108,0 +108,0 @@ }

@@ -84,3 +84,3 @@ // Licensed to Elasticsearch B.V under one or more agreements.

export interface TransportRequestOptions {
ignore?: [number];
ignore?: number[];
requestTimeout?: number | string;

@@ -87,0 +87,0 @@ maxRetries?: number;

@@ -112,3 +112,3 @@ // Licensed to Elasticsearch B.V under one or more agreements.

if (meta.connection === null) {
return callback(new NoLivingConnectionsError('There are not living connections'), result)
return callback(new NoLivingConnectionsError('There are no living connections'), result)
}

@@ -134,11 +134,13 @@

}
headers['Content-Type'] = headers['Content-Type'] || 'application/json'
if (compression === 'gzip') {
if (isStream(params.body) === false) {
params.body = intoStream(params.body).pipe(createGzip())
} else {
params.body = params.body.pipe(createGzip())
if (params.body !== '') {
headers['Content-Type'] = headers['Content-Type'] || 'application/json'
if (compression === 'gzip') {
if (isStream(params.body) === false) {
params.body = intoStream(params.body).pipe(createGzip())
} else {
params.body = params.body.pipe(createGzip())
}
headers['Content-Encoding'] = compression
}
headers['Content-Encoding'] = compression
}

@@ -145,0 +147,0 @@

@@ -7,3 +7,3 @@ {

"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html",
"version": "7.5.0",
"version": "7.5.1",
"keywords": [

@@ -23,3 +23,3 @@ "elasticsearch",

"test:behavior": "tap test/behavior/*.test.js -t 300 --no-coverage",
"test:integration": "tap test/integration/index.js -T --no-coverage",
"test:integration": "node test/integration/index.js",
"test:types": "tsc --project ./test/types/tsconfig.json",

@@ -49,2 +49,3 @@ "test:coverage": "nyc tap test/unit/*.test.js test/behavior/*.test.js -t 300 && nyc report --reporter=text-lcov > coverage.lcov && codecov",

"dezalgo": "^1.0.3",
"fast-deep-equal": "^3.1.1",
"js-yaml": "^3.13.1",

@@ -51,0 +52,0 @@ "license-checker": "^25.0.1",

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