Comparing version 0.9.5 to 0.9.6
@@ -37,3 +37,3 @@ var Stream = require('stream'); | ||
var p = Stream.PassThrough(); | ||
var count = 0,done,packet,self= this; | ||
var count = 0,done,needmore,packet,self= this; | ||
@@ -56,2 +56,6 @@ function pull() { | ||
var len = self.buffer.length - eof.length; | ||
if (len < 0) { | ||
len = self.buffer.length; | ||
needmore = true; | ||
} | ||
packet = self.buffer.slice(0,len); | ||
@@ -61,4 +65,4 @@ self.buffer = self.buffer.slice(len); | ||
} | ||
p.write(packet,function() { | ||
if (self.buffer.length === (eof.length || 0) && | ||
if (!this.__ended) p.write(packet,function() { | ||
if ((self.buffer.length === (eof.length || 0) || needmore) && | ||
typeof self.cb === strFunction && | ||
@@ -65,0 +69,0 @@ packet.length !== 0 |
{ | ||
"name": "unzipper", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "Unzip cross-platform streaming API ", | ||
@@ -5,0 +5,0 @@ "author": "Evan Oxfeld <eoxfeld@gmail.com>", |
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
39032
809