node-stream-zip
Advanced tools
Comparing version 1.8.2 to 1.9.0
@@ -158,2 +158,3 @@ /** | ||
centralDirectory, | ||
closed, | ||
@@ -581,3 +582,6 @@ entries = config.storeEntries !== false ? {} : null, | ||
this.close = function(callback) { | ||
if (fd) { | ||
if (closed) { | ||
callback(); | ||
} else { | ||
closed = true; | ||
fs.close(fd, function(err) { | ||
@@ -588,6 +592,11 @@ fd = null; | ||
}); | ||
} else if (callback) { | ||
callback(); | ||
} | ||
}; | ||
var originalEmit = events.EventEmitter.prototype.emit; | ||
this.emit = function() { | ||
if (!closed) { | ||
return originalEmit.apply(this, arguments); | ||
} | ||
}; | ||
}; | ||
@@ -594,0 +603,0 @@ |
{ | ||
"name": "node-stream-zip", | ||
"version": "1.8.2", | ||
"version": "1.9.0", | ||
"description": "node.js library for reading and extraction of ZIP archives", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
43348
940