wallet-core/node_modules/readable-stream/readable.js

17 lines
630 B
JavaScript
Raw Normal View History

2016-11-03 01:33:53 +01:00
var Stream = (function (){
try {
return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify
} catch(_){}
}());
2016-10-10 03:43:44 +02:00
exports = module.exports = require('./lib/_stream_readable.js');
2016-11-03 01:33:53 +01:00
exports.Stream = Stream || exports;
2016-10-10 03:43:44 +02:00
exports.Readable = exports;
exports.Writable = require('./lib/_stream_writable.js');
exports.Duplex = require('./lib/_stream_duplex.js');
exports.Transform = require('./lib/_stream_transform.js');
exports.PassThrough = require('./lib/_stream_passthrough.js');
2016-11-03 01:33:53 +01:00
if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {
module.exports = Stream;
2016-10-10 03:43:44 +02:00
}