Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

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 vmx committed Mar 16, 2020
1 parent 9fee010 commit 65681ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@
"url": "https://github.com/multiformats/js-cid/issues"
},
"dependencies": {
"buffer": "^5.5.0",
"class-is": "^1.1.0",
"multibase": "~0.6.0",
"multicodec": "^1.0.0",
"multihashes": "~0.4.15"
},
"devDependencies": {
"aegir": "^20.5.0",
"aegir": "^21.3.0",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1",
"multihashing": "~0.3.3",
Expand Down
2 changes: 1 addition & 1 deletion src/cid-util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const mh = require('multihashes')

const { Buffer } = require('buffer')
var CIDUtil = {
/**
* Test if the given input is a valid CID object.
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

const { Buffer } = require('buffer')
const mh = require('multihashes')
const multibase = require('multibase')
const multicodec = require('multicodec')
Expand Down

0 comments on commit 65681ef

Please sign in to comment.