diff --git a/gulpfile.js b/gulpfile.js index 82fd0bd..373659f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -11,7 +11,7 @@ const rawPeer = require('./test/peer.json') const id = Id.createFromPrivKey(rawPeer.privKey) gulp.task('libnode:start', (done) => { - const mh = multiaddr('/ip4/127.0.0.1/tcp/9090/websockets') + const mh = multiaddr('/ip4/127.0.0.1/tcp/9090/ws') const peer = new Peer(id) peer.multiaddr.add(mh) diff --git a/package.json b/package.json index bfd1589..c0d8c08 100644 --- a/package.json +++ b/package.json @@ -31,19 +31,19 @@ }, "homepage": "https://github.com/ipfs/js-libp2p-ipfs-browser#readme", "devDependencies": { - "aegir": "^3.0.1", + "aegir": "^3.0.4", "chai": "^3.5.0", "gulp": "^3.9.1", - "libp2p-ipfs": "^0.3.8", + "libp2p-ipfs": "^0.4.0", "peer-id": "^0.6.6", "pre-commit": "^1.1.2" }, "dependencies": { "babel-runtime": "^6.6.1", - "libp2p-spdy": "^0.3.1", - "libp2p-swarm": "^0.12.10", - "libp2p-websockets": "^0.4.4", - "multiaddr": "^1.4.1", + "libp2p-spdy": "^0.4.0", + "libp2p-swarm": "^0.14.0", + "libp2p-websockets": "^0.5.0", + "multiaddr": "^2.0.0", "peer-info": "^0.6.2" }, "aegir": { @@ -60,4 +60,4 @@ "dignifiedquire ", "greenkeeperio-bot " ] -} \ No newline at end of file +} diff --git a/test/index.spec.js b/test/index.spec.js index a1a93db..8feb898 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -20,7 +20,7 @@ describe('libp2p-ipfs-browser', function () { }) it('echo', (done) => { - const mh = multiaddr('/ip4/127.0.0.1/tcp/9090/websockets') + const mh = multiaddr('/ip4/127.0.0.1/tcp/9090/ws') const peer = new Peer(id) peer.multiaddr.add(mh) @@ -40,7 +40,7 @@ describe('libp2p-ipfs-browser', function () { describe('stress', () => { it('one big write', (done) => { - const mh = multiaddr('/ip4/127.0.0.1/tcp/9090/websockets') + const mh = multiaddr('/ip4/127.0.0.1/tcp/9090/ws') const peer = new Peer(id) peer.multiaddr.add(mh) @@ -68,7 +68,7 @@ describe('libp2p-ipfs-browser', function () { }) it('many writes in 2 batches', (done) => { - const mh = multiaddr('/ip4/127.0.0.1/tcp/9090/websockets') + const mh = multiaddr('/ip4/127.0.0.1/tcp/9090/ws') const peer = new Peer(id) peer.multiaddr.add(mh)