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

npm / arborist / #979 / 1

Build:
Build:
LAST BUILD BRANCH:
DEFAULT BRANCH: master
Ran 06 May 2021 12:29AM UTC
Files 39
Run time 4s
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

06 May 2021 12:24AM UTC coverage: 100.0%. Remained the same
#979.1

push

isaacs
audit: support alias specs and root package names

When the root package is a folder like '@magic/semver', the audit logic
would look at node.name, and see it as 'semver', and then report it as a
vulnerability.

Additionally, a dependency like 'npm:mkdirp@0.5.1' would not be detected
as a vulnerability, because the alias spec would never match against the
semver range (assuming that the dependency name even was found as a
vulnerability in the first place).

The fix here is:

1. Add Node.packageName getter, which returns the 'name' field from the
  node's package object.
2. Add this field as a queryable field in the inventory.
3. Base audits off of the packageName field, rather than the name field.

Fix: https://github.com/npm/cli/issues/3166

3028 of 3028 branches covered (100.0%)

Branch coverage included in aggregate %.

4106 of 4106 relevant lines covered (100.0%)

564.2 hits per line

Source Files on job #979.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 979
  • 002ddaf2 on github
  • Prev Job for on (##978.1)
  • Next Job for on (##980.1)
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

© 2026 Coveralls, Inc