Socket
Socket
Sign inDemoInstall

then-read-stream

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

then-read-stream - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

5

lib/index.js

@@ -59,2 +59,5 @@ "use strict";

StreamReader.prototype.read = function (buffer, offset, length) {
if (length === 0) {
return Promise.resolve(0);
}
if (this.peekQueue.length > 0) {

@@ -128,3 +131,3 @@ var peekData_1 = this.peekQueue.shift();

readBuffer.copy(this.request.buffer, this.request.offset);
this.request.deferred.resolve(this.request.length);
this.request.deferred.resolve(readBuffer.length);
}

@@ -131,0 +134,0 @@ else {

3

package.json
{
"name": "then-read-stream",
"version": "1.0.2",
"version": "1.0.3",
"description": "Read from a readable stream just like a file",

@@ -39,2 +39,3 @@ "author": {

"coveralls": "^2.13.1",
"fs-extra": "^4.0.1",
"mocha": "^3.5.0",

@@ -41,0 +42,0 @@ "nyc": "^11.1.0",

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