Upgrade deps to their latest versions, and fix length bug#18
Upgrade deps to their latest versions, and fix length bug#18tmoitie wants to merge 2 commits intofreeall:masterfrom
Conversation
|
Super that you updated the dependencies. But I'm not sure it makes sense that a default value for |
|
Because length is set in the pipe event, and if it defaults to 0 it always gets caught in the first condition. It might be that I went around this the wrong way and the bug is actually that first condition. |
|
I'm not sure what you're doing, but couldn't you check if |
|
I don't know the module well enough to answer that. It would also fix the bug if you did |
|
So I can't exactly remember why we have the |
|
@tmoitie Do you have an example where this doesn't work as expected? |
|
@freeall yep that check should do a truthiness check on opts.length as well |
|
Like that @mafintosh? |

When I ran the test suite I got nothing from length, because the default length was 0 and the early return from the pipe listener was
if (typeof length === 'number') return;I've also updated all deps to their latest versions.