Skip to content
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

Fix cb() never called in search with --json option #2831

Closed
wants to merge 1 commit into from

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants