@libp2p/kad-dht 16.4.10 → 16.4.11-6c208de84
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/dist/index.min.js +1 -1
- package/dist/index.min.js.map +3 -3
- package/dist/src/peer-distance-list.d.ts +1 -11
- package/dist/src/peer-distance-list.d.ts.map +1 -1
- package/dist/src/peer-distance-list.js +0 -23
- package/dist/src/peer-distance-list.js.map +1 -1
- package/package.json +12 -12
- package/src/peer-distance-list.ts +1 -31
- package/dist/typedoc-urls.json +0 -65
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DisjointPath } from './index.ts';
|
|
2
|
-
import type { AbortOptions,
|
|
2
|
+
import type { AbortOptions, PeerInfo } from '@libp2p/interface';
|
|
3
3
|
interface PeerDistance {
|
|
4
4
|
peer: PeerInfo;
|
|
5
5
|
distance: Uint8Array;
|
|
@@ -40,16 +40,6 @@ export declare class PeerDistanceList {
|
|
|
40
40
|
* list: under capacity, or strictly closer than the furthest entry.
|
|
41
41
|
*/
|
|
42
42
|
canAddKadId(kadId: Uint8Array): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Indicates whether any of the peerIds passed as a parameter are closer
|
|
45
|
-
* to the origin key than the furthest peerId in the PeerDistanceList.
|
|
46
|
-
*/
|
|
47
|
-
isCloser(peerId: PeerId, options?: AbortOptions): Promise<boolean>;
|
|
48
|
-
/**
|
|
49
|
-
* Indicates whether any of the peerIds passed as a parameter are closer
|
|
50
|
-
* to the origin key than the furthest peerId in the PeerDistanceList.
|
|
51
|
-
*/
|
|
52
|
-
anyCloser(peerIds: PeerId[], options?: AbortOptions): Promise<boolean>;
|
|
53
43
|
}
|
|
54
44
|
export {};
|
|
55
45
|
//# sourceMappingURL=peer-distance-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peer-distance-list.d.ts","sourceRoot":"","sources":["../../src/peer-distance-list.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"peer-distance-list.d.ts","sourceRoot":"","sources":["../../src/peer-distance-list.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE/D,UAAU,YAAY;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,UAAU,CAAA;IACpB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED;;GAEG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAY;IAEzC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;IAEjC,OAAO,CAAC,aAAa,CAAgB;gBAExB,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM;IAMvD;;OAEG;IACH,IAAI,MAAM,IAAK,MAAM,CAEpB;IAED;;OAEG;IACH,IAAI,KAAK,IAAK,YAAY,EAAE,CAE3B;IAED;;OAEG;IACG,GAAG,CAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAE,YAA6D,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtI;;OAEG;IACH,YAAY,CAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,GAAE,YAA6D,GAAG,IAAI;IAsC3H;;;OAGG;IACH,WAAW,CAAE,KAAK,EAAE,UAAU,GAAG,OAAO;CAUzC"}
|
|
@@ -83,28 +83,5 @@ export class PeerDistanceList {
|
|
|
83
83
|
const furthest = this.peerDistances[this.peerDistances.length - 1].distance;
|
|
84
84
|
return uint8ArrayXorCompare(distance, furthest) === -1;
|
|
85
85
|
}
|
|
86
|
-
/**
|
|
87
|
-
* Indicates whether any of the peerIds passed as a parameter are closer
|
|
88
|
-
* to the origin key than the furthest peerId in the PeerDistanceList.
|
|
89
|
-
*/
|
|
90
|
-
async isCloser(peerId, options) {
|
|
91
|
-
if (this.length === 0) {
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
const dhtKey = await convertPeerId(peerId, options);
|
|
95
|
-
const dhtKeyXor = uint8ArrayXor(dhtKey, this.originDhtKey);
|
|
96
|
-
const furthestDistance = this.peerDistances[this.peerDistances.length - 1].distance;
|
|
97
|
-
return uint8ArrayXorCompare(dhtKeyXor, furthestDistance) === -1;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Indicates whether any of the peerIds passed as a parameter are closer
|
|
101
|
-
* to the origin key than the furthest peerId in the PeerDistanceList.
|
|
102
|
-
*/
|
|
103
|
-
async anyCloser(peerIds, options) {
|
|
104
|
-
if (peerIds.length === 0) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
return Promise.any(peerIds.map(async (peerId) => this.isCloser(peerId, options)));
|
|
108
|
-
}
|
|
109
86
|
}
|
|
110
87
|
//# sourceMappingURL=peer-distance-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peer-distance-list.js","sourceRoot":"","sources":["../../src/peer-distance-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAU1C;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC3B;;OAEG;IACc,YAAY,CAAY;IAEzC;;OAEG;IACc,QAAQ,CAAQ;IAEzB,aAAa,CAAgB;IAErC,YAAa,YAAwB,EAAE,QAAgB;QACrD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,Q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C;gBACrC,KAAK,GAAG,IAAI,CAAA;gBACZ,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAA;gBACnC,MAAK;YACP,CAAC;QACH,CAAC;QAED,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAC7B,CAAC;QAED,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACjE,CAAC;IAED;;;OAGG;IACH,WAAW,CAAE,KAAiB;QAC5B,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC9C,OAAO,IAAI,CAAA;QACb,CAAC;QAED,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAA;QACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAA;QAE3E,OAAO,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAA;IACxD,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/kad-dht",
|
|
3
|
-
"version": "16.4.
|
|
3
|
+
"version": "16.4.11-6c208de84",
|
|
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",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"doc-check": "aegir doc-check"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@libp2p/crypto": "
|
|
52
|
-
"@libp2p/interface": "
|
|
53
|
-
"@libp2p/interface-internal": "
|
|
54
|
-
"@libp2p/peer-collections": "
|
|
55
|
-
"@libp2p/peer-id": "
|
|
56
|
-
"@libp2p/ping": "
|
|
57
|
-
"@libp2p/record": "
|
|
58
|
-
"@libp2p/utils": "
|
|
51
|
+
"@libp2p/crypto": "5.2.1-6c208de84",
|
|
52
|
+
"@libp2p/interface": "3.4.0-6c208de84",
|
|
53
|
+
"@libp2p/interface-internal": "3.2.4-6c208de84",
|
|
54
|
+
"@libp2p/peer-collections": "7.0.34-6c208de84",
|
|
55
|
+
"@libp2p/peer-id": "6.0.19-6c208de84",
|
|
56
|
+
"@libp2p/ping": "3.1.19-6c208de84",
|
|
57
|
+
"@libp2p/record": "4.0.15-6c208de84",
|
|
58
|
+
"@libp2p/utils": "7.4.7-6c208de84",
|
|
59
59
|
"@multiformats/multiaddr": "^13.0.3",
|
|
60
60
|
"@multiformats/multiaddr-matcher": "^3.0.2",
|
|
61
61
|
"any-signal": "^4.1.1",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"uint8arrays": "^6.1.1"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@libp2p/logger": "
|
|
85
|
-
"@libp2p/peer-store": "
|
|
84
|
+
"@libp2p/logger": "6.2.17-6c208de84",
|
|
85
|
+
"@libp2p/peer-store": "12.0.34-6c208de84",
|
|
86
86
|
"@types/lodash.random": "^3.2.9",
|
|
87
87
|
"@types/lodash.range": "^3.2.9",
|
|
88
88
|
"@types/sinon": "^22.0.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"it-length-prefixed": "^11.0.1",
|
|
99
99
|
"lodash.random": "^3.2.0",
|
|
100
100
|
"lodash.range": "^3.2.0",
|
|
101
|
-
"p-retry": "^
|
|
101
|
+
"p-retry": "^9.0.0",
|
|
102
102
|
"protons": "^9.0.1",
|
|
103
103
|
"sinon": "^22.0.0",
|
|
104
104
|
"sinon-ts": "^2.0.0",
|
|
@@ -2,7 +2,7 @@ import { xor as uint8ArrayXor } from 'uint8arrays/xor'
|
|
|
2
2
|
import { xorCompare as uint8ArrayXorCompare } from 'uint8arrays/xor-compare'
|
|
3
3
|
import { convertPeerId } from './utils.ts'
|
|
4
4
|
import type { DisjointPath } from './index.ts'
|
|
5
|
-
import type { AbortOptions,
|
|
5
|
+
import type { AbortOptions, PeerInfo } from '@libp2p/interface'
|
|
6
6
|
|
|
7
7
|
interface PeerDistance {
|
|
8
8
|
peer: PeerInfo
|
|
@@ -110,34 +110,4 @@ export class PeerDistanceList {
|
|
|
110
110
|
|
|
111
111
|
return uint8ArrayXorCompare(distance, furthest) === -1
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Indicates whether any of the peerIds passed as a parameter are closer
|
|
116
|
-
* to the origin key than the furthest peerId in the PeerDistanceList.
|
|
117
|
-
*/
|
|
118
|
-
async isCloser (peerId: PeerId, options?: AbortOptions): Promise<boolean> {
|
|
119
|
-
if (this.length === 0) {
|
|
120
|
-
return true
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const dhtKey = await convertPeerId(peerId, options)
|
|
124
|
-
const dhtKeyXor = uint8ArrayXor(dhtKey, this.originDhtKey)
|
|
125
|
-
const furthestDistance = this.peerDistances[this.peerDistances.length - 1].distance
|
|
126
|
-
|
|
127
|
-
return uint8ArrayXorCompare(dhtKeyXor, furthestDistance) === -1
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Indicates whether any of the peerIds passed as a parameter are closer
|
|
132
|
-
* to the origin key than the furthest peerId in the PeerDistanceList.
|
|
133
|
-
*/
|
|
134
|
-
async anyCloser (peerIds: PeerId[], options?: AbortOptions): Promise<boolean> {
|
|
135
|
-
if (peerIds.length === 0) {
|
|
136
|
-
return false
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return Promise.any(
|
|
140
|
-
peerIds.map(async peerId => this.isCloser(peerId, options))
|
|
141
|
-
)
|
|
142
|
-
}
|
|
143
113
|
}
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"codec": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad-dht.MessageType.codec.html",
|
|
3
|
-
"EventTypes": "https://libp2p.github.io/js-libp2p/enums/_libp2p_kad-dht.EventTypes.html",
|
|
4
|
-
".:EventTypes": "https://libp2p.github.io/js-libp2p/enums/_libp2p_kad-dht.EventTypes.html",
|
|
5
|
-
"MessageType": "https://libp2p.github.io/js-libp2p/enums/_libp2p_kad-dht.MessageType.html",
|
|
6
|
-
"AddPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.AddPeerEvent.html",
|
|
7
|
-
".:AddPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.AddPeerEvent.html",
|
|
8
|
-
"DHTRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.DHTRecord.html",
|
|
9
|
-
".:DHTRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.DHTRecord.html",
|
|
10
|
-
"DialPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.DialPeerEvent.html",
|
|
11
|
-
".:DialPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.DialPeerEvent.html",
|
|
12
|
-
"DisjointPath": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.DisjointPath.html",
|
|
13
|
-
".:DisjointPath": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.DisjointPath.html",
|
|
14
|
-
"FinalPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.FinalPeerEvent.html",
|
|
15
|
-
".:FinalPeerEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.FinalPeerEvent.html",
|
|
16
|
-
"KadDHT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.KadDHT.html",
|
|
17
|
-
".:KadDHT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.KadDHT.html",
|
|
18
|
-
"KadDHTComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.KadDHTComponents.html",
|
|
19
|
-
".:KadDHTComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.KadDHTComponents.html",
|
|
20
|
-
"KadDHTInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.KadDHTInit.html",
|
|
21
|
-
".:KadDHTInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.KadDHTInit.html",
|
|
22
|
-
"PathEndedEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.PathEndedEvent.html",
|
|
23
|
-
".:PathEndedEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.PathEndedEvent.html",
|
|
24
|
-
"PeerInfoMapper": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.PeerInfoMapper.html",
|
|
25
|
-
".:PeerInfoMapper": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.PeerInfoMapper.html",
|
|
26
|
-
"PeerResponseEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.PeerResponseEvent.html",
|
|
27
|
-
".:PeerResponseEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.PeerResponseEvent.html",
|
|
28
|
-
"ProviderEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ProviderEvent.html",
|
|
29
|
-
".:ProviderEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ProviderEvent.html",
|
|
30
|
-
"ProvidersInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ProvidersInit.html",
|
|
31
|
-
".:ProvidersInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ProvidersInit.html",
|
|
32
|
-
"QueryErrorEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.QueryErrorEvent.html",
|
|
33
|
-
".:QueryErrorEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.QueryErrorEvent.html",
|
|
34
|
-
"ReProvideInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ReProvideInit.html",
|
|
35
|
-
".:ReProvideInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ReProvideInit.html",
|
|
36
|
-
"RoutingTable": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.RoutingTable.html",
|
|
37
|
-
".:RoutingTable": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.RoutingTable.html",
|
|
38
|
-
"SelectFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.SelectFn.html",
|
|
39
|
-
".:SelectFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.SelectFn.html",
|
|
40
|
-
"SendQueryEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.SendQueryEvent.html",
|
|
41
|
-
".:SendQueryEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.SendQueryEvent.html",
|
|
42
|
-
"SetModeOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.SetModeOptions.html",
|
|
43
|
-
".:SetModeOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.SetModeOptions.html",
|
|
44
|
-
"SingleKadDHT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.SingleKadDHT.html",
|
|
45
|
-
".:SingleKadDHT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.SingleKadDHT.html",
|
|
46
|
-
"ValidateFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ValidateFn.html",
|
|
47
|
-
".:ValidateFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ValidateFn.html",
|
|
48
|
-
"ValueEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ValueEvent.html",
|
|
49
|
-
".:ValueEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_kad-dht.ValueEvent.html",
|
|
50
|
-
"DHTProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.DHTProgressEvents.html",
|
|
51
|
-
".:DHTProgressEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.DHTProgressEvents.html",
|
|
52
|
-
"MessageName": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.MessageName.html",
|
|
53
|
-
".:MessageName": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.MessageName.html",
|
|
54
|
-
"QueryEvent": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.QueryEvent.html",
|
|
55
|
-
".:QueryEvent": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.QueryEvent.html",
|
|
56
|
-
"Selectors": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.Selectors.html",
|
|
57
|
-
".:Selectors": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.Selectors.html",
|
|
58
|
-
"Validators": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.Validators.html",
|
|
59
|
-
".:Validators": "https://libp2p.github.io/js-libp2p/types/_libp2p_kad-dht.Validators.html",
|
|
60
|
-
"kadDHT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad-dht.kadDHT.html",
|
|
61
|
-
".:kadDHT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad-dht.kadDHT.html",
|
|
62
|
-
"passthroughMapper": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad-dht.passthroughMapper.html",
|
|
63
|
-
"removePrivateAddressesMapper": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad-dht.removePrivateAddressesMapper.html",
|
|
64
|
-
"removePublicAddressesMapper": "https://libp2p.github.io/js-libp2p/functions/_libp2p_kad-dht.removePublicAddressesMapper.html"
|
|
65
|
-
}
|