Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add buffer and update deps #71

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,35 @@
"lint"
],
"dependencies": {
"buffer": "^5.6.0",
"debug": "^4.1.1",
"err-code": "^2.0.0",
"it-length-prefixed": "^3.0.0",
"it-pipe": "^1.0.1",
"libp2p-pubsub": "~0.4.1",
"p-map": "^3.0.0",
"libp2p-pubsub": "~0.4.2",
"p-map": "^4.0.0",
"peer-id": "~0.13.3",
"peer-info": "~0.17.0",
"protons": "^1.0.1",
"time-cache": "^0.3.0"
},
"devDependencies": {
"@types/chai": "^4.2.3",
"@types/mocha": "^5.2.7",
"aegir": "^20.5.0",
"@types/mocha": "^7.0.2",
"aegir": "^21.9.0",
"benchmark": "^2.1.4",
"chai": "^4.2.0",
"chai-spies": "^1.0.0",
"detect-node": "^2.0.4",
"dirty-chai": "^2.0.1",
"it-pair": "^1.0.0",
"libp2p-floodsub": "^0.20.0",
"libp2p-floodsub": "^0.20.3",
"lodash": "^4.17.15",
"mocha": "^6.2.1",
"mocha": "^7.1.1",
"p-times": "^2.1.0",
"p-wait-for": "^3.1.0",
"promisify-es6": "^1.0.3",
"sinon": "^7.5.0"
"sinon": "^9.0.2"
},
"contributors": [
"Alan Shaw <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/pubsub.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const errcode = require('err-code')

const { Buffer } = require('buffer')
const TimeCache = require('time-cache')

const pipe = require('it-pipe')
Expand Down
1 change: 1 addition & 0 deletions test/2-nodes.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')
chai.use(require('dirty-chai'))
chai.use(require('chai-spies'))
Expand Down
2 changes: 1 addition & 1 deletion test/emit-self.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */
'use strict'

const { Buffer } = require('buffer')
const chai = require('chai')
chai.use(require('dirty-chai'))
chai.use(require('chai-spies'))
Expand Down
1 change: 1 addition & 0 deletions test/floodsub.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')
chai.use(require('dirty-chai'))

Expand Down
1 change: 1 addition & 0 deletions test/gossip-incoming.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')
chai.use(require('dirty-chai'))
chai.use(require('chai-spies'))
Expand Down
1 change: 1 addition & 0 deletions test/gossip.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'
/* eslint-env mocha */

const { Buffer } = require('buffer')
const { expect } = require('chai')
const sinon = require('sinon')

Expand Down
3 changes: 1 addition & 2 deletions test/messageCache.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env mocha */
/* eslint-disable no-unused-expressions */
'use strict'

const { Buffer } = require('buffer')
const chai = require('chai')
const dirtyChai = require('dirty-chai')
chai.use(dirtyChai)
Expand All @@ -11,7 +11,6 @@ const expect = chai.expect

const { MessageCache } = require('../src/messageCache')
const { utils } = require('libp2p-pubsub')
const { Buffer } = require('buffer')

const getMsgID = (msg) => {
return utils.msgId(msg.from, msg.seqno)
Expand Down
2 changes: 1 addition & 1 deletion test/multiple-nodes.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env mocha */
/* eslint max-nested-callbacks: ["error", 8] */
'use strict'

const { Buffer } = require('buffer')
const chai = require('chai')
chai.use(require('dirty-chai'))
const expect = chai.expect
Expand Down
2 changes: 1 addition & 1 deletion test/pubsub.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'
/* eslint-env mocha */
/* eslint max-nested-callbacks: ["error", 5] */

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