Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 7acfeae

Browse files
authored
fix: remove node globals (#124)
Also update borc.
1 parent bc6ac54 commit 7acfeae

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
},
3838
"homepage": "https://github.com/ipld/js-ipld-dag-cbor",
3939
"dependencies": {
40-
"borc": "^2.1.0",
40+
"borc": "^2.1.2",
41+
"buffer": "^5.5.0",
4142
"cids": "~0.8.0",
4243
"is-circular": "^1.0.2",
4344
"multicodec": "^1.0.0",

src/resolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const CID = require('cids')
4-
4+
const { Buffer } = require('buffer')
55
const util = require('./util')
66

77
/**

src/util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22

33
const cbor = require('borc')
4+
const { Buffer } = require('buffer')
45
const multicodec = require('multicodec')
56
const multihashing = require('multihashing-async')
67
const CID = require('cids')

test/util.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4+
const { Buffer } = require('buffer')
45
const chai = require('chai')
56
const dirtyChai = require('dirty-chai')
67
const expect = chai.expect

0 commit comments

Comments
 (0)