libp2p 0.46.4-7b2ddc17 → 0.46.4-d30f09f2
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 +9 -9
- package/dist/src/connection-manager/constants.browser.d.ts +18 -0
- package/dist/src/connection-manager/constants.browser.d.ts.map +1 -0
- package/dist/src/connection-manager/constants.browser.js +18 -0
- package/dist/src/connection-manager/constants.browser.js.map +1 -0
- package/dist/src/connection-manager/constants.d.ts +1 -36
- package/dist/src/connection-manager/constants.d.ts.map +1 -1
- package/dist/src/connection-manager/constants.defaults.d.ts +37 -0
- package/dist/src/connection-manager/constants.defaults.d.ts.map +1 -0
- package/dist/src/connection-manager/constants.defaults.js +37 -0
- package/dist/src/connection-manager/constants.defaults.js.map +1 -0
- package/dist/src/connection-manager/constants.js +1 -36
- package/dist/src/connection-manager/constants.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +22 -21
- package/src/connection-manager/constants.browser.ts +21 -0
- package/src/connection-manager/constants.defaults.ts +44 -0
- package/src/connection-manager/constants.ts +1 -44
- package/src/version.ts +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './constants.defaults.js';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDials
|
|
4
|
+
*/
|
|
5
|
+
export declare const MAX_PARALLEL_DIALS = 10;
|
|
6
|
+
/**
|
|
7
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#minConnections
|
|
8
|
+
*/
|
|
9
|
+
export declare const MIN_CONNECTIONS = 5;
|
|
10
|
+
/**
|
|
11
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxConnections
|
|
12
|
+
*/
|
|
13
|
+
export declare const MAX_CONNECTIONS = 100;
|
|
14
|
+
/**
|
|
15
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialConcurrency
|
|
16
|
+
*/
|
|
17
|
+
export declare const AUTO_DIAL_CONCURRENCY = 10;
|
|
18
|
+
//# sourceMappingURL=constants.browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.browser.d.ts","sourceRoot":"","sources":["../../../src/connection-manager/constants.browser.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,eAAe,IAAI,CAAA;AAEhC;;GAEG;AACH,eAAO,MAAM,eAAe,MAAM,CAAA;AAElC;;GAEG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './constants.defaults.js';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDials
|
|
4
|
+
*/
|
|
5
|
+
export const MAX_PARALLEL_DIALS = 10;
|
|
6
|
+
/**
|
|
7
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#minConnections
|
|
8
|
+
*/
|
|
9
|
+
export const MIN_CONNECTIONS = 5;
|
|
10
|
+
/**
|
|
11
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxConnections
|
|
12
|
+
*/
|
|
13
|
+
export const MAX_CONNECTIONS = 100;
|
|
14
|
+
/**
|
|
15
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialConcurrency
|
|
16
|
+
*/
|
|
17
|
+
export const AUTO_DIAL_CONCURRENCY = 10;
|
|
18
|
+
//# sourceMappingURL=constants.browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.browser.js","sourceRoot":"","sources":["../../../src/connection-manager/constants.browser.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAEpC;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAA;AAEhC;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,CAAA"}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#dialTimeout
|
|
3
|
-
*/
|
|
4
|
-
export declare const DIAL_TIMEOUT = 30000;
|
|
5
|
-
/**
|
|
6
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundUpgradeTimeout
|
|
7
|
-
*/
|
|
8
|
-
export declare const INBOUND_UPGRADE_TIMEOUT = 30000;
|
|
1
|
+
export * from './constants.defaults.js';
|
|
9
2
|
/**
|
|
10
3
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDials
|
|
11
4
|
*/
|
|
12
5
|
export declare const MAX_PARALLEL_DIALS = 100;
|
|
13
|
-
/**
|
|
14
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxPeerAddrsToDial
|
|
15
|
-
*/
|
|
16
|
-
export declare const MAX_PEER_ADDRS_TO_DIAL = 25;
|
|
17
|
-
/**
|
|
18
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDialsPerPeer
|
|
19
|
-
*/
|
|
20
|
-
export declare const MAX_PARALLEL_DIALS_PER_PEER = 10;
|
|
21
6
|
/**
|
|
22
7
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#minConnections
|
|
23
8
|
*/
|
|
@@ -26,28 +11,8 @@ export declare const MIN_CONNECTIONS = 50;
|
|
|
26
11
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxConnections
|
|
27
12
|
*/
|
|
28
13
|
export declare const MAX_CONNECTIONS = 300;
|
|
29
|
-
/**
|
|
30
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialInterval
|
|
31
|
-
*/
|
|
32
|
-
export declare const AUTO_DIAL_INTERVAL = 5000;
|
|
33
14
|
/**
|
|
34
15
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialConcurrency
|
|
35
16
|
*/
|
|
36
17
|
export declare const AUTO_DIAL_CONCURRENCY = 25;
|
|
37
|
-
/**
|
|
38
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialPriority
|
|
39
|
-
*/
|
|
40
|
-
export declare const AUTO_DIAL_PRIORITY = 0;
|
|
41
|
-
/**
|
|
42
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialMaxQueueLength
|
|
43
|
-
*/
|
|
44
|
-
export declare const AUTO_DIAL_MAX_QUEUE_LENGTH = 100;
|
|
45
|
-
/**
|
|
46
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundConnectionThreshold
|
|
47
|
-
*/
|
|
48
|
-
export declare const INBOUND_CONNECTION_THRESHOLD = 5;
|
|
49
|
-
/**
|
|
50
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxIncomingPendingConnections
|
|
51
|
-
*/
|
|
52
|
-
export declare const MAX_INCOMING_PENDING_CONNECTIONS = 10;
|
|
53
18
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/connection-manager/constants.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/connection-manager/constants.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,eAAe,KAAK,CAAA;AAEjC;;GAEG;AACH,eAAO,MAAM,eAAe,MAAM,CAAA;AAElC;;GAEG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#dialTimeout
|
|
3
|
+
*/
|
|
4
|
+
export declare const DIAL_TIMEOUT = 30000;
|
|
5
|
+
/**
|
|
6
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundUpgradeTimeout
|
|
7
|
+
*/
|
|
8
|
+
export declare const INBOUND_UPGRADE_TIMEOUT = 30000;
|
|
9
|
+
/**
|
|
10
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxPeerAddrsToDial
|
|
11
|
+
*/
|
|
12
|
+
export declare const MAX_PEER_ADDRS_TO_DIAL = 25;
|
|
13
|
+
/**
|
|
14
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDialsPerPeer
|
|
15
|
+
*/
|
|
16
|
+
export declare const MAX_PARALLEL_DIALS_PER_PEER = 10;
|
|
17
|
+
/**
|
|
18
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialInterval
|
|
19
|
+
*/
|
|
20
|
+
export declare const AUTO_DIAL_INTERVAL = 5000;
|
|
21
|
+
/**
|
|
22
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialPriority
|
|
23
|
+
*/
|
|
24
|
+
export declare const AUTO_DIAL_PRIORITY = 0;
|
|
25
|
+
/**
|
|
26
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialMaxQueueLength
|
|
27
|
+
*/
|
|
28
|
+
export declare const AUTO_DIAL_MAX_QUEUE_LENGTH = 100;
|
|
29
|
+
/**
|
|
30
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundConnectionThreshold
|
|
31
|
+
*/
|
|
32
|
+
export declare const INBOUND_CONNECTION_THRESHOLD = 5;
|
|
33
|
+
/**
|
|
34
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxIncomingPendingConnections
|
|
35
|
+
*/
|
|
36
|
+
export declare const MAX_INCOMING_PENDING_CONNECTIONS = 10;
|
|
37
|
+
//# sourceMappingURL=constants.defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.defaults.d.ts","sourceRoot":"","sources":["../../../src/connection-manager/constants.defaults.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,YAAY,QAAO,CAAA;AAEhC;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,CAAA;AAE3C;;GAEG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,kBAAkB,OAAO,CAAA;AAEtC;;GAEG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAA;AAEnC;;GAEG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,gCAAgC,KAAK,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#dialTimeout
|
|
3
|
+
*/
|
|
4
|
+
export const DIAL_TIMEOUT = 30e3;
|
|
5
|
+
/**
|
|
6
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundUpgradeTimeout
|
|
7
|
+
*/
|
|
8
|
+
export const INBOUND_UPGRADE_TIMEOUT = 30e3;
|
|
9
|
+
/**
|
|
10
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxPeerAddrsToDial
|
|
11
|
+
*/
|
|
12
|
+
export const MAX_PEER_ADDRS_TO_DIAL = 25;
|
|
13
|
+
/**
|
|
14
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDialsPerPeer
|
|
15
|
+
*/
|
|
16
|
+
export const MAX_PARALLEL_DIALS_PER_PEER = 10;
|
|
17
|
+
/**
|
|
18
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialInterval
|
|
19
|
+
*/
|
|
20
|
+
export const AUTO_DIAL_INTERVAL = 5000;
|
|
21
|
+
/**
|
|
22
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialPriority
|
|
23
|
+
*/
|
|
24
|
+
export const AUTO_DIAL_PRIORITY = 0;
|
|
25
|
+
/**
|
|
26
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialMaxQueueLength
|
|
27
|
+
*/
|
|
28
|
+
export const AUTO_DIAL_MAX_QUEUE_LENGTH = 100;
|
|
29
|
+
/**
|
|
30
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundConnectionThreshold
|
|
31
|
+
*/
|
|
32
|
+
export const INBOUND_CONNECTION_THRESHOLD = 5;
|
|
33
|
+
/**
|
|
34
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxIncomingPendingConnections
|
|
35
|
+
*/
|
|
36
|
+
export const MAX_INCOMING_PENDING_CONNECTIONS = 10;
|
|
37
|
+
//# sourceMappingURL=constants.defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.defaults.js","sourceRoot":"","sources":["../../../src/connection-manager/constants.defaults.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAA;AAEhC;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAA;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAA;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAA;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAA;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,CAAA"}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#dialTimeout
|
|
3
|
-
*/
|
|
4
|
-
export const DIAL_TIMEOUT = 30e3;
|
|
5
|
-
/**
|
|
6
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundUpgradeTimeout
|
|
7
|
-
*/
|
|
8
|
-
export const INBOUND_UPGRADE_TIMEOUT = 30e3;
|
|
1
|
+
export * from './constants.defaults.js';
|
|
9
2
|
/**
|
|
10
3
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDials
|
|
11
4
|
*/
|
|
12
5
|
export const MAX_PARALLEL_DIALS = 100;
|
|
13
|
-
/**
|
|
14
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxPeerAddrsToDial
|
|
15
|
-
*/
|
|
16
|
-
export const MAX_PEER_ADDRS_TO_DIAL = 25;
|
|
17
|
-
/**
|
|
18
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDialsPerPeer
|
|
19
|
-
*/
|
|
20
|
-
export const MAX_PARALLEL_DIALS_PER_PEER = 10;
|
|
21
6
|
/**
|
|
22
7
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#minConnections
|
|
23
8
|
*/
|
|
@@ -26,28 +11,8 @@ export const MIN_CONNECTIONS = 50;
|
|
|
26
11
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxConnections
|
|
27
12
|
*/
|
|
28
13
|
export const MAX_CONNECTIONS = 300;
|
|
29
|
-
/**
|
|
30
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialInterval
|
|
31
|
-
*/
|
|
32
|
-
export const AUTO_DIAL_INTERVAL = 5000;
|
|
33
14
|
/**
|
|
34
15
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialConcurrency
|
|
35
16
|
*/
|
|
36
17
|
export const AUTO_DIAL_CONCURRENCY = 25;
|
|
37
|
-
/**
|
|
38
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialPriority
|
|
39
|
-
*/
|
|
40
|
-
export const AUTO_DIAL_PRIORITY = 0;
|
|
41
|
-
/**
|
|
42
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialMaxQueueLength
|
|
43
|
-
*/
|
|
44
|
-
export const AUTO_DIAL_MAX_QUEUE_LENGTH = 100;
|
|
45
|
-
/**
|
|
46
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundConnectionThreshold
|
|
47
|
-
*/
|
|
48
|
-
export const INBOUND_CONNECTION_THRESHOLD = 5;
|
|
49
|
-
/**
|
|
50
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxIncomingPendingConnections
|
|
51
|
-
*/
|
|
52
|
-
export const MAX_INCOMING_PENDING_CONNECTIONS = 10;
|
|
53
18
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/connection-manager/constants.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/connection-manager/constants.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAA;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAA;AAEjC;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,CAAA"}
|
package/dist/src/version.d.ts
CHANGED
package/dist/src/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libp2p",
|
|
3
|
-
"version": "0.46.4-
|
|
3
|
+
"version": "0.46.4-d30f09f2",
|
|
4
4
|
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/libp2p#readme",
|
|
@@ -115,18 +115,18 @@
|
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
117
|
"@achingbrain/nat-port-mapper": "^1.0.9",
|
|
118
|
-
"@libp2p/crypto": "2.0.3-
|
|
119
|
-
"@libp2p/interface": "0.1.2-
|
|
120
|
-
"@libp2p/interface-internal": "0.1.3-
|
|
121
|
-
"@libp2p/keychain": "3.0.3-
|
|
122
|
-
"@libp2p/logger": "3.0.2-
|
|
123
|
-
"@libp2p/multistream-select": "4.0.2-
|
|
124
|
-
"@libp2p/peer-collections": "4.0.3-
|
|
125
|
-
"@libp2p/peer-id": "3.0.2-
|
|
126
|
-
"@libp2p/peer-id-factory": "3.0.3-
|
|
127
|
-
"@libp2p/peer-record": "6.0.3-
|
|
128
|
-
"@libp2p/peer-store": "9.0.3-
|
|
129
|
-
"@libp2p/utils": "4.0.2-
|
|
118
|
+
"@libp2p/crypto": "2.0.3-d30f09f2",
|
|
119
|
+
"@libp2p/interface": "0.1.2-d30f09f2",
|
|
120
|
+
"@libp2p/interface-internal": "0.1.3-d30f09f2",
|
|
121
|
+
"@libp2p/keychain": "3.0.3-d30f09f2",
|
|
122
|
+
"@libp2p/logger": "3.0.2-d30f09f2",
|
|
123
|
+
"@libp2p/multistream-select": "4.0.2-d30f09f2",
|
|
124
|
+
"@libp2p/peer-collections": "4.0.3-d30f09f2",
|
|
125
|
+
"@libp2p/peer-id": "3.0.2-d30f09f2",
|
|
126
|
+
"@libp2p/peer-id-factory": "3.0.3-d30f09f2",
|
|
127
|
+
"@libp2p/peer-record": "6.0.3-d30f09f2",
|
|
128
|
+
"@libp2p/peer-store": "9.0.3-d30f09f2",
|
|
129
|
+
"@libp2p/utils": "4.0.2-d30f09f2",
|
|
130
130
|
"@multiformats/mafmt": "^12.1.2",
|
|
131
131
|
"@multiformats/multiaddr": "^12.1.5",
|
|
132
132
|
"abortable-iterator": "^5.0.1",
|
|
@@ -163,17 +163,17 @@
|
|
|
163
163
|
"@chainsafe/libp2p-gossipsub": "^10.0.0",
|
|
164
164
|
"@chainsafe/libp2p-noise": "^13.0.0",
|
|
165
165
|
"@chainsafe/libp2p-yamux": "^5.0.0",
|
|
166
|
-
"@libp2p/bootstrap": "9.0.3-
|
|
166
|
+
"@libp2p/bootstrap": "9.0.3-d30f09f2",
|
|
167
167
|
"@libp2p/daemon-client": "^7.0.0",
|
|
168
168
|
"@libp2p/daemon-server": "^6.0.0",
|
|
169
|
-
"@libp2p/floodsub": "8.0.4-
|
|
170
|
-
"@libp2p/interface-compliance-tests": "4.0.3-
|
|
169
|
+
"@libp2p/floodsub": "8.0.4-d30f09f2",
|
|
170
|
+
"@libp2p/interface-compliance-tests": "4.0.3-d30f09f2",
|
|
171
171
|
"@libp2p/interop": "^9.0.0",
|
|
172
|
-
"@libp2p/kad-dht": "10.0.3-
|
|
173
|
-
"@libp2p/mdns": "9.0.3-
|
|
174
|
-
"@libp2p/mplex": "9.0.3-
|
|
175
|
-
"@libp2p/tcp": "8.0.3-
|
|
176
|
-
"@libp2p/websockets": "7.0.3-
|
|
172
|
+
"@libp2p/kad-dht": "10.0.3-d30f09f2",
|
|
173
|
+
"@libp2p/mdns": "9.0.3-d30f09f2",
|
|
174
|
+
"@libp2p/mplex": "9.0.3-d30f09f2",
|
|
175
|
+
"@libp2p/tcp": "8.0.3-d30f09f2",
|
|
176
|
+
"@libp2p/websockets": "7.0.3-d30f09f2",
|
|
177
177
|
"@types/varint": "^6.0.0",
|
|
178
178
|
"@types/xsalsa20": "^1.1.0",
|
|
179
179
|
"aegir": "^40.0.8",
|
|
@@ -191,6 +191,7 @@
|
|
|
191
191
|
"sinon-ts": "^1.0.0"
|
|
192
192
|
},
|
|
193
193
|
"browser": {
|
|
194
|
+
"./dist/src/connection-manager/constants.js": "./dist/src/connection-manager/constants.browser.js",
|
|
194
195
|
"./dist/src/config/connection-gater.js": "./dist/src/config/connection-gater.browser.js"
|
|
195
196
|
}
|
|
196
197
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './constants.defaults.js'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDials
|
|
5
|
+
*/
|
|
6
|
+
export const MAX_PARALLEL_DIALS = 10
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#minConnections
|
|
10
|
+
*/
|
|
11
|
+
export const MIN_CONNECTIONS = 5
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxConnections
|
|
15
|
+
*/
|
|
16
|
+
export const MAX_CONNECTIONS = 100
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialConcurrency
|
|
20
|
+
*/
|
|
21
|
+
export const AUTO_DIAL_CONCURRENCY = 10
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#dialTimeout
|
|
3
|
+
*/
|
|
4
|
+
export const DIAL_TIMEOUT = 30e3
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundUpgradeTimeout
|
|
8
|
+
*/
|
|
9
|
+
export const INBOUND_UPGRADE_TIMEOUT = 30e3
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxPeerAddrsToDial
|
|
13
|
+
*/
|
|
14
|
+
export const MAX_PEER_ADDRS_TO_DIAL = 25
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDialsPerPeer
|
|
18
|
+
*/
|
|
19
|
+
export const MAX_PARALLEL_DIALS_PER_PEER = 10
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialInterval
|
|
23
|
+
*/
|
|
24
|
+
export const AUTO_DIAL_INTERVAL = 5000
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialPriority
|
|
28
|
+
*/
|
|
29
|
+
export const AUTO_DIAL_PRIORITY = 0
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialMaxQueueLength
|
|
33
|
+
*/
|
|
34
|
+
export const AUTO_DIAL_MAX_QUEUE_LENGTH = 100
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundConnectionThreshold
|
|
38
|
+
*/
|
|
39
|
+
export const INBOUND_CONNECTION_THRESHOLD = 5
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxIncomingPendingConnections
|
|
43
|
+
*/
|
|
44
|
+
export const MAX_INCOMING_PENDING_CONNECTIONS = 10
|
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#dialTimeout
|
|
3
|
-
*/
|
|
4
|
-
export const DIAL_TIMEOUT = 30e3
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundUpgradeTimeout
|
|
8
|
-
*/
|
|
9
|
-
export const INBOUND_UPGRADE_TIMEOUT = 30e3
|
|
1
|
+
export * from './constants.defaults.js'
|
|
10
2
|
|
|
11
3
|
/**
|
|
12
4
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDials
|
|
13
5
|
*/
|
|
14
6
|
export const MAX_PARALLEL_DIALS = 100
|
|
15
7
|
|
|
16
|
-
/**
|
|
17
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxPeerAddrsToDial
|
|
18
|
-
*/
|
|
19
|
-
export const MAX_PEER_ADDRS_TO_DIAL = 25
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxParallelDialsPerPeer
|
|
23
|
-
*/
|
|
24
|
-
export const MAX_PARALLEL_DIALS_PER_PEER = 10
|
|
25
|
-
|
|
26
8
|
/**
|
|
27
9
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#minConnections
|
|
28
10
|
*/
|
|
@@ -33,32 +15,7 @@ export const MIN_CONNECTIONS = 50
|
|
|
33
15
|
*/
|
|
34
16
|
export const MAX_CONNECTIONS = 300
|
|
35
17
|
|
|
36
|
-
/**
|
|
37
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialInterval
|
|
38
|
-
*/
|
|
39
|
-
export const AUTO_DIAL_INTERVAL = 5000
|
|
40
|
-
|
|
41
18
|
/**
|
|
42
19
|
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialConcurrency
|
|
43
20
|
*/
|
|
44
21
|
export const AUTO_DIAL_CONCURRENCY = 25
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialPriority
|
|
48
|
-
*/
|
|
49
|
-
export const AUTO_DIAL_PRIORITY = 0
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#autoDialMaxQueueLength
|
|
53
|
-
*/
|
|
54
|
-
export const AUTO_DIAL_MAX_QUEUE_LENGTH = 100
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#inboundConnectionThreshold
|
|
58
|
-
*/
|
|
59
|
-
export const INBOUND_CONNECTION_THRESHOLD = 5
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @see https://libp2p.github.io/js-libp2p/interfaces/index._internal_.ConnectionManagerConfig.html#maxIncomingPendingConnections
|
|
63
|
-
*/
|
|
64
|
-
export const MAX_INCOMING_PENDING_CONNECTIONS = 10
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '0.46.4-
|
|
1
|
+
export const version = '0.46.4-d30f09f2'
|
|
2
2
|
export const name = 'libp2p'
|