tar-stream
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -42,6 +42,3 @@ var stream = require('stream'); | ||
self._locked = false; | ||
if (err) { | ||
self.emit('error', err); | ||
return self.destroy(); | ||
} | ||
if (err) return self.destroy(err); | ||
if (!self._stream) oncontinue(); | ||
@@ -94,5 +91,7 @@ }; | ||
Extract.prototype.destroy = function() { | ||
Extract.prototype.destroy = function(err) { | ||
if (this._destroyed) return; | ||
this._destroyed = true; | ||
if (err) this.emit('error', err); | ||
this.emit('close'); | ||
@@ -99,0 +98,0 @@ if (this._stream) this._stream.emit('close'); |
@@ -123,5 +123,7 @@ var stream = require('stream'); | ||
Pack.prototype.destroy = function() { | ||
Pack.prototype.destroy = function(err) { | ||
if (this._destroyed) return; | ||
this._destroyed = true; | ||
if (err) this.emit('error', err); | ||
this.emit('close'); | ||
@@ -128,0 +130,0 @@ if (this._stream && this._stream.destroy) this._stream.destroy(); |
{ | ||
"name": "tar-stream", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "tar-stream is a streaming tar parser and generator and nothing else. It is streams2 and operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com:mafintosh/tar-stream.git", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
45564
3
797