Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: npm outdated parsing invalid specs
This commit fixes a problem in which npm outdated was breaking when trying to read an invalid semver range spec defined for a given installed dep by performing the `npm-package-arg` parsing within a try/catch block instead of expecting to read properties from the returned instance. Also, adds the missing test for that specific line of code. Fixes #1703 PR-URL: #1857 Credit: @ruyadorno Close: #1857 Reviewed-by: @nlf
- Loading branch information