Skip to content

Commit 156e29d

Browse files
hugomrdiashacdias
authored andcommitted
fix: add buffer
Adds buffer related to ipfs/js-ipfs#2924
1 parent 8815d4b commit 156e29d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@
4040
},
4141
"homepage": "https://github.com/multiformats/js-multicodec#readme",
4242
"dependencies": {
43+
"buffer": "^5.5.0",
4344
"varint": "^5.0.0"
4445
},
4546
"devDependencies": {
46-
"aegir": "^20.5.0",
47+
"aegir": "^21.3.0",
4748
"bent": "^7.0.4",
4849
"chai": "^4.2.0",
4950
"dirty-chai": "^2.0.1",

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212
'use strict'
1313

14+
const { Buffer } = require('buffer')
1415
const varint = require('varint')
1516
const intTable = require('./int-table')
1617
const codecNameToCodeVarint = require('./varint-table')

src/util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22
const varint = require('varint')
3+
const { Buffer } = require('buffer')
34

45
module.exports = {
56
numberToBuffer,

0 commit comments

Comments
 (0)