Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
fix: add buffer (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored and vasco-santos committed Apr 23, 2020
1 parent 5c3607b commit 80b2d77
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,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: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const TimeCache = require('time-cache')
const nextTick = require('async.nexttick')

const PeerInfo = require('peer-info')
const { Buffer } = require('buffer')

const BaseProtocol = require('libp2p-pubsub')
const { message, utils } = require('libp2p-pubsub')
const { multicodec } = require('./config')
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 { createPeerInfo, mockRegistrar } = require('./utils')
const { utils } = require('libp2p-pubsub')
Expand Down

0 comments on commit 80b2d77

Please sign in to comment.