Skip to content

Commit

Permalink
chore: update libp2p-pubsub to 0.0.4 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain authored and vasco-santos committed Apr 23, 2019
1 parent 19d9a96 commit b463b04
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 192 deletions.
14 changes: 0 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,5 @@ jobs:
- npx aegir dep-check -- -i wrtc -i electron-webrtc
- npm run lint

- stage: test
name: chrome
addons:
chrome: stable
script:
- npx aegir test -t browser

- stage: test
name: firefox
addons:
firefox: latest
script:
- npx aegir test -t browser -- --browsers FirefoxHeadless

notifications:
email: false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"debug": "^4.1.1",
"length-prefixed-stream": "^2.0.0",
"libp2p-crypto": "~0.16.1",
"libp2p-pubsub": "~0.0.2",
"libp2p-pubsub": "~0.0.4",
"protons": "^1.0.1",
"pull-length-prefixed": "^1.3.2",
"pull-pushable": "^2.2.0",
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const lp = require('pull-length-prefixed')
const assert = require('assert')

const BaseProtocol = require('libp2p-pubsub')
const { message } = require('libp2p-pubsub')
const utils = require('./utils')
const { message, utils } = require('libp2p-pubsub')
const config = require('./config')

const multicodec = config.multicodec
Expand Down
95 changes: 0 additions & 95 deletions src/utils.js

This file was deleted.

4 changes: 2 additions & 2 deletions test/2-nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('basics between 2 nodes', () => {
expectSet(first(fsB.peers).topics, ['Z'])
expect(changedPeerInfo.id.toB58String()).to.equal(first(fsB.peers).info.id.toB58String())
expectSet(changedTopics, ['Z'])
expect(changedSubs).to.be.eql([{ topicCID: 'Z', subscribe: true }])
expect(changedSubs).to.be.eql([{ topicID: 'Z', subscribe: true }])
done()
})
})
Expand Down Expand Up @@ -174,7 +174,7 @@ describe('basics between 2 nodes', () => {
expectSet(first(fsB.peers).topics, [])
expect(changedPeerInfo.id.toB58String()).to.equal(first(fsB.peers).info.id.toB58String())
expectSet(changedTopics, [])
expect(changedSubs).to.be.eql([{ topicCID: 'Z', subscribe: false }])
expect(changedSubs).to.be.eql([{ topicID: 'Z', subscribe: false }])
done()
})
})
Expand Down
78 changes: 0 additions & 78 deletions test/utils.spec.js

This file was deleted.

0 comments on commit b463b04

Please sign in to comment.