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

npm / arborist / #767

Build:
Build:
LAST BUILD BRANCH:
DEFAULT BRANCH: master
Ran 18 Feb 2021 11:05PM UTC
Jobs 1
Files 39
Run time 3s
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
#767

push

isaacs
Unpack shrinkwrapped deps not already unpacked

We loop over the diff.leaves to find all the shrinkwraps that _must_ be
unpacked ahead of time in order to complete the idealTree.  However, if
the idealTree already contains the children of the shrinkwrap-containing
module (because it's been previously installed and saved to a lockfile),
then we saw the hasShrinkwrap flag, and assumed it had already been
unpacked.

This tracks a Set of all nodes unpacked for the purposes of reading
their shrinkwraps, and only skips _those_ modules at unpackNewModules.

Different approach than #233, without adding extra items into the
diff.leaves, which can have the side effect of calling mkdirp more than
necessary.

Close: #233
Fix: https://github.com/npm/cli/issues/2251
Reviewed-by: @nlf

2772 of 2772 branches covered (100.0%)

Branch coverage included in aggregate %.

3791 of 3791 relevant lines covered (100.0%)

567.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #767.1 18 Feb 2021 11:05PM UTC 0
100.0
Source Files on build #767
Detailed source file information is not available for this build.
  • Back to Repo
  • b0e5ce31 on github
  • Prev Build on
  • Next Build on
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