Skip to content

Commit

Permalink
fix: remove node globals
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Apr 23, 2020
1 parent c197fc3 commit 4a6f759
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,23 @@
},
"homepage": "https://github.com/ipfs/js-datastore-pubsub#readme",
"dependencies": {
"buffer": "^5.6.0",
"debug": "^4.1.1",
"err-code": "^2.0.0",
"interface-datastore": "~0.8.0",
"multibase": "~0.6.0"
"multibase": "~0.7.0"
},
"devDependencies": {
"aegir": "^20.5.0",
"aegir": "^21.9.0",
"chai": "^4.2.0",
"detect-node": "^2.0.4",
"dirty-chai": "^2.0.1",
"it-pair": "^1.0.0",
"libp2p-gossipsub": "0.2.0",
"libp2p-gossipsub": "hugomrdias/gossipsub-js#fix/add-buffer",
"libp2p-record": "~0.7.0",
"p-wait-for": "^3.1.0",
"peer-id": "^0.13.6",
"peer-info": "^0.16.2",
"peer-info": "^0.17.5",
"sinon": "^7.4.1"
},
"contributors": [
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 { Key } = require('interface-datastore')
const { encodeBase32, keyToTopic, topicToKey } = require('./utils')

Expand Down
1 change: 1 addition & 0 deletions test/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-env mocha */
'use strict'

const { Buffer } = require('buffer')
const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
Expand Down

0 comments on commit 4a6f759

Please sign in to comment.