tar-stream
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -1,2 +0,1 @@ | ||
var stream = require('stream'); | ||
var util = require('util'); | ||
@@ -6,4 +5,4 @@ var bl = require('bl'); | ||
var Writable = stream.Writable || require('readable-stream').Writable; | ||
var PassThrough = stream.PassThrough || require('readable-stream').PassThrough; | ||
var Writable = require('readable-stream').Writable; | ||
var PassThrough = require('readable-stream').PassThrough; | ||
@@ -10,0 +9,0 @@ var noop = function() {}; |
14
pack.js
@@ -1,2 +0,1 @@ | ||
var stream = require('stream'); | ||
var util = require('util'); | ||
@@ -6,4 +5,5 @@ var eos = require('end-of-stream'); | ||
var Readable = stream.Readable || require('readable-stream').Readable; | ||
var Writable = stream.Writable || require('readable-stream').Writable; | ||
var Readable = require('readable-stream').Readable; | ||
var Writable = require('readable-stream').Writable; | ||
var PassThrough = require('readable-stream').PassThrough; | ||
@@ -89,7 +89,7 @@ var END_OF_TAR = new Buffer(1024); | ||
var sink = new Sink(this); | ||
this._encode(header); | ||
this._stream = stream; | ||
this._stream = sink; | ||
var sink = new Sink(this); | ||
eos(sink, function(err) { | ||
@@ -179,2 +179,2 @@ self._stream = null; | ||
module.exports = Pack; | ||
module.exports = Pack; |
{ | ||
"name": "tar-stream", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"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", |
120857