@libp2p/kad-dht 12.0.2 → 12.0.3-8bbd43628
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.
- package/README.md +2 -2
- package/dist/index.min.js +81 -23
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +2 -2
- package/package.json +19 -19
- package/src/index.ts +2 -2
- package/dist/typedoc-urls.json +0 -56
package/dist/src/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* services: {
|
|
40
40
|
* aminoDHT: kadDHT({
|
|
41
41
|
* protocol: '/ipfs/kad/1.0.0',
|
|
42
|
-
*
|
|
42
|
+
* peerInfoMapper: removePrivateAddressesMapper
|
|
43
43
|
* })
|
|
44
44
|
* }
|
|
45
45
|
* })
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* services: {
|
|
66
66
|
* lanDHT: kadDHT({
|
|
67
67
|
* protocol: '/ipfs/lan/kad/1.0.0',
|
|
68
|
-
*
|
|
68
|
+
* peerInfoMapper: removePublicAddressesMapper,
|
|
69
69
|
* clientMode: false
|
|
70
70
|
* })
|
|
71
71
|
* }
|
package/dist/src/index.js
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* services: {
|
|
40
40
|
* aminoDHT: kadDHT({
|
|
41
41
|
* protocol: '/ipfs/kad/1.0.0',
|
|
42
|
-
*
|
|
42
|
+
* peerInfoMapper: removePrivateAddressesMapper
|
|
43
43
|
* })
|
|
44
44
|
* }
|
|
45
45
|
* })
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* services: {
|
|
66
66
|
* lanDHT: kadDHT({
|
|
67
67
|
* protocol: '/ipfs/lan/kad/1.0.0',
|
|
68
|
-
*
|
|
68
|
+
* peerInfoMapper: removePublicAddressesMapper,
|
|
69
69
|
* clientMode: false
|
|
70
70
|
* })
|
|
71
71
|
* }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/kad-dht",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.3-8bbd43628",
|
|
4
4
|
"description": "JavaScript implementation of the Kad-DHT for libp2p",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/kad-dht#readme",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"dep-check": "aegir dep-check"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@libp2p/crypto": "
|
|
60
|
-
"@libp2p/interface": "
|
|
61
|
-
"@libp2p/interface-internal": "
|
|
62
|
-
"@libp2p/peer-collections": "
|
|
63
|
-
"@libp2p/peer-id": "
|
|
64
|
-
"@libp2p/utils": "
|
|
59
|
+
"@libp2p/crypto": "4.0.0-8bbd43628",
|
|
60
|
+
"@libp2p/interface": "1.1.1-8bbd43628",
|
|
61
|
+
"@libp2p/interface-internal": "1.0.6-8bbd43628",
|
|
62
|
+
"@libp2p/peer-collections": "5.1.4-8bbd43628",
|
|
63
|
+
"@libp2p/peer-id": "4.0.4-8bbd43628",
|
|
64
|
+
"@libp2p/utils": "5.2.1-8bbd43628",
|
|
65
65
|
"@multiformats/multiaddr": "^12.1.10",
|
|
66
66
|
"@types/sinon": "^17.0.0",
|
|
67
67
|
"any-signal": "^4.1.1",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"it-length-prefixed": "^9.0.3",
|
|
73
73
|
"it-map": "^3.0.4",
|
|
74
74
|
"it-merge": "^3.0.0",
|
|
75
|
-
"it-parallel": "^3.0.
|
|
75
|
+
"it-parallel": "^3.0.6",
|
|
76
76
|
"it-pipe": "^3.0.1",
|
|
77
|
-
"it-protobuf-stream": "^1.
|
|
78
|
-
"it-pushable": "^3.2.
|
|
77
|
+
"it-protobuf-stream": "^1.1.1",
|
|
78
|
+
"it-pushable": "^3.2.3",
|
|
79
79
|
"it-take": "^3.0.1",
|
|
80
80
|
"multiformats": "^13.0.0",
|
|
81
81
|
"p-defer": "^4.0.0",
|
|
@@ -85,24 +85,24 @@
|
|
|
85
85
|
"progress-events": "^1.0.0",
|
|
86
86
|
"protons-runtime": "^5.0.0",
|
|
87
87
|
"race-signal": "^1.0.2",
|
|
88
|
-
"uint8-varint": "^2.0.
|
|
89
|
-
"uint8arraylist": "^2.4.
|
|
88
|
+
"uint8-varint": "^2.0.2",
|
|
89
|
+
"uint8arraylist": "^2.4.7",
|
|
90
90
|
"uint8arrays": "^5.0.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@libp2p/interface-compliance-tests": "
|
|
94
|
-
"@libp2p/logger": "
|
|
95
|
-
"@libp2p/peer-id-factory": "
|
|
96
|
-
"@libp2p/peer-store": "
|
|
93
|
+
"@libp2p/interface-compliance-tests": "5.1.2-8bbd43628",
|
|
94
|
+
"@libp2p/logger": "4.0.4-8bbd43628",
|
|
95
|
+
"@libp2p/peer-id-factory": "4.0.4-8bbd43628",
|
|
96
|
+
"@libp2p/peer-store": "10.0.6-8bbd43628",
|
|
97
97
|
"@types/lodash.random": "^3.2.6",
|
|
98
98
|
"@types/lodash.range": "^3.2.6",
|
|
99
99
|
"@types/which": "^3.0.0",
|
|
100
100
|
"aegir": "^42.0.0",
|
|
101
|
-
"datastore-core": "^9.
|
|
101
|
+
"datastore-core": "^9.1.1",
|
|
102
102
|
"datastore-level": "^10.0.0",
|
|
103
103
|
"delay": "^6.0.0",
|
|
104
104
|
"execa": "^8.0.1",
|
|
105
|
-
"it-all": "^3.0.
|
|
105
|
+
"it-all": "^3.0.3",
|
|
106
106
|
"it-filter": "^3.0.1",
|
|
107
107
|
"it-last": "^3.0.3",
|
|
108
108
|
"it-pair": "^2.0.6",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"p-retry": "^6.1.0",
|
|
113
113
|
"p-wait-for": "^5.0.2",
|
|
114
114
|
"protons": "^7.3.0",
|
|
115
|
-
"sinon": "^17.0.
|
|
115
|
+
"sinon": "^17.0.1",
|
|
116
116
|
"sinon-ts": "^2.0.0",
|
|
117
117
|
"wherearewe": "^2.0.1",
|
|
118
118
|
"which": "^4.0.0"
|
package/src/index.ts
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* services: {
|
|
40
40
|
* aminoDHT: kadDHT({
|
|
41
41
|
* protocol: '/ipfs/kad/1.0.0',
|
|
42
|
-
*
|
|
42
|
+
* peerInfoMapper: removePrivateAddressesMapper
|
|
43
43
|
* })
|
|
44
44
|
* }
|
|
45
45
|
* })
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* services: {
|
|
66
66
|
* lanDHT: kadDHT({
|
|
67
67
|
* protocol: '/ipfs/lan/kad/1.0.0',
|
|
68
|
-
*
|
|
68
|
+
* peerInfoMapper: removePublicAddressesMapper,
|
|
69
69
|
* clientMode: false
|
|
70
70
|
* })
|
|
71
71
|
* }
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"EventTypes": "https://libp2p.github.io/js-libp2p/enums/_libp2p_kad_dht.EventTypes.html",
|
|
3
|
-
".:EventTypes": "https://libp2p.github.io/js-libp2p/enums/_libp2p_kad_dht.EventTypes.html",
|
|
4
|
-
"MessageType": "https://libp2p.github.io/js-libp2p/enums/_libp2p_kad_dht.MessageType.html",
|
|
5
|
-
".:MessageType": "https://libp2p.github.io/js-libp2p/enums/_libp2p_kad_dht.MessageType.html",
|
|
6
|
-
"Record": "https://libp2p.github.io/js-libp2p/classes/_libp2p_kad_dht.Record.html",
|
|
7
|
-
"AddPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.AddPeerEvent.html",
|
|
8
|
-
".:AddPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.AddPeerEvent.html",
|
|
9
|
-
"DHTRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.DHTRecord.html",
|
|
10
|
-
".:DHTRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.DHTRecord.html",
|
|
11
|
-
"DialPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.DialPeerEvent.html",
|
|
12
|
-
".:DialPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.DialPeerEvent.html",
|
|
13
|
-
"FinalPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.FinalPeerEvent.html",
|
|
14
|
-
".:FinalPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.FinalPeerEvent.html",
|
|
15
|
-
"KadDHT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.KadDHT.html",
|
|
16
|
-
".:KadDHT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.KadDHT.html",
|
|
17
|
-
"KadDHTComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.KadDHTComponents.html",
|
|
18
|
-
".:KadDHTComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.KadDHTComponents.html",
|
|
19
|
-
"KadDHTInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.KadDHTInit.html",
|
|
20
|
-
".:KadDHTInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.KadDHTInit.html",
|
|
21
|
-
"PeerInfoMapper": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.PeerInfoMapper.html",
|
|
22
|
-
".:PeerInfoMapper": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.PeerInfoMapper.html",
|
|
23
|
-
"PeerResponseEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.PeerResponseEvent.html",
|
|
24
|
-
".:PeerResponseEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.PeerResponseEvent.html",
|
|
25
|
-
"ProviderEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.ProviderEvent.html",
|
|
26
|
-
".:ProviderEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.ProviderEvent.html",
|
|
27
|
-
"QueryErrorEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.QueryErrorEvent.html",
|
|
28
|
-
".:QueryErrorEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.QueryErrorEvent.html",
|
|
29
|
-
"RoutingTable": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.RoutingTable.html",
|
|
30
|
-
".:RoutingTable": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.RoutingTable.html",
|
|
31
|
-
"SelectFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.SelectFn.html",
|
|
32
|
-
".:SelectFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.SelectFn.html",
|
|
33
|
-
"SendQueryEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.SendQueryEvent.html",
|
|
34
|
-
".:SendQueryEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.SendQueryEvent.html",
|
|
35
|
-
"SingleKadDHT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.SingleKadDHT.html",
|
|
36
|
-
".:SingleKadDHT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.SingleKadDHT.html",
|
|
37
|
-
"ValidateFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.ValidateFn.html",
|
|
38
|
-
".:ValidateFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.ValidateFn.html",
|
|
39
|
-
"ValueEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.ValueEvent.html",
|
|
40
|
-
".:ValueEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad_dht.ValueEvent.html",
|
|
41
|
-
"DHTProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.DHTProgressEvents.html",
|
|
42
|
-
".:DHTProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.DHTProgressEvents.html",
|
|
43
|
-
"MessageName": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.MessageName.html",
|
|
44
|
-
".:MessageName": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.MessageName.html",
|
|
45
|
-
"QueryEvent": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.QueryEvent.html",
|
|
46
|
-
".:QueryEvent": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.QueryEvent.html",
|
|
47
|
-
"Selectors": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.Selectors.html",
|
|
48
|
-
".:Selectors": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.Selectors.html",
|
|
49
|
-
"Validators": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.Validators.html",
|
|
50
|
-
".:Validators": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad_dht.Validators.html",
|
|
51
|
-
"kadDHT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad_dht.kadDHT-1.html",
|
|
52
|
-
".:kadDHT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad_dht.kadDHT-1.html",
|
|
53
|
-
"passthroughMapper": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad_dht.passthroughMapper.html",
|
|
54
|
-
"removePrivateAddressesMapper": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad_dht.removePrivateAddressesMapper.html",
|
|
55
|
-
"removePublicAddressesMapper": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad_dht.removePublicAddressesMapper.html"
|
|
56
|
-
}
|