diff --git a/package.json b/package.json index 43bfc2d..8062fd6 100644 --- a/package.json +++ b/package.json @@ -45,18 +45,18 @@ "pull-stream": "^3.5.0" }, "dependencies": { - "libp2p": "~0.6.0", + "libp2p": "~0.6.2", "libp2p-mdns": "~0.6.2", "libp2p-multiplex": "~0.4.3", "libp2p-railing": "~0.4.3", "libp2p-secio": "~0.6.8", "libp2p-spdy": "~0.10.6", - "libp2p-swarm": "~0.26.19", - "libp2p-tcp": "~0.9.4", + "libp2p-swarm": "~0.28.0", + "libp2p-tcp": "~0.10.0", "libp2p-webrtc-star": "~0.8.10", - "libp2p-websockets": "~0.9.6", - "mafmt": "^2.1.7", - "multiaddr": "^2.2.3", + "libp2p-websockets": "~0.10.0", + "mafmt": "^2.1.8", + "multiaddr": "^2.3.0", "peer-book": "~0.3.2", "peer-id": "~0.8.5", "peer-info": "~0.8.5" @@ -73,4 +73,4 @@ "kumavis ", "varunagarwal315 " ] -} \ No newline at end of file +} diff --git a/test/libp2p.spec.js b/test/libp2p.spec.js index 54f59a6..2a3245a 100644 --- a/test/libp2p.spec.js +++ b/test/libp2p.spec.js @@ -383,7 +383,13 @@ describe('libp2p-ipfs-nodejs', () => { it('nodeA dial to nodeC and nodeD', (done) => { let count = 0 - const next = () => ++count === 2 ? check() : null + + function next (err) { + expect(err).to.not.exist() + if (++count === 2) { + check() + } + } nodeA.dial(nodeCMultiaddrTCP, next) nodeA.dial(nodeDMultiaddrTCP, next)