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

zkat / pacote / 365 / 1
82%
latest: 82%

Build:
DEFAULT BRANCH: latest
Ran 05 Apr 2017 08:56AM UTC
Files 33
Run time 2s
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

05 Apr 2017 08:55AM UTC coverage: 68.018% (-2.4%) from 70.432%
365.1

push

travis-ci

web-flow
feat(integrity): replace http client (#72)

Fixes: #75
Fixes: #56
Fixes: #47
Fixes: #41
Fixes: #3

This PR changes pacote over from using npm-registry-client for
its http stuff with a whole layer slapped on top to using
make-fetch-happen. There's some features that are now missing,
but those can be filled in before release.

New features:

* Faster, more robust http client.

* Subresource Integrity support for tarball shasums. `corgi.dist.integrity` will be respected

* `npm-notice` warnings

* `opts.refreshCache` will force a conditional request to make sure the cache is up to date.

BREAKING CHANGE: This PR replaces a pretty fundamental chunk of pacote.

* Caching now follows standard-ish cache rules for http-related requests.

* manifest() no longer includes the `_shasum` field. It's been replaced by `_integrity`, which is a Subresource Integrity hash string containing equivalent data. These strings can be parsed and managed using https://npm.im/ssri.

* Any functions that accepted `opts.digest` and/or `opts.hashAlgorithm` now expect `opts.integrity` instead.

* Packuments and finalized manifests are now cached using sha512. Tarballs can start using that hash (or any other more secure hash) once registries start supporting them: `packument.dist.integrity` will be prioritized over `packument.shasum`.

* If opts.offline is used, a `ENOCACHE` error will be returned.

265 of 378 branches covered (70.11%)

453 of 666 relevant lines covered (68.02%)

14.32 hits per line

Source Files on job 365.1
  • Tree
  • List 0
  • Changed 18
  • Source Changed 11
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 365
  • Travis Job 365.1
  • 189cdd29 on github
  • Prev Job for on latest (#343.1)
  • Next Job for on latest (#366.3)
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