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

elasticsearch-scroll-stream

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-scroll-stream - npm Package Compare versions

Comparing version 1.3.3 to 1.3.4

7

lib/elasticsearch-stream.js
const { Readable } = require('stream')
const MAX_URL_LENGTH = 2000;
/**

@@ -56,3 +57,7 @@ * LibElasticsearchScrollStream

if (this._total !== this._counter && !this._forceClose) {
this._client.scroll({ scroll: this._options.scroll, scroll_id: body._scroll_id }, this.getMoreUntilDone)
if (body._scroll_id.length > MAX_URL_LENGTH) {
this._client.scroll({ body: { scroll: this._options.scroll, scroll_id: body._scroll_id } }, this.getMoreUntilDone)
} else {
this._client.scroll({ scroll: this._options.scroll, scroll_id: body._scroll_id }, this.getMoreUntilDone)
}
} else {

@@ -59,0 +64,0 @@ // clearScroll for the current _scroll_id

2

package.json
{
"name": "elasticsearch-scroll-stream",
"version": "1.3.3",
"version": "1.3.4",
"description": "Elasticsearch Scroll query results as a Stream",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

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