@libp2p/kad-dht 5.0.0 → 5.0.2

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 CHANGED
@@ -47,10 +47,10 @@ The libp2p-kad-dht module offers 3 APIs: Peer Routing, Content Routing and Peer
47
47
 
48
48
  ```js
49
49
  import { createLibp2pNode } from 'libp2p'
50
- import { kadDht } from '@libp2p/kad-dht'
50
+ import { kadDHT } from '@libp2p/kad-dht'
51
51
 
52
52
  const node = await createLibp2pNode({
53
- dht: kadDht()
53
+ dht: kadDHT()
54
54
  //... other config
55
55
  })
56
56
  await node.start()
@@ -61,5 +61,5 @@ export interface KadDHTComponents {
61
61
  connectionManager: ConnectionManager;
62
62
  datastore: Datastore;
63
63
  }
64
- export declare function kadDht(init?: KadDHTInit): (components: KadDHTComponents) => DualKadDHT;
64
+ export declare function kadDHT(init?: KadDHTInit): (components: KadDHTComponents) => DualKadDHT;
65
65
  //# sourceMappingURL=index.d.ts.map
package/dist/src/index.js CHANGED
@@ -14,7 +14,7 @@ class KadDHT extends DualKadDHT {
14
14
  }));
15
15
  }
16
16
  }
17
- export function kadDht(init) {
17
+ export function kadDHT(init) {
18
18
  return (components) => new KadDHT(components, init);
19
19
  }
20
20
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/kad-dht",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
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-kad-dht#readme",
@@ -161,17 +161,17 @@
161
161
  "err-code": "^3.0.1",
162
162
  "hashlru": "^2.3.0",
163
163
  "interface-datastore": "^7.0.0",
164
- "it-all": "^1.0.6",
165
- "it-drain": "^1.0.5",
166
- "it-first": "^1.0.6",
167
- "it-length": "^1.0.3",
164
+ "it-all": "^2.0.0",
165
+ "it-drain": "^2.0.0",
166
+ "it-first": "^2.0.0",
167
+ "it-length": "^2.0.0",
168
168
  "it-length-prefixed": "^8.0.2",
169
- "it-map": "^1.0.6",
170
- "it-merge": "^1.0.3",
171
- "it-parallel": "^2.0.1",
169
+ "it-map": "^2.0.0",
170
+ "it-merge": "^2.0.0",
171
+ "it-parallel": "^3.0.0",
172
172
  "it-pipe": "^2.0.3",
173
173
  "it-stream-types": "^1.0.4",
174
- "it-take": "^1.0.2",
174
+ "it-take": "^2.0.0",
175
175
  "k-bucket": "^5.1.0",
176
176
  "multiformats": "^10.0.0",
177
177
  "p-defer": "^4.0.0",
@@ -195,8 +195,8 @@
195
195
  "datastore-level": "^9.0.0",
196
196
  "delay": "^5.0.0",
197
197
  "execa": "^6.0.0",
198
- "it-filter": "^1.0.3",
199
- "it-last": "^1.0.6",
198
+ "it-filter": "^2.0.0",
199
+ "it-last": "^2.0.0",
200
200
  "it-pair": "^2.0.2",
201
201
  "lodash.random": "^3.2.0",
202
202
  "lodash.range": "^3.2.0",
package/src/index.ts CHANGED
@@ -90,6 +90,6 @@ class KadDHT extends DualKadDHT {
90
90
  }
91
91
  }
92
92
 
93
- export function kadDht (init?: KadDHTInit): (components: KadDHTComponents) => DualKadDHT {
93
+ export function kadDHT (init?: KadDHTInit): (components: KadDHTComponents) => DualKadDHT {
94
94
  return (components: KadDHTComponents) => new KadDHT(components, init)
95
95
  }