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

s3-download-stream

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3-download-stream - npm Package Compare versions

Comparing version 1.0.0 to 1.1.1

6

index.js

@@ -47,3 +47,2 @@ var Readable = require('stream').Readable;

self.done = result.data === null;
if (!self.done) self.done = result.contentLength < self.chunkSize;
self.push(result.data);

@@ -54,3 +53,2 @@ }

S3Readable.prototype._read = function(numBytes) {
if (this.done) return;
var toQueue = this.concurrency - this.queue._queue.length;

@@ -64,3 +62,3 @@ for (var i = 0; i < toQueue; ++i)

var params = clone(this.params)
var rng = params.Range = range(from, numBytes);
var rng = params.Range = range(from, numBytes)
var req = self.client.getObject(params, function(err, res){

@@ -71,3 +69,3 @@ // range is past EOF, can return safely

var contentLength = +res.ContentLength;
var data = contentLength === 0 ? null : res.Body;
var data = contentLength === 0? null : res.Body;
done(null, {range: rng, data: data, contentLength: contentLength});

@@ -74,0 +72,0 @@ });

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

],
"version": "1.0.0",
"version": "1.1.1",
"license": "MIT",

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

# s3-download-stream
[![Build Status](https://travis-ci.org/jb55/s3-download-stream.svg)](https://travis-ci.org/jb55/s3-download-stream)
Very fast concurrent + streaming downloads from S3

@@ -5,0 +7,0 @@

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