Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Commit 1e0ac42

Browse files
authored
fix: remove unnecessary deps (#72)
Remove deps. Cleanup readme and jenkins file.
1 parent 1c46835 commit 1e0ac42

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ node_modules
3535

3636
dist
3737
docs
38+
yarn.lock

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ js-multihash
66
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs)
77
[![Coverage Status](https://coveralls.io/repos/github/multiformats/js-multihash/badge.svg?branch=master)](https://coveralls.io/github/multiformats/js-multihash?branch=master)
88
[![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)
109
[![Dependency Status](https://david-dm.org/multiformats/js-multihash.svg?style=flat-square)](https://david-dm.org/multiformats/js-multihash)
1110
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
1211
[![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

ci/Jenkinsfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@
3333
"url": "https://github.com/multiformats/js-multihash/issues"
3434
},
3535
"dependencies": {
36-
"bs58": "^4.0.1",
3736
"buffer": "^5.5.0",
3837
"multibase": "^0.6.0",
3938
"varint": "^5.0.0"
4039
},
4140
"devDependencies": {
4241
"aegir": "^21.3.0",
43-
"buffer-equal": "1.0.0",
4442
"chai": "^4.1.2",
4543
"dirty-chai": "^2.0.1",
4644
"pre-commit": "^1.2.2"

test/index.spec.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ const chai = require('chai')
66
const dirtyChai = require('dirty-chai')
77
chai.use(dirtyChai)
88
const expect = chai.expect
9-
const bufeq = require('buffer-equal')
10-
const bs58 = require('bs58')
9+
const multibase = require('multibase')
1110

1211
const mh = require('../src')
1312
const constants = require('../src/constants')
@@ -66,7 +65,7 @@ describe('multihash', () => {
6665
expect(
6766
mh.toB58String(buf)
6867
).to.be.eql(
69-
bs58.encode(buf)
68+
multibase.encode('base58btc', buf).toString().slice(1)
7069
)
7170
})
7271
})
@@ -114,7 +113,7 @@ describe('multihash', () => {
114113
expect(r.code).to.equal(code)
115114
expect(r.name).to.equal(name)
116115
expect(r.length).to.equal(length)
117-
expect(bufeq(d1, d2)).to.equal(true)
116+
expect(d1.equals(d2)).to.equal(true)
118117
})
119118
})
120119

0 commit comments

Comments
 (0)