-
Notifications
You must be signed in to change notification settings - Fork 33
Upgrade deps to their latest versions, and fix length bug #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Upgrade deps to their latest versions, and fix length bug #18
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.