Skip to content

Commit

Permalink
fix: add buffer (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored Apr 23, 2020
1 parent d71bfd3 commit f8e221d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
"dependencies": {
"async.nexttick": "^0.5.2",
"buffer": "^5.6.0",
"debug": "^4.1.1",
"it-length-prefixed": "^3.0.0",
"it-pipe": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const lp = require('it-length-prefixed')
const pMap = require('p-map')
const TimeCache = require('time-cache')
const nextTick = require('async.nexttick')

const { Buffer } = require('buffer')
const PeerId = require('peer-id')
const BaseProtocol = require('libp2p-pubsub')
const { message, utils } = require('libp2p-pubsub')
Expand Down
2 changes: 1 addition & 1 deletion test/2-nodes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const chai = require('chai')
chai.use(require('dirty-chai'))
chai.use(require('chai-spies'))
const expect = chai.expect

const { Buffer } = require('buffer')
const pDefer = require('p-defer')
const times = require('lodash/times')

Expand Down
2 changes: 1 addition & 1 deletion test/emit-self.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const chai = require('chai')
chai.use(require('dirty-chai'))
chai.use(require('chai-spies'))
const expect = chai.expect

const { Buffer } = require('buffer')
const FloodSub = require('../src')

const {
Expand Down
2 changes: 1 addition & 1 deletion test/multiple-nodes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const chai = require('chai')
chai.use(require('dirty-chai'))
const expect = chai.expect

const { Buffer } = require('buffer')
const pDefer = require('p-defer')

const FloodSub = require('../src')
Expand Down
2 changes: 1 addition & 1 deletion test/pubsub.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const chai = require('chai')
chai.use(require('dirty-chai'))
const expect = chai.expect
const sinon = require('sinon')

const { Buffer } = require('buffer')
const Floodsub = require('../src')
const { createPeerId, mockRegistrar } = require('./utils')
const { utils } = require('libp2p-pubsub')
Expand Down

0 comments on commit f8e221d

Please sign in to comment.