Comparing version 0.10.9 to 0.10.10
@@ -11,11 +11,11 @@ var Promise = require('bluebird'); | ||
return new Promise(function(resolve,reject) { | ||
var buffer = Buffer.from(''), | ||
bufferStream = Stream.Transform() | ||
.on('finish',function() { | ||
resolve(buffer); | ||
}) | ||
.on('error',reject); | ||
var chunks = []; | ||
var bufferStream = Stream.Transform() | ||
.on('finish',function() { | ||
resolve(Buffer.concat(chunks)); | ||
}) | ||
.on('error',reject); | ||
bufferStream._transform = function(d,e,cb) { | ||
buffer = Buffer.concat([buffer,d]); | ||
chunks.push(d); | ||
cb(); | ||
@@ -26,2 +26,2 @@ }; | ||
}); | ||
}; | ||
}; |
{ | ||
"name": "unzipper", | ||
"version": "0.10.9", | ||
"version": "0.10.10", | ||
"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
1001
51590