@olane/o-config 0.2.3 → 0.3.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/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +6 -14
- package/dist/index.d.ts +1 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -7
- package/package.json +2 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAQpC,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,YAcjC,CAAC"}
|
package/dist/config/config.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { tcp } from '@libp2p/tcp';
|
|
2
1
|
import { noise } from '@chainsafe/libp2p-noise';
|
|
3
2
|
import { yamux } from '@chainsafe/libp2p-yamux';
|
|
4
3
|
import { ping } from '@libp2p/ping';
|
|
5
4
|
import { identify } from '@libp2p/identify';
|
|
6
5
|
import { gossipsub } from '@chainsafe/libp2p-gossipsub';
|
|
7
|
-
import { kadDHT, removePublicAddressesMapper } from '@libp2p/kad-dht';
|
|
8
6
|
import { pubsubPeerDiscovery } from '@libp2p/pubsub-peer-discovery';
|
|
7
|
+
import { webTransport } from '@libp2p/webtransport';
|
|
8
|
+
import { webSockets } from '@libp2p/websockets';
|
|
9
|
+
import { webRTC } from '@libp2p/webrtc';
|
|
10
|
+
import { circuitRelayTransport } from '@libp2p/circuit-relay-v2';
|
|
9
11
|
export const defaultLibp2pConfig = {
|
|
10
|
-
listeners: ['/ip4/0.0.0.0/tcp/0'],
|
|
11
|
-
transports: [
|
|
12
|
+
listeners: ['/ip4/0.0.0.0/tcp/0/ws'],
|
|
13
|
+
transports: [webTransport(), webSockets(), webRTC(), circuitRelayTransport()],
|
|
12
14
|
connectionEncrypters: [noise()],
|
|
13
15
|
streamMuxers: [yamux()],
|
|
14
16
|
services: {
|
|
@@ -18,16 +20,6 @@ export const defaultLibp2pConfig = {
|
|
|
18
20
|
// Enable message signing for security
|
|
19
21
|
globalSignaturePolicy: 'StrictSign',
|
|
20
22
|
}),
|
|
21
|
-
dht: kadDHT({
|
|
22
|
-
// protocol: '/ipfs/lan/kad/1.0.0',
|
|
23
|
-
peerInfoMapper: removePublicAddressesMapper,
|
|
24
|
-
clientMode: false, // DO NOT CHANGE THIS, it will break the network
|
|
25
|
-
kBucketSize: 20, // peer size
|
|
26
|
-
}),
|
|
27
23
|
},
|
|
28
24
|
peerDiscovery: [pubsubPeerDiscovery()],
|
|
29
|
-
// peerRouters: [dht as any],
|
|
30
|
-
// contentRouters: [dht as any],
|
|
31
|
-
// Content routing is handled by the DHT service automatically
|
|
32
|
-
// The contentRouting interface is provided by libp2p when DHT service is configured
|
|
33
25
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export * from 'libp2p';
|
|
2
|
-
export * from '@libp2p/tcp';
|
|
3
2
|
export * from '@chainsafe/libp2p-noise';
|
|
4
3
|
export * from '@chainsafe/libp2p-yamux';
|
|
5
|
-
export * from '@libp2p/kad-dht';
|
|
6
|
-
export * from '@libp2p/mdns';
|
|
7
4
|
export * from '@libp2p/ping';
|
|
8
5
|
export * from '@libp2p/crypto/keys';
|
|
9
6
|
export { persistentPeerStore } from '@libp2p/peer-store';
|
|
@@ -11,17 +8,13 @@ export * from './node/index.js';
|
|
|
11
8
|
export * from './config/index.js';
|
|
12
9
|
export * from 'uint8arraylist';
|
|
13
10
|
export * from 'it-pushable';
|
|
14
|
-
export * from '@libp2p/interface-peer-id';
|
|
15
|
-
export * from '@libp2p/interface-keychain';
|
|
16
|
-
export * from 'datastore-fs';
|
|
17
11
|
export * from '@libp2p/peer-id-factory';
|
|
18
12
|
export * from '@libp2p/bootstrap';
|
|
19
13
|
export * from '@libp2p/circuit-relay-v2';
|
|
20
14
|
export * from '@libp2p/memory';
|
|
21
|
-
export { Metrics, OutboundConnectionUpgradeEvents, ComponentLogger, CounterGroup, CreateListenerOptions, DialTransportOptions, Transport, Listener, Connection, transportSymbol, serviceCapabilities, IncomingStreamData, Stream, Libp2pEvents, } from '@libp2p/interface';
|
|
15
|
+
export { Metrics, OutboundConnectionUpgradeEvents, ComponentLogger, CounterGroup, CreateListenerOptions, DialTransportOptions, Transport, Listener, Connection, transportSymbol, serviceCapabilities, IncomingStreamData, Stream, Libp2pEvents, PeerId, } from '@libp2p/interface';
|
|
22
16
|
export { Multiaddr, multiaddr, protocols } from '@multiformats/multiaddr';
|
|
23
17
|
import all from 'it-all';
|
|
24
18
|
export { all };
|
|
25
19
|
export { pipe } from 'it-pipe';
|
|
26
|
-
export { prometheusMetrics } from '@libp2p/prometheus-metrics';
|
|
27
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,OAAO,EACP,+BAA+B,EAC/B,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,MAAM,EACN,YAAY,EACZ,MAAM,GACP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,GAAG,MAAM,QAAQ,CAAC;AACzB,OAAO,EAAE,GAAG,EAAE,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export * from 'libp2p';
|
|
2
|
-
export * from '@libp2p/tcp';
|
|
3
2
|
export * from '@chainsafe/libp2p-noise';
|
|
4
3
|
export * from '@chainsafe/libp2p-yamux';
|
|
5
|
-
export * from '@libp2p/kad-dht';
|
|
6
|
-
export * from '@libp2p/mdns';
|
|
7
4
|
export * from '@libp2p/ping';
|
|
8
5
|
export * from '@libp2p/crypto/keys';
|
|
9
6
|
export { persistentPeerStore } from '@libp2p/peer-store';
|
|
@@ -11,9 +8,6 @@ export * from './node/index.js';
|
|
|
11
8
|
export * from './config/index.js';
|
|
12
9
|
export * from 'uint8arraylist';
|
|
13
10
|
export * from 'it-pushable';
|
|
14
|
-
export * from '@libp2p/interface-peer-id';
|
|
15
|
-
export * from '@libp2p/interface-keychain';
|
|
16
|
-
export * from 'datastore-fs';
|
|
17
11
|
export * from '@libp2p/peer-id-factory';
|
|
18
12
|
export * from '@libp2p/bootstrap';
|
|
19
13
|
export * from '@libp2p/circuit-relay-v2';
|
|
@@ -23,4 +17,3 @@ export { multiaddr, protocols } from '@multiformats/multiaddr';
|
|
|
23
17
|
import all from 'it-all';
|
|
24
18
|
export { all };
|
|
25
19
|
export { pipe } from 'it-pipe';
|
|
26
|
-
export { prometheusMetrics } from '@libp2p/prometheus-metrics';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-config",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/olane-labs/
|
|
28
|
+
"url": "git+https://github.com/olane-labs/olane.git"
|
|
29
29
|
},
|
|
30
30
|
"author": "oLane Inc.",
|
|
31
31
|
"license": "ISC",
|
|
@@ -60,26 +60,16 @@
|
|
|
60
60
|
"@libp2p/circuit-relay-v2": "^3.2.18",
|
|
61
61
|
"@libp2p/identify": "^3.0.35",
|
|
62
62
|
"@libp2p/interface": "^2.10.4",
|
|
63
|
-
"@libp2p/interface-connection": "^5.1.1",
|
|
64
|
-
"@libp2p/interface-keychain": "^2.0.5",
|
|
65
|
-
"@libp2p/interface-peer-id": "^2.0.2",
|
|
66
|
-
"@libp2p/interface-registrar": "^2.0.12",
|
|
67
|
-
"@libp2p/interface-transport": "^4.0.3",
|
|
68
|
-
"@libp2p/kad-dht": "^15.1.5",
|
|
69
|
-
"@libp2p/mdns": "^11.0.41",
|
|
70
63
|
"@libp2p/memory": "^1.1.11",
|
|
71
64
|
"@libp2p/peer-id-factory": "^4.2.4",
|
|
72
65
|
"@libp2p/peer-store": "^11.2.5",
|
|
73
66
|
"@libp2p/ping": "^2.0.35",
|
|
74
|
-
"@libp2p/prometheus-metrics": "^4.3.25",
|
|
75
67
|
"@libp2p/pubsub": "^10.1.16",
|
|
76
68
|
"@libp2p/pubsub-peer-discovery": "^11.0.2",
|
|
77
|
-
"@libp2p/tcp": "^10.1.16",
|
|
78
69
|
"@libp2p/webrtc": "^5.2.23",
|
|
79
70
|
"@libp2p/websockets": "^9.2.18",
|
|
80
71
|
"@libp2p/webtransport": "^5.0.50",
|
|
81
72
|
"@multiformats/multiaddr": "^12.5.0",
|
|
82
|
-
"datastore-fs": "^10.0.4",
|
|
83
73
|
"it-all": "^3.0.9",
|
|
84
74
|
"it-pushable": "^3.2.3",
|
|
85
75
|
"libp2p": "^2.8.11",
|