This repository was archived by the owner on Aug 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +4
-9
lines changed Expand file tree Collapse file tree 5 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,4 @@ node_modules
35
35
36
36
dist
37
37
docs
38
+ yarn.lock
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ js-multihash
6
6
[ ![ ] ( https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square )] ( https://webchat.freenode.net/?channels=%23ipfs )
7
7
[ ![ Coverage Status] ( https://coveralls.io/repos/github/multiformats/js-multihash/badge.svg?branch=master )] ( https://coveralls.io/github/multiformats/js-multihash?branch=master )
8
8
[ ![ Travis CI] ( https://img.shields.io/travis/multiformats/js-multihash.svg?style=flat-square&branch=master )] ( https://travis-ci.org/multiformats/js-multihash )
9
- [ ![ Circle CI] ( https://circleci.com/gh/multiformats/js-multihash.svg?style=svg )] ( https://circleci.com/gh/multiformats/js-multihash )
10
9
[ ![ Dependency Status] ( https://david-dm.org/multiformats/js-multihash.svg?style=flat-square )] ( https://david-dm.org/multiformats/js-multihash )
11
10
[ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square )] ( https://github.com/feross/standard )
12
11
[ ![ ] ( https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square )] ( https://github.com/RichardLitt/standard-readme )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33
33
"url" : " https://github.com/multiformats/js-multihash/issues"
34
34
},
35
35
"dependencies" : {
36
- "bs58" : " ^4.0.1" ,
37
36
"buffer" : " ^5.5.0" ,
38
37
"multibase" : " ^0.6.0" ,
39
38
"varint" : " ^5.0.0"
40
39
},
41
40
"devDependencies" : {
42
41
"aegir" : " ^21.3.0" ,
43
- "buffer-equal" : " 1.0.0" ,
44
42
"chai" : " ^4.1.2" ,
45
43
"dirty-chai" : " ^2.0.1" ,
46
44
"pre-commit" : " ^1.2.2"
Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ const chai = require('chai')
6
6
const dirtyChai = require ( 'dirty-chai' )
7
7
chai . use ( dirtyChai )
8
8
const expect = chai . expect
9
- const bufeq = require ( 'buffer-equal' )
10
- const bs58 = require ( 'bs58' )
9
+ const multibase = require ( 'multibase' )
11
10
12
11
const mh = require ( '../src' )
13
12
const constants = require ( '../src/constants' )
@@ -66,7 +65,7 @@ describe('multihash', () => {
66
65
expect (
67
66
mh . toB58String ( buf )
68
67
) . to . be . eql (
69
- bs58 . encode ( buf )
68
+ multibase . encode ( 'base58btc' , buf ) . toString ( ) . slice ( 1 )
70
69
)
71
70
} )
72
71
} )
@@ -114,7 +113,7 @@ describe('multihash', () => {
114
113
expect ( r . code ) . to . equal ( code )
115
114
expect ( r . name ) . to . equal ( name )
116
115
expect ( r . length ) . to . equal ( length )
117
- expect ( bufeq ( d1 , d2 ) ) . to . equal ( true )
116
+ expect ( d1 . equals ( d2 ) ) . to . equal ( true )
118
117
} )
119
118
} )
120
119
You can’t perform that action at this time.
0 commit comments