@libp2p/interface-internal 2.2.3 → 2.2.4-21088c519
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,49 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* @default 32
|
|
20
|
-
*/
|
|
21
|
-
maxInboundStreams?: number;
|
|
22
|
-
/**
|
|
23
|
-
* How many outgoing streams can be open for this protocol at the same time on each connection
|
|
24
|
-
*
|
|
25
|
-
* @default 64
|
|
26
|
-
*/
|
|
27
|
-
maxOutboundStreams?: number;
|
|
28
|
-
/**
|
|
29
|
-
* If true, allow this protocol to run on limited connections (e.g.
|
|
30
|
-
* connections with data or duration limits such as circuit relay
|
|
31
|
-
* connections)
|
|
32
|
-
*
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
runOnLimitedConnection?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface StreamHandlerRecord {
|
|
38
|
-
/**
|
|
39
|
-
* The handler that was registered to handle streams opened on the protocol
|
|
40
|
-
*/
|
|
41
|
-
handler: StreamHandler;
|
|
42
|
-
/**
|
|
43
|
-
* The options that were used to register the stream handler
|
|
44
|
-
*/
|
|
45
|
-
options: StreamHandlerOptions;
|
|
46
|
-
}
|
|
1
|
+
import type { StreamHandler, StreamHandlerOptions, StreamHandlerRecord, Topology, IncomingStreamData } from '@libp2p/interface';
|
|
2
|
+
export type {
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This type should be imported from @libp2p/interface directly
|
|
5
|
+
*/
|
|
6
|
+
IncomingStreamData,
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This type should be imported from @libp2p/interface directly
|
|
9
|
+
*/
|
|
10
|
+
StreamHandler,
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated This type should be imported from @libp2p/interface directly
|
|
13
|
+
*/
|
|
14
|
+
StreamHandlerOptions,
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated This type should be imported from @libp2p/interface directly
|
|
17
|
+
*/
|
|
18
|
+
StreamHandlerRecord };
|
|
47
19
|
export interface Registrar {
|
|
48
20
|
/**
|
|
49
21
|
* Return the list of protocols with registered handlers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registrar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registrar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE/H,YAAY;AACV;;GAEG;AACH,kBAAkB;AAElB;;GAEG;AACH,aAAa;AAEb;;GAEG;AACH,oBAAoB;AAEpB;;GAEG;AACH,mBAAmB,EACpB,CAAA;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,YAAY,IAAI,MAAM,EAAE,CAAA;IAExB;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE/F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEzC;;OAEG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,CAAA;IAEjD;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAE/D;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;;OAGG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAA;CAC5C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interface-internal",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4-21088c519",
|
|
4
4
|
"description": "Interfaces implemented by internal libp2p components",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface-internal#readme",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"build": "aegir build"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@libp2p/interface": "
|
|
52
|
-
"@libp2p/peer-collections": "
|
|
51
|
+
"@libp2p/interface": "2.4.1-21088c519",
|
|
52
|
+
"@libp2p/peer-collections": "6.0.16-21088c519",
|
|
53
53
|
"@multiformats/multiaddr": "^12.3.3",
|
|
54
54
|
"progress-events": "^1.0.1",
|
|
55
55
|
"uint8arraylist": "^2.4.8"
|
package/src/registrar/index.ts
CHANGED
|
@@ -1,56 +1,25 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StreamHandler, StreamHandlerOptions, StreamHandlerRecord, Topology, IncomingStreamData } from '@libp2p/interface'
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export type {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* @deprecated This type should be imported from @libp2p/interface directly
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
IncomingStreamData,
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* @deprecated This type should be imported from @libp2p/interface directly
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface StreamHandler {
|
|
16
|
-
(data: IncomingStreamData): void
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface StreamHandlerOptions {
|
|
20
|
-
/**
|
|
21
|
-
* How many incoming streams can be open for this protocol at the same time on each connection
|
|
22
|
-
*
|
|
23
|
-
* @default 32
|
|
24
|
-
*/
|
|
25
|
-
maxInboundStreams?: number
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* How many outgoing streams can be open for this protocol at the same time on each connection
|
|
29
|
-
*
|
|
30
|
-
* @default 64
|
|
31
|
-
*/
|
|
32
|
-
maxOutboundStreams?: number
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* If true, allow this protocol to run on limited connections (e.g.
|
|
36
|
-
* connections with data or duration limits such as circuit relay
|
|
37
|
-
* connections)
|
|
38
|
-
*
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
runOnLimitedConnection?: boolean
|
|
42
|
-
}
|
|
12
|
+
StreamHandler,
|
|
43
13
|
|
|
44
|
-
export interface StreamHandlerRecord {
|
|
45
14
|
/**
|
|
46
|
-
*
|
|
15
|
+
* @deprecated This type should be imported from @libp2p/interface directly
|
|
47
16
|
*/
|
|
48
|
-
|
|
17
|
+
StreamHandlerOptions,
|
|
49
18
|
|
|
50
19
|
/**
|
|
51
|
-
*
|
|
20
|
+
* @deprecated This type should be imported from @libp2p/interface directly
|
|
52
21
|
*/
|
|
53
|
-
|
|
22
|
+
StreamHandlerRecord
|
|
54
23
|
}
|
|
55
24
|
|
|
56
25
|
export interface Registrar {
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"AddressManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.AddressManager.html",
|
|
3
|
-
"ConfirmAddressOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.ConfirmAddressOptions.html",
|
|
4
|
-
"ConnectionManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.ConnectionManager.html",
|
|
5
|
-
"Envelope": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.Envelope.html",
|
|
6
|
-
"IncomingStreamData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.IncomingStreamData.html",
|
|
7
|
-
"NodeAddress": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.NodeAddress.html",
|
|
8
|
-
"OpenConnectionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.OpenConnectionOptions.html",
|
|
9
|
-
"RandomWalk": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.RandomWalk.html",
|
|
10
|
-
"Record": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.Record.html",
|
|
11
|
-
"Registrar": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.Registrar.html",
|
|
12
|
-
"StreamHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.StreamHandler.html",
|
|
13
|
-
"StreamHandlerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.StreamHandlerOptions.html",
|
|
14
|
-
"StreamHandlerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.StreamHandlerRecord.html",
|
|
15
|
-
"TransportManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.TransportManager.html",
|
|
16
|
-
"TransportManagerDialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.TransportManagerDialOptions.html",
|
|
17
|
-
"AddressType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface_internal.AddressType.html"
|
|
18
|
-
}
|