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

jamestalmage / caching-transform / 30
100%

Build:
DEFAULT BRANCH: master
Ran 16 May 2016 05:13PM UTC
Jobs 3
Files 1
Run time 33s
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
30

push

travis-ci

jamestalmage
refactor hash() option (#2)

Also bumps a bunch of dependencies, and makes some other minor tweaks.

* xo@^0.15.0

* ava@^0.14.0

* lint test.js

* nyc@^6.4.0

* remove trailing whitespace and fix typo in readme

* replace hash option

Both AVA and nyc use the `hash` option to ensure some extra data is included in
the hash, and to store a mapping from the hash to a file. They also need to
(correctly!) use md5-hex to generate the hash.

This commit replaces the `hash` option by a `hashData` function an an `onHash`
callback.

`hashData` receives the original input and additional data and may
return a string, buffer or array of either. This is then included in the hash.

`onHash` is called with the input, additional data, and the resulting hash.
Calling code can use this to maintain mappings.

This is a breaking change.

* include package-hash for caching-transform

Include the package-hash result for caching-transform itself in the resulting
hash. This will ensure the hash changes if caching-transform is updated, e.g. if
it changes its storage format.

* remove unused spies

17 of 17 new or added lines in 1 file covered. (100.0%)

55 of 55 relevant lines covered (100.0%)

60.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30.1 16 May 2016 05:13PM UTC 0
100.0
Travis Job 30.1
2 30.2 16 May 2016 05:13PM UTC 0
100.0
Travis Job 30.2
3 30.3 16 May 2016 05:14PM UTC 0
100.0
Travis Job 30.3
Source Files on build 30
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #30
  • 81959168 on github
  • Prev Build on master (#26)
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