helia-coord 1.4.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,10 +14,10 @@ import { tcp } from '@libp2p/tcp'
|
|
|
14
14
|
import { noise } from '@chainsafe/libp2p-noise'
|
|
15
15
|
import { yamux } from '@chainsafe/libp2p-yamux'
|
|
16
16
|
// import { bootstrap } from '@libp2p/bootstrap'
|
|
17
|
-
import { identifyService } from 'libp2p/identify'
|
|
18
|
-
|
|
19
|
-
import { circuitRelayTransport } from 'libp2p/circuit-relay'
|
|
20
|
-
|
|
17
|
+
// import { identifyService } from 'libp2p/identify'
|
|
18
|
+
import { identify } from '@libp2p/identify'
|
|
19
|
+
// import { circuitRelayTransport } from 'libp2p/circuit-relay'
|
|
20
|
+
import { circuitRelayTransport } from '@libp2p/circuit-relay-v2'
|
|
21
21
|
import { gossipsub } from '@chainsafe/libp2p-gossipsub'
|
|
22
22
|
import { webSockets } from '@libp2p/websockets'
|
|
23
23
|
import { publicIpv4 } from 'public-ip'
|
|
@@ -80,7 +80,7 @@ class CreateHeliaNode {
|
|
|
80
80
|
|
|
81
81
|
// Configure services
|
|
82
82
|
const services = {
|
|
83
|
-
identify:
|
|
83
|
+
identify: identify(),
|
|
84
84
|
pubsub: gossipsub({ allowPublishToZeroPeers: true })
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -358,7 +358,7 @@ class PeerUseCases {
|
|
|
358
358
|
// Get the peer data for the current peer.
|
|
359
359
|
let peerData = this.thisNode.peerData.filter(x => x.from.includes(thisPeer))
|
|
360
360
|
peerData = peerData[0]
|
|
361
|
-
|
|
361
|
+
console.log('peerData: ', peerData)
|
|
362
362
|
|
|
363
363
|
// If broadcastedAt value is older than 10 minutes, skip connecting
|
|
364
364
|
// to the peer. It may be stale information.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "helia-coord",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A JS library for helping IPFS peers coordinate, find a common interest, and stay connected around that interest.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -24,9 +24,11 @@
|
|
|
24
24
|
"@chainsafe/libp2p-noise": "14.1.0",
|
|
25
25
|
"@chainsafe/libp2p-yamux": "6.0.1",
|
|
26
26
|
"@istanbuljs/esm-loader-hook": "0.2.0",
|
|
27
|
-
"@libp2p/
|
|
28
|
-
"@libp2p/
|
|
29
|
-
"@libp2p/
|
|
27
|
+
"@libp2p/circuit-relay-v2": "1.0.13",
|
|
28
|
+
"@libp2p/identify": "1.0.12",
|
|
29
|
+
"@libp2p/tcp": "9.0.13",
|
|
30
|
+
"@libp2p/webrtc": "4.0.17",
|
|
31
|
+
"@libp2p/websockets": "8.0.13",
|
|
30
32
|
"@multiformats/multiaddr": "12.1.12",
|
|
31
33
|
"blockstore-fs": "1.1.9",
|
|
32
34
|
"chai": "4.3.6",
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
"uuid": "9.0.0"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
|
-
"libp2p": "
|
|
52
|
+
"libp2p": ">=1.2.1"
|
|
51
53
|
},
|
|
52
54
|
"exports": {
|
|
53
55
|
".": {
|