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

Commit

Permalink
fix: remove unnecessary deps (#72)
Browse files Browse the repository at this point in the history
Remove deps.
Cleanup readme and jenkins file.
  • Loading branch information
hugomrdias authored Mar 17, 2020
1 parent 1c46835 commit 1e0ac42
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ node_modules

dist
docs
yarn.lock
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ js-multihash
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs)
[![Coverage Status](https://coveralls.io/repos/github/multiformats/js-multihash/badge.svg?branch=master)](https://coveralls.io/github/multiformats/js-multihash?branch=master)
[![Travis CI](https://img.shields.io/travis/multiformats/js-multihash.svg?style=flat-square&branch=master)](https://travis-ci.org/multiformats/js-multihash)
[![Circle CI](https://circleci.com/gh/multiformats/js-multihash.svg?style=svg)](https://circleci.com/gh/multiformats/js-multihash)
[![Dependency Status](https://david-dm.org/multiformats/js-multihash.svg?style=flat-square)](https://david-dm.org/multiformats/js-multihash)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
[![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
Expand Down
2 changes: 0 additions & 2 deletions ci/Jenkinsfile

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@
"url": "https://github.com/multiformats/js-multihash/issues"
},
"dependencies": {
"bs58": "^4.0.1",
"buffer": "^5.5.0",
"multibase": "^0.6.0",
"varint": "^5.0.0"
},
"devDependencies": {
"aegir": "^21.3.0",
"buffer-equal": "1.0.0",
"chai": "^4.1.2",
"dirty-chai": "^2.0.1",
"pre-commit": "^1.2.2"
Expand Down
7 changes: 3 additions & 4 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const chai = require('chai')
const dirtyChai = require('dirty-chai')
chai.use(dirtyChai)
const expect = chai.expect
const bufeq = require('buffer-equal')
const bs58 = require('bs58')
const multibase = require('multibase')

const mh = require('../src')
const constants = require('../src/constants')
Expand Down Expand Up @@ -66,7 +65,7 @@ describe('multihash', () => {
expect(
mh.toB58String(buf)
).to.be.eql(
bs58.encode(buf)
multibase.encode('base58btc', buf).toString().slice(1)
)
})
})
Expand Down Expand Up @@ -114,7 +113,7 @@ describe('multihash', () => {
expect(r.code).to.equal(code)
expect(r.name).to.equal(name)
expect(r.length).to.equal(length)
expect(bufeq(d1, d2)).to.equal(true)
expect(d1.equals(d2)).to.equal(true)
})
})

Expand Down

0 comments on commit 1e0ac42

Please sign in to comment.