Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
//
// So we are just going to manually make this pass...
//
// https://github.com/nodejs/node/issues/8828
//
// womp womp
if (type === 'writable' && stream === process.stdout) {
return true;
}
if (!isStream[type](stream)) {
throw new TypeError(errStr);
}
};
isStream.assertObjectStream = function assertObjectStream(stream, type, errStr) {
isStream.assertStream(stream, type, errStr);
if (type === 'readable') {
assertObjectMode(stream, '_readableState', errStr);
} else if (type === 'writable') {
assertObjectMode(stream, '_writableState', errStr);
}
};
module.exports = isStream;