Skip to content

Commit

Permalink
fix: add buffer (#120)
Browse files Browse the repository at this point in the history
related to this ipfs/js-ipfs#2924
  • Loading branch information
hugomrdias committed Mar 18, 2020
1 parent 7e985b1 commit c305c36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@
"dirty-chai": "^2.0.1"
},
"dependencies": {
"buffer": "^5.5.0",
"cids": "^0.7.3",
"class-is": "^1.1.0",
"libp2p-crypto": "~0.17.2",
"libp2p-crypto": "~0.17.3",
"multihashes": "~0.4.15",
"protons": "^1.0.1"
"protons": "^1.0.2"
},
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

'use strict'

const { Buffer } = require('buffer')
const mh = require('multihashes')
const CID = require('cids')
const cryptoKeys = require('libp2p-crypto/src/keys')
Expand Down
1 change: 1 addition & 0 deletions test/peer-id.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* eslint-env mocha */
'use strict'

const { Buffer } = require('buffer')
const chai = require('chai')
const dirtyChai = require('dirty-chai')
chai.use(dirtyChai)
Expand Down

0 comments on commit c305c36

Please sign in to comment.