add readable-stream fallback for readable and writable.
This commit is contained in:
parent
a4b45be319
commit
645aeb9538
2 changed files with 3 additions and 3 deletions
|
@ -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() {};
|
||||
|
|
4
pack.js
4
pack.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue