diff --git a/.gitignore b/.gitignore index 68363e01..83922d23 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ node_modules dist docs +yarn.lock \ No newline at end of file diff --git a/README.md b/README.md index 2796790c..fc1a56a9 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile deleted file mode 100644 index 50da4f70..00000000 --- a/ci/Jenkinsfile +++ /dev/null @@ -1,2 +0,0 @@ -// Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories. -javascript([coverage: true]) diff --git a/package.json b/package.json index 6f075b1c..7d00cb20 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/test/index.spec.js b/test/index.spec.js index d103d777..459c5712 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -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') @@ -66,7 +65,7 @@ describe('multihash', () => { expect( mh.toB58String(buf) ).to.be.eql( - bs58.encode(buf) + multibase.encode('base58btc', buf).toString().slice(1) ) }) }) @@ -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) }) })