then-read-stream
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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 { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100604
3021
11