From ee0ee8242d203878f59d579a5fbd120dcd8d5bba Mon Sep 17 00:00:00 2001 From: Jens Finkhaeuser Date: Tue, 9 Apr 2019 09:43:54 +0200 Subject: [PATCH] Fix Node.js 11 compatibility (#198) Fixes #196 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 82a34612..bf24a209 100644 --- a/index.js +++ b/index.js @@ -945,7 +945,7 @@ module.exports.stream = readableStream => new Promise((resolve, reject) => { readableStream.unshift(chunk); if (stream.pipeline) { - resolve(stream.pipeline(readableStream, pass)); + resolve(stream.pipeline(readableStream, pass, () => {})); } else { resolve(readableStream.pipe(pass)); }