Skip to content

Commit

Permalink
fix: add buffer
Browse files Browse the repository at this point in the history
Adds buffer related to ipfs/js-ipfs#2924
  • Loading branch information
hugomrdias authored and hacdias committed Mar 16, 2020
1 parent 8815d4b commit 156e29d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
},
"homepage": "https:/multiformats/js-multicodec#readme",
"dependencies": {
"buffer": "^5.5.0",
"varint": "^5.0.0"
},
"devDependencies": {
"aegir": "^20.5.0",
"aegir": "^21.3.0",
"bent": "^7.0.4",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/
'use strict'

const { Buffer } = require('buffer')
const varint = require('varint')
const intTable = require('./int-table')
const codecNameToCodeVarint = require('./varint-table')
Expand Down
1 change: 1 addition & 0 deletions src/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'
const varint = require('varint')
const { Buffer } = require('buffer')

module.exports = {
numberToBuffer,
Expand Down

0 comments on commit 156e29d

Please sign in to comment.