diff --git a/package.json b/package.json index 165478dfc..a8f610197 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "coverage-publish": "aegir-coverage publish" }, "dependencies": { - "async": "^2.1.5", + "async": "^2.2.0", "bs58": "^4.0.0", "cids": "~0.4.2", "concat-stream": "^1.6.0", @@ -36,13 +36,13 @@ "is-ipfs": "~0.3.0", "isstream": "^0.1.2", "lru-cache": "^4.0.2", - "multiaddr": "^2.2.2", - "multihashes": "~0.4.4", + "multiaddr": "^2.3.0", + "multihashes": "~0.4.5", "multipart-stream": "^2.0.1", "ndjson": "^1.5.0", "once": "^1.4.0", - "peer-id": "~0.8.4", - "peer-info": "~0.8.4", + "peer-id": "~0.8.6", + "peer-info": "~0.9.0", "promisify-es6": "^1.0.2", "pump": "^1.0.2", "qs": "^6.4.0", @@ -66,7 +66,7 @@ "eslint-plugin-react": "^6.10.3", "gulp": "^3.9.1", "hapi": "^16.1.0", - "interface-ipfs-core": "~0.26.0", + "interface-ipfs-core": "~0.26.1", "ipfsd-ctl": "~0.20.0", "pre-commit": "^1.2.2", "socket.io": "^1.7.3", @@ -127,4 +127,4 @@ "url": "https://github.com/ipfs/js-ipfs-api/issues" }, "homepage": "https://github.com/ipfs/js-ipfs-api" -} \ No newline at end of file +} diff --git a/src/api/swarm.js b/src/api/swarm.js index 293af9705..2574405bd 100644 --- a/src/api/swarm.js +++ b/src/api/swarm.js @@ -100,12 +100,11 @@ module.exports = (send) => { } const peers = Object.keys(result.Addrs).map((id) => { - const info = new PeerInfo(PeerId.createFromB58String(id)) + const peerInfo = new PeerInfo(PeerId.createFromB58String(id)) result.Addrs[id].forEach((addr) => { - info.multiaddr.add(multiaddr(addr)) + peerInfo.multiaddrs.add(multiaddr(addr)) }) - - return info + return peerInfo }) callback(null, peers)