🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

unzipper

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unzipper - npm Package Compare versions

Comparing version

to
0.9.6

10

lib/PullStream.js

@@ -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>",