@libp2p/kad-dht 5.0.0 → 5.0.1

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.1",
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",
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
  }