From b4e748c6e010dccebe1e7543de48180b4c069a2b Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Wed, 1 Apr 2020 12:32:36 +0100 Subject: [PATCH] fix: add buffer --- package.json | 5 +++-- src/index.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 260fce5..1822014 100644 --- a/package.json +++ b/package.json @@ -34,11 +34,12 @@ }, "homepage": "https://github.com/ipld/js-ipld-block#readme", "devDependencies": { - "aegir": "^18.2.0", + "aegir": "^21.4.5", "chai": "^4.2.0" }, "dependencies": { - "cids": "~0.7.0", + "buffer": "^5.5.0", + "cids": "~0.8.0", "class-is": "^1.1.0" }, "engines": { diff --git a/src/index.js b/src/index.js index ff77f1c..0b87fb5 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,6 @@ 'use strict' +const { Buffer } = require('buffer') const CID = require('cids') const withIs = require('class-is')