Comparing version 0.7.1 to 0.7.2
@@ -16,2 +16,7 @@ var Stream = require('stream'); | ||
this.buffer = new Buffer(''); | ||
var self = this; | ||
self.on('finish',function() { | ||
self.finished = true; | ||
self.emit('chunk',false); | ||
}); | ||
} | ||
@@ -74,7 +79,7 @@ | ||
if (!done) { | ||
if (self.flushcb) { | ||
if (self.finished) { | ||
self.removeListener('chunk',pull); | ||
self.emit('error','FILE_ENDED'); | ||
p.emit('error','FILE_ENDED'); | ||
this.__ended = true; | ||
return; | ||
} | ||
@@ -106,3 +111,6 @@ self.next(); | ||
return new Promise(function(resolve,reject) { | ||
if (self.finished) | ||
return reject('FILE_ENDED'); | ||
self.stream(eof,includeEof) | ||
.on('error',reject) | ||
.pipe(concatStream) | ||
@@ -109,0 +117,0 @@ .on('finish',function() {resolve(buffer);}) |
{ | ||
"name": "unzipper", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"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
42665
663