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

jamestalmage / caching-transform
100%

Build:
DEFAULT BRANCH: master
Repo Added 19 Dec 2015 06:09PM UTC
Files 1
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • master
  • v0.0.1
  • v0.0.2
  • v0.0.3
  • v0.0.4
  • v1.0.0
  • v1.0.1

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

Relevant lines Covered
Build:
Build:
55 RELEVANT LINES 55 COVERED LINES
60.76 HITS PER LINE
Source Files on master
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
30 master 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 ... push 16 May 2016 05:13PM UTC jamestalmage travis-ci pending completion  
29 master remove unused spies Pull #2 16 May 2016 01:05PM UTC novemberborn travis-ci pending completion  
28 master remove unused spies Pull #2 09 May 2016 03:35PM UTC novemberborn travis-ci pending completion  
27 master remove unused spies Pull #2 24 Apr 2016 05:40PM UTC novemberborn travis-ci pending completion  
25 v1.0.1 1.0.1 push 01 Jan 2016 07:25AM UTC jamestalmage travis-ci pending completion  
26 master 1.0.1 push 01 Jan 2016 07:25AM UTC jamestalmage travis-ci pending completion  
24 master make options.cacheDir optional if caching is disabled. push 31 Dec 2015 08:57AM UTC jamestalmage travis-ci pending completion  
22 master 1.0.0 push 25 Dec 2015 04:07AM UTC jamestalmage travis-ci pending completion  
23 v1.0.0 1.0.0 push 25 Dec 2015 04:07AM UTC jamestalmage travis-ci pending completion  
21 master salt can be a buffer push 25 Dec 2015 03:50AM UTC jamestalmage travis-ci pending completion  
See All Builds (27)
  • Repo on GitHub
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