Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit e174866

Browse files
alanshawdaviddias
authored andcommitted
fix: changes peer prop in return value from swarm.peers to be a PeerId (#1252)
* changes peer prop in return value from swarm.peers to be a PeerId instead of a PeerInfo * chore: update deps * chore: update deps
1 parent 75d47c3 commit e174866

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,24 @@
6161
},
6262
"homepage": "https://github.com/ipfs/js-ipfs#readme",
6363
"devDependencies": {
64-
"aegir": "^13.0.5",
64+
"aegir": "^13.0.6",
6565
"buffer-loader": "0.0.1",
6666
"chai": "^4.1.2",
6767
"delay": "^2.0.0",
6868
"detect-node": "^2.0.3",
6969
"dir-compare": "^1.4.0",
7070
"dirty-chai": "^2.0.1",
7171
"eslint-plugin-react": "^7.7.0",
72-
"execa": "^0.9.0",
73-
"expose-loader": "^0.7.4",
72+
"execa": "^0.10.0",
73+
"expose-loader": "^0.7.5",
7474
"form-data": "^2.3.2",
7575
"go-ipfs-dep": "^0.4.13",
7676
"hat": "0.0.3",
77-
"interface-ipfs-core": "~0.52.0",
77+
"interface-ipfs-core": "~0.56.5",
7878
"ipfsd-ctl": "~0.30.1",
7979
"left-pad": "^1.2.0",
8080
"lodash": "^4.17.5",
81-
"mocha": "^5.0.1",
81+
"mocha": "^5.0.4",
8282
"ncp": "^2.0.0",
8383
"nexpect": "^0.5.0",
8484
"pre-commit": "^1.2.2",
@@ -94,10 +94,10 @@
9494
"big.js": "^5.0.3",
9595
"binary-querystring": "~0.1.2",
9696
"bl": "^1.2.1",
97-
"boom": "^7.1.1",
97+
"boom": "^7.2.0",
9898
"bs58": "^4.0.1",
9999
"byteman": "^1.3.5",
100-
"cids": "~0.5.2",
100+
"cids": "~0.5.3",
101101
"debug": "^3.1.0",
102102
"file-type": "^7.6.0",
103103
"filesize": "^3.6.0",
@@ -108,7 +108,7 @@
108108
"hapi-set-header": "^1.0.2",
109109
"hoek": "^5.0.3",
110110
"human-to-milliseconds": "^1.0.0",
111-
"ipfs-api": "^18.1.2",
111+
"ipfs-api": "^18.2.0",
112112
"ipfs-bitswap": "~0.19.0",
113113
"ipfs-block": "~0.6.1",
114114
"ipfs-block-service": "~0.13.0",
@@ -122,10 +122,10 @@
122122
"joi": "^13.1.2",
123123
"joi-browser": "^13.0.1",
124124
"joi-multiaddr": "^1.0.1",
125-
"libp2p": "~0.18.0",
126-
"libp2p-circuit": "~0.1.4",
125+
"libp2p": "~0.19.0",
126+
"libp2p-circuit": "~0.1.5",
127127
"libp2p-floodsub": "~0.14.1",
128-
"libp2p-kad-dht": "~0.8.0",
128+
"libp2p-kad-dht": "~0.9.0",
129129
"libp2p-keychain": "~0.3.1",
130130
"libp2p-mdns": "~0.9.2",
131131
"libp2p-multiplex": "~0.5.1",
@@ -162,7 +162,7 @@
162162
"pull-stream-to-stream": "^1.3.4",
163163
"pull-zip": "^2.0.1",
164164
"read-pkg-up": "^3.0.0",
165-
"readable-stream": "2.3.4",
165+
"readable-stream": "2.3.5",
166166
"safe-buffer": "^5.1.1",
167167
"stream-to-pull-stream": "^1.7.2",
168168
"tar-stream": "^1.5.5",
@@ -173,8 +173,8 @@
173173
"yargs-parser": "^9.0.2"
174174
},
175175
"optionalDependencies": {
176-
"prom-client": "^10.2.2",
177-
"prometheus-gc-stats": "^0.5.0"
176+
"prom-client": "^11.0.0",
177+
"prometheus-gc-stats": "^0.5.1"
178178
},
179179
"contributors": [
180180
"Alan Shaw <[email protected]>",

src/core/components/swarm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = function swarm (self) {
3131

3232
const tupple = {
3333
addr: connectedAddr,
34-
peer: peer
34+
peer: peer.id
3535
}
3636
if (verbose) {
3737
tupple.latency = 'unknown'

src/http/api/resources/swarm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ exports.peers = {
5151
return reply({
5252
Peers: peers.map((p) => {
5353
const res = {
54-
Peer: p.peer.id.toB58String(),
54+
Peer: p.peer.toB58String(),
5555
Addr: p.addr.toString()
5656
}
5757

0 commit comments

Comments
 (0)