Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createReadStream = opts => {
opts = { keys: true, values: true, ...opts }
return new IteratorStream(this.iterator(opts), opts)
}
}
function ReadStream (options, makeData) {
if (!(this instanceof ReadStream)) {
return new ReadStream(options, makeData);
}
IteratorStream.call(this, null, options);
this._waiting = false;
this._makeData = makeData;
}
ReadStream.prototype._read = function () {
if (!this._iterator) {
this._waiting = true;
return;
}
IteratorStream.prototype._read.call(this);
}