• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

npm / cli / #407
64%
latest: 97%

Build:
Build:
LAST BUILD BRANCH: nlf/arborist-validation
DEFAULT BRANCH: latest
Ran 29 Sep 2020 06:37PM CUT
Jobs 1
Files 129
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#407

push

nlf
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: https://github.com/npm/cli/pull/1857
Credit: @ruyadorno
Close: #1857
Reviewed-by: @nlf

1706 of 2912 branches covered (58.59%)

Branch coverage included in aggregate %.

3331 of 5003 relevant lines covered (66.58%)

12.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #407.1 29 Sep 2020 06:37PM CUT 0
63.64
Source Files on build #407
  • Tree
  • List 129
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/LineBranch HitsBranch Misses
2.5
lib/search/package-filter.js42 17 1 16 1.0 0 23
4.85
lib/search/format-package-stream.js190 67 5 62 1.0 0 36
6.14
lib/profile.js338 177 18 159 1.0 0 116
6.37
lib/owner.js242 127 13 114 1.0 0 77
6.67
lib/org.js143 75 9 66 1.0 0 60
6.67
lib/birthday.js18 13 1 12 1.0 0 2
7.69
lib/utils/spawn.js51 32 4 28 1.0 0 20
8.33
lib/help.js175 97 12 85 1.0 0 47
10.53
lib/utils/read-user-info.js70 35 8 27 1.0 0 41
11.24
lib/help-search.js215 116 20 96 1.0 0 62
Showing 1 to 10 of 129 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 13
  • Next
  • ►
    100.0
    bin/
  • ►
    66.25
    lib/
  • Back to Repo
  • e96f29d5 on github
  • Next Build on release/v7.0.0-beta.13
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc