This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/bfj/src/datastream.js

18 lines
406 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
'use strict'
const check = require('check-types')
const BfjStream = require('./stream')
const util = require('util')
util.inherits(DataStream, BfjStream)
module.exports = DataStream
function DataStream (read, options) {
if (check.not.instanceStrict(this, DataStream)) {
return new DataStream(read, options)
}
return BfjStream.call(this, read, Object.assign({ objectMode: true }, options))
}