@libp2p/dcutr 2.0.2 → 2.0.3-c258b35af
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/src/index.d.ts +12 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +12 -4
- package/dist/typedoc-urls.json +0 -10
package/dist/src/index.d.ts
CHANGED
|
@@ -58,21 +58,29 @@ import type { ComponentLogger, PeerStore } from '@libp2p/interface';
|
|
|
58
58
|
import type { AddressManager, ConnectionManager, Registrar, TransportManager } from '@libp2p/interface-internal';
|
|
59
59
|
export interface DCUtRServiceInit {
|
|
60
60
|
/**
|
|
61
|
-
* How long we should wait for the connection upgrade to complete
|
|
61
|
+
* How long we should wait for the connection upgrade to complete
|
|
62
|
+
*
|
|
63
|
+
* @default 5000
|
|
62
64
|
*/
|
|
63
65
|
timeout?: number;
|
|
64
66
|
/**
|
|
65
|
-
* How many times to retry the connection upgrade
|
|
67
|
+
* How many times to retry the connection upgrade
|
|
68
|
+
*
|
|
69
|
+
* @default 3
|
|
66
70
|
*/
|
|
67
71
|
retries?: number;
|
|
68
72
|
/**
|
|
69
73
|
* How many simultaneous inbound DCUtR protocol streams to allow on each
|
|
70
|
-
* connection
|
|
74
|
+
* connection
|
|
75
|
+
*
|
|
76
|
+
* @default 1
|
|
71
77
|
*/
|
|
72
78
|
maxInboundStreams?: number;
|
|
73
79
|
/**
|
|
74
80
|
* How many simultaneous outbound DCUtR protocol streams to allow on each
|
|
75
|
-
* connection
|
|
81
|
+
* connection
|
|
82
|
+
*
|
|
83
|
+
* @default 1
|
|
76
84
|
*/
|
|
77
85
|
maxOutboundStreams?: number;
|
|
78
86
|
}
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AA6ChD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAA;AAEzC,MAAM,UAAU,KAAK,CAAE,OAAyB,EAAE;IAChD,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AAClE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/dcutr",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3-c258b35af",
|
|
4
4
|
"description": "Implementation of the DCUtR Protocol",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-dcutr#readme",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"doc-check": "aegir doc-check"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@libp2p/interface": "
|
|
56
|
-
"@libp2p/interface-internal": "
|
|
57
|
-
"@libp2p/utils": "
|
|
55
|
+
"@libp2p/interface": "2.1.1-c258b35af",
|
|
56
|
+
"@libp2p/interface-internal": "2.0.3-c258b35af",
|
|
57
|
+
"@libp2p/utils": "6.0.3-c258b35af",
|
|
58
58
|
"@multiformats/multiaddr": "^12.2.3",
|
|
59
59
|
"@multiformats/multiaddr-matcher": "^1.2.1",
|
|
60
60
|
"delay": "^6.0.0",
|
package/src/index.ts
CHANGED
|
@@ -61,24 +61,32 @@ import type { AddressManager, ConnectionManager, Registrar, TransportManager } f
|
|
|
61
61
|
|
|
62
62
|
export interface DCUtRServiceInit {
|
|
63
63
|
/**
|
|
64
|
-
* How long we should wait for the connection upgrade to complete
|
|
64
|
+
* How long we should wait for the connection upgrade to complete
|
|
65
|
+
*
|
|
66
|
+
* @default 5000
|
|
65
67
|
*/
|
|
66
68
|
timeout?: number
|
|
67
69
|
|
|
68
70
|
/**
|
|
69
|
-
* How many times to retry the connection upgrade
|
|
71
|
+
* How many times to retry the connection upgrade
|
|
72
|
+
*
|
|
73
|
+
* @default 3
|
|
70
74
|
*/
|
|
71
75
|
retries?: number
|
|
72
76
|
|
|
73
77
|
/**
|
|
74
78
|
* How many simultaneous inbound DCUtR protocol streams to allow on each
|
|
75
|
-
* connection
|
|
79
|
+
* connection
|
|
80
|
+
*
|
|
81
|
+
* @default 1
|
|
76
82
|
*/
|
|
77
83
|
maxInboundStreams?: number
|
|
78
84
|
|
|
79
85
|
/**
|
|
80
86
|
* How many simultaneous outbound DCUtR protocol streams to allow on each
|
|
81
|
-
* connection
|
|
87
|
+
* connection
|
|
88
|
+
*
|
|
89
|
+
* @default 1
|
|
82
90
|
*/
|
|
83
91
|
maxOutboundStreams?: number
|
|
84
92
|
}
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"DCUtRServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_dcutr.DCUtRServiceComponents.html",
|
|
3
|
-
".:DCUtRServiceComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_dcutr.DCUtRServiceComponents.html",
|
|
4
|
-
"DCUtRServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_dcutr.DCUtRServiceInit.html",
|
|
5
|
-
".:DCUtRServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_dcutr.DCUtRServiceInit.html",
|
|
6
|
-
"multicodec": "https://libp2p.github.io/js-libp2p/variables/_libp2p_dcutr.multicodec.html",
|
|
7
|
-
".:multicodec": "https://libp2p.github.io/js-libp2p/variables/_libp2p_dcutr.multicodec.html",
|
|
8
|
-
"dcutr": "https://libp2p.github.io/js-libp2p/functions/_libp2p_dcutr.dcutr.html",
|
|
9
|
-
".:dcutr": "https://libp2p.github.io/js-libp2p/functions/_libp2p_dcutr.dcutr.html"
|
|
10
|
-
}
|