ipld / js-ipld-git

MIT License
34 stars 11 forks source link

fix: convert output of multihash.decode to buffer #71

Closed achingbrain closed 4 years ago

achingbrain commented 4 years ago

The multihash module returns Uint8Arrays from it's decode method but smart-buffer requires everything to be a buffer so convert the output.

codecov[bot] commented 4 years ago

Codecov Report

Merging #71 into master will increase coverage by 0.05%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
+ Coverage   84.90%   84.96%   +0.05%     
==========================================
  Files           8        8              
  Lines         265      266       +1     
==========================================
+ Hits          225      226       +1     
  Misses         40       40              
Impacted Files Coverage Δ
src/util.js 90.90% <100.00%> (ø)
src/util/util.js 92.30% <100.00%> (+0.20%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 989e20d...65a3042. Read the comment docs.