@libp2p/interface 0.1.6-effcfaa8e → 1.0.0
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/README.md +15 -1
- package/dist/index.min.js +1 -1
- package/dist/src/connection/index.d.ts +15 -3
- package/dist/src/connection/index.d.ts.map +1 -1
- package/dist/src/connection/index.js +2 -2
- package/dist/src/connection/index.js.map +1 -1
- package/dist/src/connection-encrypter/index.d.ts +7 -5
- package/dist/src/connection-encrypter/index.d.ts.map +1 -1
- package/dist/src/content-routing/index.d.ts +1 -1
- package/dist/src/content-routing/index.d.ts.map +1 -1
- package/dist/src/content-routing/index.js +1 -1
- package/dist/src/content-routing/index.js.map +1 -1
- package/dist/src/errors.d.ts +20 -5
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +20 -8
- package/dist/src/errors.js.map +1 -1
- package/dist/src/events.d.ts +0 -1
- package/dist/src/events.d.ts.map +1 -1
- package/dist/src/events.js +0 -2
- package/dist/src/events.js.map +1 -1
- package/dist/src/index.d.ts +34 -14
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +21 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/keys/index.d.ts +5 -4
- package/dist/src/keys/index.d.ts.map +1 -1
- package/dist/src/keys/index.js.map +1 -1
- package/dist/src/peer-discovery/index.d.ts +1 -1
- package/dist/src/peer-discovery/index.d.ts.map +1 -1
- package/dist/src/peer-discovery/index.js +1 -1
- package/dist/src/peer-discovery/index.js.map +1 -1
- package/dist/src/peer-id/index.d.ts +1 -1
- package/dist/src/peer-id/index.d.ts.map +1 -1
- package/dist/src/peer-id/index.js +2 -2
- package/dist/src/peer-id/index.js.map +1 -1
- package/dist/src/peer-info/index.d.ts +12 -1
- package/dist/src/peer-info/index.d.ts.map +1 -1
- package/dist/src/peer-routing/index.d.ts +1 -1
- package/dist/src/peer-routing/index.d.ts.map +1 -1
- package/dist/src/peer-routing/index.js +1 -1
- package/dist/src/peer-routing/index.js.map +1 -1
- package/dist/src/startable.d.ts +8 -1
- package/dist/src/startable.d.ts.map +1 -1
- package/dist/src/startable.js +8 -0
- package/dist/src/startable.js.map +1 -1
- package/dist/src/stream-muxer/index.d.ts +2 -2
- package/dist/src/stream-muxer/index.d.ts.map +1 -1
- package/dist/src/stream-muxer/stream.d.ts +2 -149
- package/dist/src/stream-muxer/stream.d.ts.map +1 -1
- package/dist/src/stream-muxer/stream.js +8 -322
- package/dist/src/stream-muxer/stream.js.map +1 -1
- package/dist/src/topology/index.d.ts +0 -2
- package/dist/src/topology/index.d.ts.map +1 -1
- package/dist/src/transport/index.d.ts +2 -2
- package/dist/src/transport/index.d.ts.map +1 -1
- package/dist/src/transport/index.js +2 -2
- package/dist/src/transport/index.js.map +1 -1
- package/dist/typedoc-urls.json +265 -0
- package/package.json +15 -27
- package/src/connection/index.ts +19 -4
- package/src/connection-encrypter/index.ts +7 -5
- package/src/content-routing/index.ts +1 -1
- package/src/errors.ts +21 -8
- package/src/events.ts +0 -3
- package/src/index.ts +37 -15
- package/src/keys/index.ts +6 -4
- package/src/peer-discovery/index.ts +1 -1
- package/src/peer-id/index.ts +2 -2
- package/src/peer-info/index.ts +13 -1
- package/src/peer-routing/index.ts +1 -1
- package/src/startable.ts +8 -2
- package/src/stream-muxer/index.ts +2 -2
- package/src/stream-muxer/stream.ts +9 -494
- package/src/topology/index.ts +0 -3
- package/src/transport/index.ts +3 -3
- package/dist/src/keychain/index.d.ts +0 -154
- package/dist/src/keychain/index.d.ts.map +0 -1
- package/dist/src/keychain/index.js +0 -23
- package/dist/src/keychain/index.js.map +0 -1
- package/dist/src/metrics/tracked-map.d.ts +0 -17
- package/dist/src/metrics/tracked-map.d.ts.map +0 -1
- package/dist/src/metrics/tracked-map.js +0 -38
- package/dist/src/metrics/tracked-map.js.map +0 -1
- package/src/keychain/index.ts +0 -167
- package/src/metrics/tracked-map.ts +0 -65
|
@@ -25,7 +25,7 @@ export interface Listener extends TypedEventTarget<ListenerEvents> {
|
|
|
25
25
|
*/
|
|
26
26
|
close(): Promise<void>;
|
|
27
27
|
}
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const transportSymbol: unique symbol;
|
|
29
29
|
export interface ConnectionHandler {
|
|
30
30
|
(connection: Connection): void;
|
|
31
31
|
}
|
|
@@ -50,7 +50,7 @@ export interface Transport {
|
|
|
50
50
|
/**
|
|
51
51
|
* Used by the isTransport function
|
|
52
52
|
*/
|
|
53
|
-
[
|
|
53
|
+
[transportSymbol]: true;
|
|
54
54
|
/**
|
|
55
55
|
* Dial a given multiaddr.
|
|
56
56
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;IACrC,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;IAC3B,OAAO,EAAE,WAAW,CAAA;CACrB;AAED,MAAM,WAAW,QAAS,SAAQ,gBAAgB,CAAC,cAAc,CAAC;IAChE;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3C;;OAEG;IACH,QAAQ,IAAI,SAAS,EAAE,CAAA;IACvB;;;;OAIG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB;AAED,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;IACrC,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;IAC3B,OAAO,EAAE,WAAW,CAAA;CACrB;AAED,MAAM,WAAW,QAAS,SAAQ,gBAAgB,CAAC,cAAc,CAAC;IAChE;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3C;;OAEG;IACH,QAAQ,IAAI,SAAS,EAAE,CAAA;IACvB;;;;OAIG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB;AAED,eAAO,MAAM,eAAe,eAAkC,CAAA;AAE9D,MAAM,WAAW,iBAAiB;IAAG,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;CAAE;AAErE,MAAM,WAAW,eAAe;IAAG,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,CAAA;CAAE;AAE3E,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,MAAM,WAAW,WAAY,SAAQ,YAAY;IAC/C,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,CAAC,eAAe,CAAC,EAAE,IAAI,CAAA;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAE9D;;OAEG;IACH,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,QAAQ,CAAA;IAExD;;OAEG;IACH,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,wBAAgB,WAAW,CAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,SAAS,CAE3D;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,SAAS,IAAI;IAEb;;OAEG;IACH,QAAQ,IAAA;CACT;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,YAAY,CAAC,EAAE,kBAAkB,CAAA;IAEjC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,eAAe,CAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAEzF;;OAEG;IACH,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;CACzF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const transportSymbol = Symbol.for('@libp2p/transport');
|
|
2
2
|
export function isTransport(other) {
|
|
3
|
-
return other != null && Boolean(other[
|
|
3
|
+
return other != null && Boolean(other[transportSymbol]);
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Enum Transport Manager Fault Tolerance values
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AA8BA,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AA8BA,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;AA6C9D,MAAM,UAAU,WAAW,CAAE,KAAU;IACrC,OAAO,KAAK,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAA;AACzD,CAAC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,cAUX;AAVD,WAAY,cAAc;IACxB;;OAEG;IACH,6DAAa,CAAA;IAEb;;OAEG;IACH,2DAAQ,CAAA;AACV,CAAC,EAVW,cAAc,KAAd,cAAc,QAUzB"}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
{
|
|
2
|
+
"FaultTolerance": "https://libp2p.github.io/js-libp2p/enums/_libp2p_interface.FaultTolerance.html",
|
|
3
|
+
"./transport:FaultTolerance": "https://libp2p.github.io/js-libp2p/enums/_libp2p_interface.FaultTolerance.html",
|
|
4
|
+
"TopicValidatorResult": "https://libp2p.github.io/js-libp2p/enums/_libp2p_interface.TopicValidatorResult.html",
|
|
5
|
+
"./pubsub:TopicValidatorResult": "https://libp2p.github.io/js-libp2p/enums/_libp2p_interface.TopicValidatorResult.html",
|
|
6
|
+
"AbortError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.AbortError.html",
|
|
7
|
+
"./errors:AbortError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.AbortError.html",
|
|
8
|
+
"CodeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.CodeError.html",
|
|
9
|
+
"./errors:CodeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.CodeError.html",
|
|
10
|
+
"InvalidCryptoExchangeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidCryptoExchangeError.html",
|
|
11
|
+
"./errors:InvalidCryptoExchangeError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.InvalidCryptoExchangeError.html",
|
|
12
|
+
"TypedEventEmitter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.TypedEventEmitter.html",
|
|
13
|
+
"./events:TypedEventEmitter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.TypedEventEmitter.html",
|
|
14
|
+
"UnexpectedPeerError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.UnexpectedPeerError.html",
|
|
15
|
+
"./errors:UnexpectedPeerError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_interface.UnexpectedPeerError.html",
|
|
16
|
+
"AbortOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AbortOptions.html",
|
|
17
|
+
".:AbortOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AbortOptions.html",
|
|
18
|
+
"Address": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Address.html",
|
|
19
|
+
"./peer-store:Address": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Address.html",
|
|
20
|
+
"AddressSorter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AddressSorter.html",
|
|
21
|
+
".:AddressSorter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.AddressSorter.html",
|
|
22
|
+
"CalculatedMetricOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CalculatedMetricOptions.html",
|
|
23
|
+
"./metrics:CalculatedMetricOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CalculatedMetricOptions.html",
|
|
24
|
+
"ComponentLogger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ComponentLogger.html",
|
|
25
|
+
".:ComponentLogger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ComponentLogger.html",
|
|
26
|
+
"Connection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Connection.html",
|
|
27
|
+
"./connection:Connection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Connection.html",
|
|
28
|
+
"ConnectionEncrypter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionEncrypter.html",
|
|
29
|
+
"./connection-encrypter:ConnectionEncrypter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionEncrypter.html",
|
|
30
|
+
"ConnectionGater": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionGater.html",
|
|
31
|
+
"./connection-gater:ConnectionGater": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionGater.html",
|
|
32
|
+
"ConnectionHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionHandler.html",
|
|
33
|
+
"./transport:ConnectionHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionHandler.html",
|
|
34
|
+
"ConnectionProtector": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionProtector.html",
|
|
35
|
+
"./connection:ConnectionProtector": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionProtector.html",
|
|
36
|
+
"ConnectionTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionTimeline.html",
|
|
37
|
+
"./connection:ConnectionTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ConnectionTimeline.html",
|
|
38
|
+
"ContentRouting": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ContentRouting.html",
|
|
39
|
+
"./content-routing:ContentRouting": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ContentRouting.html",
|
|
40
|
+
"Counter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Counter.html",
|
|
41
|
+
"./metrics:Counter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Counter.html",
|
|
42
|
+
"CounterGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CounterGroup.html",
|
|
43
|
+
"./metrics:CounterGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CounterGroup.html",
|
|
44
|
+
"CreateListenerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CreateListenerOptions.html",
|
|
45
|
+
"./transport:CreateListenerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.CreateListenerOptions.html",
|
|
46
|
+
"DialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialOptions.html",
|
|
47
|
+
"./transport:DialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.DialOptions.html",
|
|
48
|
+
"Ed25519PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Ed25519PeerId.html",
|
|
49
|
+
"./peer-id:Ed25519PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Ed25519PeerId.html",
|
|
50
|
+
"Envelope": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Envelope.html",
|
|
51
|
+
"./record:Envelope": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Envelope.html",
|
|
52
|
+
"EventCallback": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.EventCallback.html",
|
|
53
|
+
"./events:EventCallback": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.EventCallback.html",
|
|
54
|
+
"EventObject": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.EventObject.html",
|
|
55
|
+
"./events:EventObject": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.EventObject.html",
|
|
56
|
+
"IdentifyResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IdentifyResult.html",
|
|
57
|
+
".:IdentifyResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IdentifyResult.html",
|
|
58
|
+
"IncomingStreamData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IncomingStreamData.html",
|
|
59
|
+
"./stream-handler:IncomingStreamData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.IncomingStreamData.html",
|
|
60
|
+
"Libp2p": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2p.html",
|
|
61
|
+
".:Libp2p": "https://libp2p.github.io/js-libp2p/interfaces/libp2p.Libp2p.html",
|
|
62
|
+
"Libp2pEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2pEvents.html",
|
|
63
|
+
".:Libp2pEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Libp2pEvents.html",
|
|
64
|
+
"Listener": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Listener.html",
|
|
65
|
+
"./transport:Listener": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Listener.html",
|
|
66
|
+
"ListenerEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ListenerEvents.html",
|
|
67
|
+
"./transport:ListenerEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.ListenerEvents.html",
|
|
68
|
+
"Logger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Logger.html",
|
|
69
|
+
".:Logger": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Logger.html",
|
|
70
|
+
"LoggerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.LoggerOptions.html",
|
|
71
|
+
".:LoggerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.LoggerOptions.html",
|
|
72
|
+
"Metric": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Metric.html",
|
|
73
|
+
"./metrics:Metric": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Metric.html",
|
|
74
|
+
"MetricGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MetricGroup.html",
|
|
75
|
+
"./metrics:MetricGroup": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MetricGroup.html",
|
|
76
|
+
"MetricOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MetricOptions.html",
|
|
77
|
+
"./metrics:MetricOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MetricOptions.html",
|
|
78
|
+
"Metrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Metrics.html",
|
|
79
|
+
"./metrics:Metrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Metrics.html",
|
|
80
|
+
"MultiaddrConnection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrConnection.html",
|
|
81
|
+
"./connection:MultiaddrConnection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrConnection.html",
|
|
82
|
+
"MultiaddrConnectionTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrConnectionTimeline.html",
|
|
83
|
+
"./connection:MultiaddrConnectionTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrConnectionTimeline.html",
|
|
84
|
+
"MultiaddrFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrFilter.html",
|
|
85
|
+
"./transport:MultiaddrFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.MultiaddrFilter.html",
|
|
86
|
+
"NewStreamOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NewStreamOptions.html",
|
|
87
|
+
"./connection:NewStreamOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NewStreamOptions.html",
|
|
88
|
+
"NodeInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NodeInfo.html",
|
|
89
|
+
".:NodeInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.NodeInfo.html",
|
|
90
|
+
"Peer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Peer.html",
|
|
91
|
+
"./peer-store:Peer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Peer.html",
|
|
92
|
+
"PeerData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerData.html",
|
|
93
|
+
"./peer-store:PeerData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerData.html",
|
|
94
|
+
"PeerDiscovery": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscovery.html",
|
|
95
|
+
"./peer-discovery:PeerDiscovery": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscovery.html",
|
|
96
|
+
"PeerDiscoveryEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscoveryEvents.html",
|
|
97
|
+
"./peer-discovery:PeerDiscoveryEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerDiscoveryEvents.html",
|
|
98
|
+
"PeerInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerInfo.html",
|
|
99
|
+
"./peer-info:PeerInfo": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerInfo.html",
|
|
100
|
+
"PeerQuery": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQuery.html",
|
|
101
|
+
"./peer-store:PeerQuery": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQuery.html",
|
|
102
|
+
"PeerQueryFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQueryFilter.html",
|
|
103
|
+
"./peer-store:PeerQueryFilter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQueryFilter.html",
|
|
104
|
+
"PeerQueryOrder": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQueryOrder.html",
|
|
105
|
+
"./peer-store:PeerQueryOrder": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerQueryOrder.html",
|
|
106
|
+
"PeerRouting": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerRouting.html",
|
|
107
|
+
"./peer-routing:PeerRouting": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerRouting.html",
|
|
108
|
+
"PeerStore": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStore.html",
|
|
109
|
+
"./peer-store:PeerStore": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStore.html",
|
|
110
|
+
"PeerStreamEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStreamEvents.html",
|
|
111
|
+
"./pubsub:PeerStreamEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStreamEvents.html",
|
|
112
|
+
"PeerStreams": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStreams.html",
|
|
113
|
+
"./pubsub:PeerStreams": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerStreams.html",
|
|
114
|
+
"PeerUpdate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerUpdate.html",
|
|
115
|
+
".:PeerUpdate": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PeerUpdate.html",
|
|
116
|
+
"PendingDial": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PendingDial.html",
|
|
117
|
+
".:PendingDial": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PendingDial.html",
|
|
118
|
+
"PrivateKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PrivateKey.html",
|
|
119
|
+
"./keys:PrivateKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PrivateKey.html",
|
|
120
|
+
"PubSub": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSub.html",
|
|
121
|
+
"./pubsub:PubSub": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSub.html",
|
|
122
|
+
"PubSubEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubEvents.html",
|
|
123
|
+
"./pubsub:PubSubEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubEvents.html",
|
|
124
|
+
"PubSubInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubInit.html",
|
|
125
|
+
"./pubsub:PubSubInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubInit.html",
|
|
126
|
+
"PubSubRPC": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPC.html",
|
|
127
|
+
"./pubsub:PubSubRPC": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPC.html",
|
|
128
|
+
"PubSubRPCMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPCMessage.html",
|
|
129
|
+
"./pubsub:PubSubRPCMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPCMessage.html",
|
|
130
|
+
"PubSubRPCSubscription": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPCSubscription.html",
|
|
131
|
+
"./pubsub:PubSubRPCSubscription": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PubSubRPCSubscription.html",
|
|
132
|
+
"PublicKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PublicKey.html",
|
|
133
|
+
"./keys:PublicKey": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PublicKey.html",
|
|
134
|
+
"PublishResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PublishResult.html",
|
|
135
|
+
"./pubsub:PublishResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.PublishResult.html",
|
|
136
|
+
"RSAPeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RSAPeerId.html",
|
|
137
|
+
"./peer-id:RSAPeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.RSAPeerId.html",
|
|
138
|
+
"Record": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Record.html",
|
|
139
|
+
"./record:Record": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Record.html",
|
|
140
|
+
"Secp256k1PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Secp256k1PeerId.html",
|
|
141
|
+
"./peer-id:Secp256k1PeerId": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Secp256k1PeerId.html",
|
|
142
|
+
"SecuredConnection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SecuredConnection.html",
|
|
143
|
+
"./connection-encrypter:SecuredConnection": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SecuredConnection.html",
|
|
144
|
+
"SignedMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedMessage.html",
|
|
145
|
+
"./pubsub:SignedMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedMessage.html",
|
|
146
|
+
"SignedPeerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedPeerRecord.html",
|
|
147
|
+
".:SignedPeerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SignedPeerRecord.html",
|
|
148
|
+
"Startable": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Startable.html",
|
|
149
|
+
"./startable:Startable": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Startable.html",
|
|
150
|
+
"StopTimer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StopTimer.html",
|
|
151
|
+
"./metrics:StopTimer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StopTimer.html",
|
|
152
|
+
"Stream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Stream.html",
|
|
153
|
+
"./connection:Stream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Stream.html",
|
|
154
|
+
"StreamHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandler.html",
|
|
155
|
+
"./stream-handler:StreamHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandler.html",
|
|
156
|
+
"StreamHandlerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandlerOptions.html",
|
|
157
|
+
"./stream-handler:StreamHandlerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandlerOptions.html",
|
|
158
|
+
"StreamHandlerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandlerRecord.html",
|
|
159
|
+
"./stream-handler:StreamHandlerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamHandlerRecord.html",
|
|
160
|
+
"StreamMuxer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxer.html",
|
|
161
|
+
"./stream-muxer:StreamMuxer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxer.html",
|
|
162
|
+
"StreamMuxerFactory": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxerFactory.html",
|
|
163
|
+
"./stream-muxer:StreamMuxerFactory": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxerFactory.html",
|
|
164
|
+
"StreamMuxerInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxerInit.html",
|
|
165
|
+
"./stream-muxer:StreamMuxerInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamMuxerInit.html",
|
|
166
|
+
"StreamTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamTimeline.html",
|
|
167
|
+
"./connection:StreamTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.StreamTimeline.html",
|
|
168
|
+
"SubscriptionChangeData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SubscriptionChangeData.html",
|
|
169
|
+
"./pubsub:SubscriptionChangeData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.SubscriptionChangeData.html",
|
|
170
|
+
"Tag": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Tag.html",
|
|
171
|
+
"./peer-store:Tag": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Tag.html",
|
|
172
|
+
"TagOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TagOptions.html",
|
|
173
|
+
"./peer-store:TagOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TagOptions.html",
|
|
174
|
+
"TopicValidatorFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TopicValidatorFn.html",
|
|
175
|
+
"./pubsub:TopicValidatorFn": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TopicValidatorFn.html",
|
|
176
|
+
"Topology": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Topology.html",
|
|
177
|
+
"Transport": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Transport.html",
|
|
178
|
+
"./transport:Transport": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Transport.html",
|
|
179
|
+
"TypedEventTarget": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TypedEventTarget.html",
|
|
180
|
+
"./events:TypedEventTarget": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.TypedEventTarget.html",
|
|
181
|
+
"UnsignedMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.UnsignedMessage.html",
|
|
182
|
+
"./pubsub:UnsignedMessage": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.UnsignedMessage.html",
|
|
183
|
+
"Upgrader": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Upgrader.html",
|
|
184
|
+
"./transport:Upgrader": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.Upgrader.html",
|
|
185
|
+
"UpgraderOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.UpgraderOptions.html",
|
|
186
|
+
"./transport:UpgraderOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface.UpgraderOptions.html",
|
|
187
|
+
"CalculateMetric": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.CalculateMetric.html",
|
|
188
|
+
"./metrics:CalculateMetric": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.CalculateMetric.html",
|
|
189
|
+
"ConnectionStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ConnectionStatus.html",
|
|
190
|
+
"./connection:ConnectionStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ConnectionStatus.html",
|
|
191
|
+
"Direction": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Direction.html",
|
|
192
|
+
"./connection:Direction": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Direction.html",
|
|
193
|
+
"EventHandler": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.EventHandler.html",
|
|
194
|
+
"./events:EventHandler": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.EventHandler.html",
|
|
195
|
+
"KeyType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.KeyType.html",
|
|
196
|
+
"./keys:KeyType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.KeyType.html",
|
|
197
|
+
"Message": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Message.html",
|
|
198
|
+
"./pubsub:Message": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.Message.html",
|
|
199
|
+
"PeerId": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PeerId.html",
|
|
200
|
+
"./peer-id:PeerId": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PeerId.html",
|
|
201
|
+
"PeerIdType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PeerIdType.html",
|
|
202
|
+
"./peer-id:PeerIdType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PeerIdType.html",
|
|
203
|
+
"PendingDialStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PendingDialStatus.html",
|
|
204
|
+
".:PendingDialStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.PendingDialStatus.html",
|
|
205
|
+
"ReadStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ReadStatus.html",
|
|
206
|
+
"./connection:ReadStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ReadStatus.html",
|
|
207
|
+
"RecursivePartial": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.RecursivePartial.html",
|
|
208
|
+
".:RecursivePartial": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.RecursivePartial.html",
|
|
209
|
+
"ServiceMap": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ServiceMap.html",
|
|
210
|
+
".:ServiceMap": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.ServiceMap.html",
|
|
211
|
+
"SignaturePolicy": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.SignaturePolicy.html",
|
|
212
|
+
"./pubsub:SignaturePolicy": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.SignaturePolicy.html",
|
|
213
|
+
"StreamStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.StreamStatus.html",
|
|
214
|
+
"./connection:StreamStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.StreamStatus.html",
|
|
215
|
+
"WriteStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.WriteStatus.html",
|
|
216
|
+
"./connection:WriteStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface.WriteStatus.html",
|
|
217
|
+
"CustomEvent": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.CustomEvent.html",
|
|
218
|
+
"./events:CustomEvent": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.CustomEvent.html",
|
|
219
|
+
"ERR_INVALID_MESSAGE": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_INVALID_MESSAGE.html",
|
|
220
|
+
"./errors:ERR_INVALID_MESSAGE": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_INVALID_MESSAGE.html",
|
|
221
|
+
"ERR_INVALID_PARAMETERS": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_INVALID_PARAMETERS.html",
|
|
222
|
+
"./errors:ERR_INVALID_PARAMETERS": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_INVALID_PARAMETERS.html",
|
|
223
|
+
"ERR_NOT_FOUND": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_NOT_FOUND.html",
|
|
224
|
+
"./errors:ERR_NOT_FOUND": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_NOT_FOUND.html",
|
|
225
|
+
"ERR_TIMEOUT": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_TIMEOUT.html",
|
|
226
|
+
"./errors:ERR_TIMEOUT": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.ERR_TIMEOUT.html",
|
|
227
|
+
"Ed25519": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.Ed25519.html",
|
|
228
|
+
"./keys:Ed25519": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.Ed25519.html",
|
|
229
|
+
"KEEP_ALIVE": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.KEEP_ALIVE.html",
|
|
230
|
+
"./peer-store/tags:KEEP_ALIVE": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.KEEP_ALIVE.html",
|
|
231
|
+
"RSA": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.RSA.html",
|
|
232
|
+
"./keys:RSA": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.RSA.html",
|
|
233
|
+
"StrictNoSign": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.StrictNoSign.html",
|
|
234
|
+
"./pubsub:StrictNoSign": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.StrictNoSign.html",
|
|
235
|
+
"StrictSign": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.StrictSign.html",
|
|
236
|
+
"./pubsub:StrictSign": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.StrictSign.html",
|
|
237
|
+
"connectionSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.connectionSymbol.html",
|
|
238
|
+
"./connection:connectionSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.connectionSymbol.html",
|
|
239
|
+
"contentRoutingSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.contentRoutingSymbol.html",
|
|
240
|
+
"./content-routing:contentRoutingSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.contentRoutingSymbol.html",
|
|
241
|
+
"peerDiscoverySymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerDiscoverySymbol.html",
|
|
242
|
+
"./peer-discovery:peerDiscoverySymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerDiscoverySymbol.html",
|
|
243
|
+
"peerIdSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerIdSymbol.html",
|
|
244
|
+
"./peer-id:peerIdSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerIdSymbol.html",
|
|
245
|
+
"peerRoutingSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerRoutingSymbol.html",
|
|
246
|
+
"./peer-routing:peerRoutingSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.peerRoutingSymbol.html",
|
|
247
|
+
"secp256k1": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.secp256k1.html",
|
|
248
|
+
"./keys:secp256k1": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.secp256k1.html",
|
|
249
|
+
"transportSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.transportSymbol.html",
|
|
250
|
+
"./transport:transportSymbol": "https://libp2p.github.io/js-libp2p/variables/_libp2p_interface.transportSymbol.html",
|
|
251
|
+
"isConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isConnection.html",
|
|
252
|
+
"./connection:isConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isConnection.html",
|
|
253
|
+
"isPeerId": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isPeerId.html",
|
|
254
|
+
"./peer-id:isPeerId": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isPeerId.html",
|
|
255
|
+
"isStartable": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isStartable.html",
|
|
256
|
+
"./startable:isStartable": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isStartable.html",
|
|
257
|
+
"isTransport": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isTransport.html",
|
|
258
|
+
"./transport:isTransport": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.isTransport.html",
|
|
259
|
+
"setMaxListeners": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.setMaxListeners.html",
|
|
260
|
+
"./events:setMaxListeners": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.setMaxListeners.html",
|
|
261
|
+
"start": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.start.html",
|
|
262
|
+
"./startable:start": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.start.html",
|
|
263
|
+
"stop": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.stop.html",
|
|
264
|
+
"./startable:stop": "https://libp2p.github.io/js-libp2p/functions/_libp2p_interface.stop.html"
|
|
265
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interface",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The interface implemented by a libp2p node",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
|
-
"homepage": "https://github.com/libp2p/js-libp2p/tree/
|
|
6
|
+
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface#readme",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/libp2p/js-libp2p.git"
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/libp2p/js-libp2p/issues"
|
|
13
13
|
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public",
|
|
16
|
+
"provenance": true
|
|
17
|
+
},
|
|
14
18
|
"keywords": [
|
|
15
19
|
"interface",
|
|
16
20
|
"libp2p"
|
|
@@ -39,9 +43,6 @@
|
|
|
39
43
|
"!dist/test",
|
|
40
44
|
"!**/*.tsbuildinfo"
|
|
41
45
|
],
|
|
42
|
-
"browser": {
|
|
43
|
-
"events": "./dist/src/events.browser.js"
|
|
44
|
-
},
|
|
45
46
|
"exports": {
|
|
46
47
|
".": {
|
|
47
48
|
"types": "./dist/src/index.d.ts",
|
|
@@ -150,33 +151,20 @@
|
|
|
150
151
|
"scripts": {
|
|
151
152
|
"clean": "aegir clean",
|
|
152
153
|
"lint": "aegir lint",
|
|
153
|
-
"dep-check": "aegir dep-check",
|
|
154
|
-
"build": "aegir build"
|
|
155
|
-
"test": "aegir test",
|
|
156
|
-
"test:chrome": "aegir test -t browser --cov",
|
|
157
|
-
"test:chrome-webworker": "aegir test -t webworker",
|
|
158
|
-
"test:firefox": "aegir test -t browser -- --browser firefox",
|
|
159
|
-
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
|
|
160
|
-
"test:node": "aegir test -t node --cov",
|
|
161
|
-
"test:electron-main": "aegir test -t electron-main"
|
|
154
|
+
"dep-check": "aegir dep-check -i @libp2p/utils",
|
|
155
|
+
"build": "aegir build"
|
|
162
156
|
},
|
|
163
157
|
"dependencies": {
|
|
164
|
-
"@multiformats/multiaddr": "^12.1.
|
|
165
|
-
"
|
|
166
|
-
"it-pushable": "^3.2.0",
|
|
158
|
+
"@multiformats/multiaddr": "^12.1.10",
|
|
159
|
+
"it-pushable": "^3.2.1",
|
|
167
160
|
"it-stream-types": "^2.0.1",
|
|
168
|
-
"multiformats": "^12.
|
|
169
|
-
"p-defer": "^4.0.0",
|
|
170
|
-
"race-signal": "^1.0.0",
|
|
161
|
+
"multiformats": "^12.1.3",
|
|
171
162
|
"uint8arraylist": "^2.4.3"
|
|
172
163
|
},
|
|
173
164
|
"devDependencies": {
|
|
174
|
-
"
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
"it-drain": "^3.0.3",
|
|
179
|
-
"sinon": "^17.0.0",
|
|
180
|
-
"sinon-ts": "^2.0.0"
|
|
165
|
+
"aegir": "^41.0.2"
|
|
166
|
+
},
|
|
167
|
+
"browser": {
|
|
168
|
+
"events": "./dist/src/events.browser.js"
|
|
181
169
|
}
|
|
182
170
|
}
|
package/src/connection/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AbortOptions } from '../index.js'
|
|
1
|
+
import type { AbortOptions, Logger } from '../index.js'
|
|
2
2
|
import type { PeerId } from '../peer-id/index.js'
|
|
3
3
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
4
4
|
import type { Duplex, Source } from 'it-stream-types'
|
|
@@ -169,6 +169,11 @@ export interface Stream extends Duplex<AsyncGenerator<Uint8ArrayList>, Source<Ui
|
|
|
169
169
|
* The current status of the writable end of the stream
|
|
170
170
|
*/
|
|
171
171
|
writeStatus: WriteStatus
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* The stream logger
|
|
175
|
+
*/
|
|
176
|
+
log: Logger
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
export interface NewStreamOptions extends AbortOptions {
|
|
@@ -268,12 +273,17 @@ export interface Connection {
|
|
|
268
273
|
* Immediately close the connection, any queued data will be discarded
|
|
269
274
|
*/
|
|
270
275
|
abort(err: Error): void
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* The connection logger
|
|
279
|
+
*/
|
|
280
|
+
log: Logger
|
|
271
281
|
}
|
|
272
282
|
|
|
273
|
-
export const
|
|
283
|
+
export const connectionSymbol = Symbol.for('@libp2p/connection')
|
|
274
284
|
|
|
275
285
|
export function isConnection (other: any): other is Connection {
|
|
276
|
-
return other != null && Boolean(other[
|
|
286
|
+
return other != null && Boolean(other[connectionSymbol])
|
|
277
287
|
}
|
|
278
288
|
|
|
279
289
|
export interface ConnectionProtector {
|
|
@@ -308,7 +318,7 @@ export interface MultiaddrConnectionTimeline {
|
|
|
308
318
|
* a peer. It is a low-level primitive and is the raw connection
|
|
309
319
|
* without encryption or stream multiplexing.
|
|
310
320
|
*/
|
|
311
|
-
export interface MultiaddrConnection extends Duplex<AsyncGenerator<Uint8Array
|
|
321
|
+
export interface MultiaddrConnection extends Duplex<AsyncGenerator<Uint8Array | Uint8ArrayList>> {
|
|
312
322
|
/**
|
|
313
323
|
* Gracefully close the connection. All queued data will be written to the
|
|
314
324
|
* underlying transport.
|
|
@@ -329,4 +339,9 @@ export interface MultiaddrConnection extends Duplex<AsyncGenerator<Uint8Array>,
|
|
|
329
339
|
* When connection lifecycle events occurred
|
|
330
340
|
*/
|
|
331
341
|
timeline: MultiaddrConnectionTimeline
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* The multiaddr connection logger
|
|
345
|
+
*/
|
|
346
|
+
log: Logger
|
|
332
347
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { MultiaddrConnection } from '../connection/index.js'
|
|
1
2
|
import type { PeerId } from '../peer-id/index.js'
|
|
2
|
-
import type { Duplex
|
|
3
|
+
import type { Duplex } from 'it-stream-types'
|
|
4
|
+
import type { Uint8ArrayList } from 'uint8arraylist'
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* A libp2p connection encrypter module must be compliant to this interface
|
|
@@ -13,18 +15,18 @@ export interface ConnectionEncrypter<Extension = unknown> {
|
|
|
13
15
|
* pass it for extra verification, otherwise it will be determined during
|
|
14
16
|
* the handshake.
|
|
15
17
|
*/
|
|
16
|
-
secureOutbound(localPeer: PeerId, connection:
|
|
18
|
+
secureOutbound <Stream extends Duplex<AsyncGenerator<Uint8Array | Uint8ArrayList>> = MultiaddrConnection> (localPeer: PeerId, connection: Stream, remotePeer?: PeerId): Promise<SecuredConnection<Stream, Extension>>
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
21
|
* Decrypt incoming data. If the remote PeerId is known,
|
|
20
22
|
* pass it for extra verification, otherwise it will be determined during
|
|
21
23
|
* the handshake
|
|
22
24
|
*/
|
|
23
|
-
secureInbound(localPeer: PeerId, connection:
|
|
25
|
+
secureInbound <Stream extends Duplex<AsyncGenerator<Uint8Array | Uint8ArrayList>> = MultiaddrConnection> (localPeer: PeerId, connection: Stream, remotePeer?: PeerId): Promise<SecuredConnection<Stream, Extension>>
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
export interface SecuredConnection<Extension = unknown> {
|
|
27
|
-
conn:
|
|
28
|
+
export interface SecuredConnection<Stream = any, Extension = unknown> {
|
|
29
|
+
conn: Stream
|
|
28
30
|
remoteExtensions?: Extension
|
|
29
31
|
remotePeer: PeerId
|
|
30
32
|
}
|
|
@@ -21,7 +21,7 @@ import type { CID } from 'multiformats/cid'
|
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export const
|
|
24
|
+
export const contentRoutingSymbol = Symbol.for('@libp2p/content-routing')
|
|
25
25
|
|
|
26
26
|
export interface ContentRouting {
|
|
27
27
|
/**
|
package/src/errors.ts
CHANGED
|
@@ -18,6 +18,10 @@ export class AbortError extends Error {
|
|
|
18
18
|
static readonly type = 'aborted'
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* An {@see Error } subclass that defines a `.code` property that calling code
|
|
23
|
+
* can use to detect what type of error has been thrown and act accordingly.
|
|
24
|
+
*/
|
|
21
25
|
export class CodeError<T extends Record<string, any> = Record<string, never>> extends Error {
|
|
22
26
|
public readonly props: T
|
|
23
27
|
|
|
@@ -55,13 +59,22 @@ export class InvalidCryptoExchangeError extends Error {
|
|
|
55
59
|
static readonly code = 'ERR_INVALID_CRYPTO_EXCHANGE'
|
|
56
60
|
}
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
/**
|
|
63
|
+
* A generic error code indicating that a timeout occurred
|
|
64
|
+
*/
|
|
65
|
+
export const ERR_TIMEOUT = 'ERR_TIMEOUT'
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
/**
|
|
68
|
+
* A generic error code indicating that invalid paramters were passed
|
|
69
|
+
*/
|
|
70
|
+
export const ERR_INVALID_PARAMETERS = 'ERR_INVALID_PARAMETERS'
|
|
65
71
|
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
/**
|
|
73
|
+
* A generic error code indicating that something was not found
|
|
74
|
+
*/
|
|
75
|
+
export const ERR_NOT_FOUND = 'ERR_NOT_FOUND'
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* A generic error code indicating that the message was invalid
|
|
79
|
+
*/
|
|
80
|
+
export const ERR_INVALID_MESSAGE = 'ERR_INVALID_MESSAGE'
|
package/src/events.ts
CHANGED
|
@@ -117,9 +117,6 @@ class CustomEventPolyfill<T = any> extends Event {
|
|
|
117
117
|
|
|
118
118
|
export const CustomEvent = globalThis.CustomEvent ?? CustomEventPolyfill
|
|
119
119
|
|
|
120
|
-
// TODO: remove this in v1
|
|
121
|
-
export { TypedEventEmitter as EventEmitter }
|
|
122
|
-
|
|
123
120
|
// create a setMaxListeners that doesn't break browser usage
|
|
124
121
|
export const setMaxListeners: typeof nodeSetMaxListeners = (n, ...eventTargets) => {
|
|
125
122
|
try {
|