@olane/o-config 0.3.5 → 0.3.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAIpC,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,mBAAmB,EAAE,YAUjC,CAAC"}
|
package/dist/config/config.js
CHANGED
|
@@ -3,6 +3,7 @@ import { yamux } from '@chainsafe/libp2p-yamux';
|
|
|
3
3
|
import { ping } from '@libp2p/ping';
|
|
4
4
|
import { identify } from '@libp2p/identify';
|
|
5
5
|
import { webSockets } from '@libp2p/websockets';
|
|
6
|
+
import { kadDHT } from '@libp2p/kad-dht';
|
|
6
7
|
export const defaultLibp2pConfig = {
|
|
7
8
|
listeners: ['/ip4/0.0.0.0/tcp/0/ws'],
|
|
8
9
|
transports: [webSockets()],
|
|
@@ -11,5 +12,6 @@ export const defaultLibp2pConfig = {
|
|
|
11
12
|
services: {
|
|
12
13
|
ping: ping(),
|
|
13
14
|
identify: identify(),
|
|
15
|
+
dht: kadDHT(),
|
|
14
16
|
},
|
|
15
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@libp2p/bootstrap": "^11.0.41",
|
|
59
59
|
"@libp2p/identify": "^3.0.35",
|
|
60
60
|
"@libp2p/interface": "^2.10.4",
|
|
61
|
+
"@libp2p/kad-dht": "^15.1.11",
|
|
61
62
|
"@libp2p/memory": "^1.1.11",
|
|
62
63
|
"@libp2p/peer-id-factory": "^4.2.4",
|
|
63
64
|
"@libp2p/peer-store": "^11.2.5",
|