Skip to content

Conversation

@fraqe
Copy link
Contributor

@fraqe fraqe commented Mar 5, 2021

Running npm search using --json option throws a ERR! cb() never called! error. Since version 7, checked on osX and Linux.

This PR fixes it by properly calling Minipass.prototype.end() upon completion in the JSONOutputStream class.

Also add a test case to ensure that search --json output a json

@fraqe fraqe requested a review from a team as a code owner March 5, 2021 19:55
Copy link
Contributor

@isaacs isaacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is obviously correct. Sorry for letting the bug slip through!

@darcyclarke darcyclarke added Bug thing that needs fixing Needs Review Release 7.x work is associated with a specific npm 7 release release: next These items should be addressed in the next release semver:patch semver patch level for changes and removed Bug thing that needs fixing labels Mar 6, 2021
wraithgar pushed a commit that referenced this pull request Mar 9, 2021
@wraithgar wraithgar mentioned this pull request Mar 9, 2021
@wraithgar wraithgar closed this in e0a3a52 Mar 9, 2021
This was referenced Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: next These items should be addressed in the next release Release 7.x work is associated with a specific npm 7 release semver:patch semver patch level for changes

4 participants