add readable-stream fallback for readable and writable.

This commit is contained in:
Chris Talkington 2014-01-05 16:32:35 -06:00
parent a4b45be319
commit 645aeb9538
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@ var util = require('util');
var bl = require('bl');
var headers = require('./headers');
var Writable = stream.Writable;
var Writable = stream.Writable || require('readable-stream').Writable;
var PassThrough = stream.PassThrough || require('readable-stream').PassThrough;
var noop = function() {};

View file

@ -3,8 +3,8 @@ var util = require('util');
var eos = require('end-of-stream');
var headers = require('./headers');
var Readable = stream.Readable;
var Writable = stream.Writable;
var Readable = stream.Readable || require('readable-stream').Readable;
var Writable = stream.Writable || require('readable-stream').Writable;
var END_OF_TAR = new Buffer(1024);
END_OF_TAR.fill(0);