Skip to content

Commit 944a64b

Browse files
hugomrdiasAlan Shaw
authored and
Alan Shaw
committed
fix: fix missing buffer bundling with browserify (ipfs#966)
fixes ipfs#964
1 parent bf3dc78 commit 944a64b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"bignumber.js": "^8.0.2",
2727
"bl": "^3.0.0",
2828
"bs58": "^4.0.1",
29+
"buffer": "^5.2.1",
2930
"cids": "~0.5.5",
3031
"concat-stream": "hugomrdias/concat-stream#feat/smaller",
3132
"debug": "^4.1.0",

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* global self */
33

44
const isIPFS = require('is-ipfs')
5+
const { Buffer } = require('buffer')
56
const CID = require('cids')
67
const multiaddr = require('multiaddr')
78
const multibase = require('multibase')

0 commit comments

Comments
 (0)