We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
stream.compose
1 parent 3c0ec61 commit 779bb7aCopy full SHA for 779bb7a
1 file changed
lib/internal/streams/duplexify.js
@@ -84,6 +84,9 @@ module.exports = function duplexify(body, name) {
84
85
if (typeof body === 'function') {
86
const { value, write, final, destroy } = fromAsyncGen(body);
87
+ if (isDuplexNodeStream(value)) {
88
+ return value;
89
+ }
90
91
if (isIterable(value)) {
92
return from(Duplexify, value, {
0 commit comments