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

Protect against parsing empty strings as JSON in npm source #300

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

jonabc
Copy link
Contributor

@jonabc jonabc commented Aug 4, 2020

Fixes #297

This stops enumeration of the npm source and notifies the user that an error was encountered when a JSON parser error is encountered. This doesn't affect all cases when npm list returns an error - if valid JSON is still output to stdout then the npm source should continue to function. This only handles cases when what is returned via stdout is invalid for further use.

@jonabc jonabc force-pushed the npm-json-parse-error branch from 509ebbe to f334513 Compare August 4, 2020 20:45
@jonabc jonabc merged commit 22cc40c into master Aug 4, 2020
@jonabc jonabc deleted the npm-json-parse-error branch August 4, 2020 21:39
@jonabc jonabc mentioned this pull request Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Parse error running licensed list
1 participant