@libp2p/interface 2.4.1-d72b51184 → 2.5.0-d8f003e6e

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.
Files changed (143) hide show
  1. package/dist/index.min.js +1 -1
  2. package/dist/src/{connection-encrypter/index.d.ts → connection-encrypter.d.ts} +4 -4
  3. package/dist/src/connection-encrypter.d.ts.map +1 -0
  4. package/dist/src/connection-encrypter.js +2 -0
  5. package/dist/src/connection-encrypter.js.map +1 -0
  6. package/dist/src/{connection-gater/index.d.ts → connection-gater.d.ts} +3 -3
  7. package/dist/src/{connection-gater/index.d.ts.map → connection-gater.d.ts.map} +1 -1
  8. package/dist/src/connection-gater.js +2 -0
  9. package/dist/src/connection-gater.js.map +1 -0
  10. package/dist/src/{connection/index.d.ts → connection.d.ts} +3 -3
  11. package/dist/src/connection.d.ts.map +1 -0
  12. package/dist/src/{connection/index.js → connection.js} +1 -1
  13. package/dist/src/connection.js.map +1 -0
  14. package/dist/src/{content-routing/index.d.ts → content-routing.d.ts} +3 -3
  15. package/dist/src/content-routing.d.ts.map +1 -0
  16. package/dist/src/{content-routing/index.js → content-routing.js} +1 -1
  17. package/dist/src/content-routing.js.map +1 -0
  18. package/dist/src/events.d.ts +1 -1
  19. package/dist/src/events.d.ts.map +1 -1
  20. package/dist/src/events.js +1 -1
  21. package/dist/src/events.js.map +1 -1
  22. package/dist/src/index.d.ts +34 -30
  23. package/dist/src/index.d.ts.map +1 -1
  24. package/dist/src/index.js +17 -18
  25. package/dist/src/index.js.map +1 -1
  26. package/dist/src/{keys/index.d.ts → keys.d.ts} +1 -1
  27. package/dist/src/keys.d.ts.map +1 -0
  28. package/dist/src/{keys/index.js → keys.js} +1 -1
  29. package/dist/src/keys.js.map +1 -0
  30. package/dist/src/{metrics/index.d.ts → metrics.d.ts} +2 -2
  31. package/dist/src/metrics.d.ts.map +1 -0
  32. package/dist/src/metrics.js +2 -0
  33. package/dist/src/metrics.js.map +1 -0
  34. package/dist/src/{peer-discovery/index.d.ts → peer-discovery.d.ts} +3 -3
  35. package/dist/src/peer-discovery.d.ts.map +1 -0
  36. package/dist/src/{peer-discovery/index.js → peer-discovery.js} +1 -1
  37. package/dist/src/peer-discovery.js.map +1 -0
  38. package/dist/src/{peer-id/index.d.ts → peer-id.d.ts} +2 -2
  39. package/dist/src/peer-id.d.ts.map +1 -0
  40. package/dist/src/{peer-id/index.js → peer-id.js} +1 -1
  41. package/dist/src/peer-id.js.map +1 -0
  42. package/dist/src/{peer-info/index.d.ts → peer-info.d.ts} +2 -2
  43. package/dist/src/peer-info.d.ts.map +1 -0
  44. package/dist/src/peer-info.js +2 -0
  45. package/dist/src/peer-info.js.map +1 -0
  46. package/dist/src/{peer-routing/index.d.ts → peer-routing.d.ts} +4 -4
  47. package/dist/src/peer-routing.d.ts.map +1 -0
  48. package/dist/src/{peer-routing/index.js → peer-routing.js} +1 -1
  49. package/dist/src/peer-routing.js.map +1 -0
  50. package/dist/src/{peer-store/index.d.ts → peer-store.d.ts} +12 -3
  51. package/dist/src/peer-store.d.ts.map +1 -0
  52. package/dist/src/{peer-store/tags.js → peer-store.js} +1 -1
  53. package/dist/src/peer-store.js.map +1 -0
  54. package/dist/src/{pubsub/index.d.ts → pubsub.d.ts} +5 -5
  55. package/dist/src/pubsub.d.ts.map +1 -0
  56. package/dist/src/{pubsub/index.js → pubsub.js} +1 -1
  57. package/dist/src/pubsub.js.map +1 -0
  58. package/dist/src/{record/index.d.ts → record.d.ts} +2 -2
  59. package/dist/src/record.d.ts.map +1 -0
  60. package/dist/src/record.js +2 -0
  61. package/dist/src/record.js.map +1 -0
  62. package/dist/src/{stream-handler/index.d.ts → stream-handler.d.ts} +22 -2
  63. package/dist/src/stream-handler.d.ts.map +1 -0
  64. package/dist/src/stream-handler.js +2 -0
  65. package/dist/src/stream-handler.js.map +1 -0
  66. package/dist/src/{stream-muxer/index.d.ts → stream-muxer.d.ts} +3 -3
  67. package/dist/src/stream-muxer.d.ts.map +1 -0
  68. package/dist/src/stream-muxer.js +2 -0
  69. package/dist/src/stream-muxer.js.map +1 -0
  70. package/dist/src/{topology/index.d.ts → topology.d.ts} +3 -3
  71. package/dist/src/topology.d.ts.map +1 -0
  72. package/dist/src/topology.js +2 -0
  73. package/dist/src/topology.js.map +1 -0
  74. package/dist/src/{transport/index.d.ts → transport.d.ts} +5 -5
  75. package/dist/src/transport.d.ts.map +1 -0
  76. package/dist/src/{transport/index.js → transport.js} +1 -1
  77. package/dist/src/transport.js.map +1 -0
  78. package/package.json +2 -2
  79. package/src/{connection-encrypter/index.ts → connection-encrypter.ts} +3 -3
  80. package/src/{connection-gater/index.ts → connection-gater.ts} +2 -2
  81. package/src/{connection/index.ts → connection.ts} +2 -2
  82. package/src/{content-routing/index.ts → content-routing.ts} +2 -2
  83. package/src/events.ts +1 -1
  84. package/src/index.ts +35 -30
  85. package/src/{metrics/index.ts → metrics.ts} +1 -1
  86. package/src/{peer-discovery/index.ts → peer-discovery.ts} +2 -2
  87. package/src/{peer-id/index.ts → peer-id.ts} +1 -1
  88. package/src/{peer-info/index.ts → peer-info.ts} +1 -1
  89. package/src/{peer-routing/index.ts → peer-routing.ts} +3 -3
  90. package/src/{peer-store/index.ts → peer-store.ts} +12 -2
  91. package/src/{pubsub/index.ts → pubsub.ts} +4 -4
  92. package/src/{record/index.ts → record.ts} +1 -1
  93. package/src/{stream-handler/index.ts → stream-handler.ts} +24 -1
  94. package/src/{stream-muxer/index.ts → stream-muxer.ts} +2 -2
  95. package/src/{topology/index.ts → topology.ts} +2 -2
  96. package/src/{transport/index.ts → transport.ts} +4 -4
  97. package/dist/src/connection/index.d.ts.map +0 -1
  98. package/dist/src/connection/index.js.map +0 -1
  99. package/dist/src/connection-encrypter/index.d.ts.map +0 -1
  100. package/dist/src/connection-encrypter/index.js +0 -2
  101. package/dist/src/connection-encrypter/index.js.map +0 -1
  102. package/dist/src/connection-gater/index.js +0 -2
  103. package/dist/src/connection-gater/index.js.map +0 -1
  104. package/dist/src/content-routing/index.d.ts.map +0 -1
  105. package/dist/src/content-routing/index.js.map +0 -1
  106. package/dist/src/keys/index.d.ts.map +0 -1
  107. package/dist/src/keys/index.js.map +0 -1
  108. package/dist/src/metrics/index.d.ts.map +0 -1
  109. package/dist/src/metrics/index.js +0 -2
  110. package/dist/src/metrics/index.js.map +0 -1
  111. package/dist/src/peer-discovery/index.d.ts.map +0 -1
  112. package/dist/src/peer-discovery/index.js.map +0 -1
  113. package/dist/src/peer-id/index.d.ts.map +0 -1
  114. package/dist/src/peer-id/index.js.map +0 -1
  115. package/dist/src/peer-info/index.d.ts.map +0 -1
  116. package/dist/src/peer-info/index.js +0 -2
  117. package/dist/src/peer-info/index.js.map +0 -1
  118. package/dist/src/peer-routing/index.d.ts.map +0 -1
  119. package/dist/src/peer-routing/index.js.map +0 -1
  120. package/dist/src/peer-store/index.d.ts.map +0 -1
  121. package/dist/src/peer-store/index.js +0 -2
  122. package/dist/src/peer-store/index.js.map +0 -1
  123. package/dist/src/peer-store/tags.d.ts +0 -10
  124. package/dist/src/peer-store/tags.d.ts.map +0 -1
  125. package/dist/src/peer-store/tags.js.map +0 -1
  126. package/dist/src/pubsub/index.d.ts.map +0 -1
  127. package/dist/src/pubsub/index.js.map +0 -1
  128. package/dist/src/record/index.d.ts.map +0 -1
  129. package/dist/src/record/index.js +0 -2
  130. package/dist/src/record/index.js.map +0 -1
  131. package/dist/src/stream-handler/index.d.ts.map +0 -1
  132. package/dist/src/stream-handler/index.js +0 -2
  133. package/dist/src/stream-handler/index.js.map +0 -1
  134. package/dist/src/stream-muxer/index.d.ts.map +0 -1
  135. package/dist/src/stream-muxer/index.js +0 -2
  136. package/dist/src/stream-muxer/index.js.map +0 -1
  137. package/dist/src/topology/index.d.ts.map +0 -1
  138. package/dist/src/topology/index.js +0 -2
  139. package/dist/src/topology/index.js.map +0 -1
  140. package/dist/src/transport/index.d.ts.map +0 -1
  141. package/dist/src/transport/index.js.map +0 -1
  142. package/src/peer-store/tags.ts +0 -9
  143. /package/src/{keys/index.ts → keys.ts} +0 -0
@@ -1,6 +1,15 @@
1
- import type { PublicKey } from '../keys/index.js';
2
- import type { PeerId } from '../peer-id/index.js';
1
+ import type { PublicKey } from './keys.js';
2
+ import type { PeerId } from './peer-id.js';
3
3
  import type { Multiaddr } from '@multiformats/multiaddr';
4
+ /**
5
+ * When a peer that is tagged with this prefix disconnects, we will attempt to
6
+ * redial it, up to a limit.
7
+ *
8
+ * To allow multiple components to add/remove their own keep-alive tags without
9
+ * accidentally overwriting those of other components, attach a unique suffix to
10
+ * the tag, e.g. `keep-alive-circuit-relay` or `keep-alive-kad-dht`, etc.
11
+ */
12
+ export declare const KEEP_ALIVE = "keep-alive";
4
13
  /**
5
14
  * A multiaddr with an optional flag that indicates if its trustworthy
6
15
  */
@@ -247,4 +256,4 @@ export interface PeerStore {
247
256
  */
248
257
  consumePeerRecord(buf: Uint8Array, expectedPeer?: PeerId): Promise<boolean>;
249
258
  }
250
- //# sourceMappingURL=index.d.ts.map
259
+ //# sourceMappingURL=peer-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peer-store.d.ts","sourceRoot":"","sources":["../../src/peer-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,eAAe,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;OAGG;IACH,SAAS,EAAE,OAAO,EAAE,CAAA;IAEpB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AAC,GAAG,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC5E"}
@@ -7,4 +7,4 @@
7
7
  * the tag, e.g. `keep-alive-circuit-relay` or `keep-alive-kad-dht`, etc.
8
8
  */
9
9
  export const KEEP_ALIVE = 'keep-alive';
10
- //# sourceMappingURL=tags.js.map
10
+ //# sourceMappingURL=peer-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"peer-store.js","sourceRoot":"","sources":["../../src/peer-store.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAA"}
@@ -1,7 +1,7 @@
1
- import type { Stream } from '../connection/index.js';
2
- import type { TypedEventTarget } from '../event-target.js';
3
- import type { PublicKey } from '../keys/index.js';
4
- import type { PeerId } from '../peer-id/index.js';
1
+ import type { Stream } from './connection.js';
2
+ import type { TypedEventTarget } from './event-target.js';
3
+ import type { PublicKey } from './keys.js';
4
+ import type { PeerId } from './peer-id.js';
5
5
  import type { Pushable } from 'it-pushable';
6
6
  import type { Uint8ArrayList } from 'uint8arraylist';
7
7
  /**
@@ -242,4 +242,4 @@ export declare const pubSubSymbol: unique symbol;
242
242
  * Returns true if the passed argument is a PubSub implementation
243
243
  */
244
244
  export declare function isPubSub(obj?: any): obj is PubSub;
245
- //# sourceMappingURL=index.d.ts.map
245
+ //# sourceMappingURL=pubsub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pubsub.d.ts","sourceRoot":"","sources":["../../src/pubsub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AA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ACrC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,eAA+B,CAAA;AAExD;;GAEG;AACH,wBAAgB,QAAQ,CAAE,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,CAElD"}
@@ -44,4 +44,4 @@ export const pubSubSymbol = Symbol.for('@libp2p/pubsub');
44
44
  export function isPubSub(obj) {
45
45
  return Boolean(obj?.[pubSubSymbol]);
46
46
  }
47
- //# sourceMappingURL=index.js.map
47
+ //# sourceMappingURL=pubsub.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pubsub.js","sourceRoot":"","sources":["../../src/pubsub.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAA;AAEtC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAA;AA6G1C,MAAM,CAAN,IAAY,oBAaX;AAbD,WAAY,oBAAoB;IAC9B;;OAEG;IACH,yCAAiB,CAAA;IACjB;;OAEG;IACH,yCAAiB,CAAA;IACjB;;OAEG;IACH,yCAAiB,CAAA;AACnB,CAAC,EAbW,oBAAoB,KAApB,oBAAoB,QAa/B;AA0HD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;AAExD;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAE,GAAS;IACjC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,CAAA;AACrC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { PublicKey } from '../keys/index.js';
1
+ import type { PublicKey } from './keys.js';
2
2
  import type { Uint8ArrayList } from 'uint8arraylist';
3
3
  /**
4
4
  * Record is the base implementation of a record that can be used as the payload of a libp2p envelope.
@@ -30,4 +30,4 @@ export interface Envelope {
30
30
  validate(domain: string): Promise<boolean>;
31
31
  equals(other: Envelope): boolean;
32
32
  }
33
- //# sourceMappingURL=index.d.ts.map
33
+ //# sourceMappingURL=record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,OAAO,IAAI,UAAU,CAAA;IACrB;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CAC/B;AAED,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,UAAU,GAAG,cAAc,CAAA;IACxC,OAAO,EAAE,UAAU,CAAA;IACnB,SAAS,EAAE,UAAU,GAAG,cAAc,CAAA;IAEtC,OAAO,IAAI,UAAU,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1C,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAA;CACjC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.js","sourceRoot":"","sources":["../../src/record.ts"],"names":[],"mappings":""}
@@ -1,9 +1,18 @@
1
- import type { Connection, Stream } from '../connection/index.js';
1
+ import type { Connection, Stream } from './connection.js';
2
2
  export interface IncomingStreamData {
3
+ /**
4
+ * The newly opened stream
5
+ */
3
6
  stream: Stream;
7
+ /**
8
+ * The connection the stream was opened on
9
+ */
4
10
  connection: Connection;
5
11
  }
6
12
  export interface StreamHandler {
13
+ /**
14
+ * A callback function that accepts the incoming stream data
15
+ */
7
16
  (data: IncomingStreamData): void;
8
17
  }
9
18
  export interface StreamHandlerOptions {
@@ -24,9 +33,20 @@ export interface StreamHandlerOptions {
24
33
  * transferred or how long it can be open for.
25
34
  */
26
35
  runOnLimitedConnection?: boolean;
36
+ /**
37
+ * If `true`, and a handler is already registered for the specified
38
+ * protocol(s), the existing handler will be discarded.
39
+ */
40
+ force?: true;
27
41
  }
28
42
  export interface StreamHandlerRecord {
43
+ /**
44
+ * The handler that was registered to handle streams opened on the protocol
45
+ */
29
46
  handler: StreamHandler;
47
+ /**
48
+ * The options that were used to register the stream handler
49
+ */
30
50
  options: StreamHandlerOptions;
31
51
  }
32
- //# sourceMappingURL=index.d.ts.map
52
+ //# sourceMappingURL=stream-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-handler.d.ts","sourceRoot":"","sources":["../../src/stream-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAEzD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAEhC;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,CAAA;CACb;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,aAAa,CAAA;IAEtB;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAA;CAC9B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stream-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-handler.js","sourceRoot":"","sources":["../../src/stream-handler.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import type { Direction, Stream } from '../connection/index.js';
2
- import type { AbortOptions } from '../index.js';
1
+ import type { Direction, Stream } from './connection.js';
2
+ import type { AbortOptions } from './index.js';
3
3
  import type { Duplex } from 'it-stream-types';
4
4
  import type { Uint8ArrayList } from 'uint8arraylist';
5
5
  export interface StreamMuxerFactory {
@@ -52,4 +52,4 @@ export interface StreamMuxerInit {
52
52
  */
53
53
  direction?: Direction;
54
54
  }
55
- //# sourceMappingURL=index.d.ts.map
55
+ //# sourceMappingURL=stream-muxer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-muxer.d.ts","sourceRoot":"","sources":["../../src/stream-muxer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,iBAAiB,CAAC,IAAI,CAAC,EAAE,eAAe,GAAG,WAAW,CAAA;CACvD;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,CAAC;IACtF;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAA;IAC1B;;;OAGG;IACH,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAElD;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE5C;;OAEG;IACH,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,gBAAgB,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvC;;OAEG;IACH,WAAW,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IAElC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stream-muxer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-muxer.js","sourceRoot":"","sources":["../../src/stream-muxer.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import type { Connection } from '../connection/index.js';
2
- import type { PeerId } from '../peer-id/index.js';
1
+ import type { Connection } from './connection.js';
2
+ import type { PeerId } from './peer-id.js';
3
3
  /**
4
4
  * A topology filter
5
5
  *
@@ -42,4 +42,4 @@ export interface Topology {
42
42
  */
43
43
  onDisconnect?(peerId: PeerId): void;
44
44
  }
45
- //# sourceMappingURL=index.d.ts.map
45
+ //# sourceMappingURL=topology.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topology.d.ts","sourceRoot":"","sources":["../../src/topology.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAA;IAC7B,GAAG,CAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,CAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IAEvB;;;;;;OAMG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAA;IAEnC;;;OAGG;IACH,SAAS,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI,CAAA;IAElD;;;OAGG;IACH,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACpC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=topology.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topology.js","sourceRoot":"","sources":["../../src/topology.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- import type { Connection, ConnectionLimits, MultiaddrConnection } from '../connection/index.js';
2
- import type { TypedEventTarget } from '../event-target.js';
3
- import type { AbortOptions } from '../index.js';
4
- import type { StreamMuxerFactory } from '../stream-muxer/index.js';
1
+ import type { Connection, ConnectionLimits, MultiaddrConnection } from './connection.js';
2
+ import type { TypedEventTarget } from './event-target.js';
3
+ import type { AbortOptions } from './index.js';
4
+ import type { StreamMuxerFactory } from './stream-muxer.js';
5
5
  import type { Multiaddr } from '@multiformats/multiaddr';
6
6
  import type { ProgressOptions, ProgressEvent } from 'progress-events';
7
7
  export interface ListenerEvents {
@@ -119,4 +119,4 @@ export interface Upgrader {
119
119
  */
120
120
  upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<void>;
121
121
  }
122
- //# sourceMappingURL=index.d.ts.map
122
+ //# sourceMappingURL=transport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EA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AAC,UAAU,CAAC,CAAA;IAE1H;;;OAGG;IACH,cAAc,CAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,eAAe,CAAC,8BAA8B,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACnH"}
@@ -16,4 +16,4 @@ export var FaultTolerance;
16
16
  */
17
17
  FaultTolerance[FaultTolerance["NO_FATAL"] = 1] = "NO_FATAL";
18
18
  })(FaultTolerance || (FaultTolerance = {}));
19
- //# sourceMappingURL=index.js.map
19
+ //# sourceMappingURL=transport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AA2CA,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;AAyD9D,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/interface",
3
- "version": "2.4.1-d72b51184",
3
+ "version": "2.5.0-d8f003e6e",
4
4
  "description": "The interface implemented by a libp2p node",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface#readme",
@@ -59,7 +59,7 @@
59
59
  "aegir": "^45.0.5"
60
60
  },
61
61
  "browser": {
62
- "events": "./dist/src/events.browser.js"
62
+ "./dist/src/events.js": "./dist/src/events.browser.js"
63
63
  },
64
64
  "react-native": {
65
65
  "./dist/src/events.js": "./dist/src/events.browser.js"
@@ -1,6 +1,6 @@
1
- import type { MultiaddrConnection } from '../connection/index.js'
2
- import type { AbortOptions } from '../index.js'
3
- import type { PeerId } from '../peer-id/index.js'
1
+ import type { MultiaddrConnection } from './connection.js'
2
+ import type { AbortOptions } from './index.js'
3
+ import type { PeerId } from './peer-id.js'
4
4
  import type { Duplex } from 'it-stream-types'
5
5
  import type { Uint8ArrayList } from 'uint8arraylist'
6
6
 
@@ -1,5 +1,5 @@
1
- import type { MultiaddrConnection } from '../connection/index.js'
2
- import type { PeerId } from '../peer-id/index.js'
1
+ import type { MultiaddrConnection } from './connection.js'
2
+ import type { PeerId } from './peer-id.js'
3
3
  import type { Multiaddr } from '@multiformats/multiaddr'
4
4
 
5
5
  export interface ConnectionGater {
@@ -1,5 +1,5 @@
1
- import type { AbortOptions, Logger } from '../index.js'
2
- import type { PeerId } from '../peer-id/index.js'
1
+ import type { AbortOptions, Logger } from './index.js'
2
+ import type { PeerId } from './peer-id.js'
3
3
  import type { Multiaddr } from '@multiformats/multiaddr'
4
4
  import type { Duplex, Source } from 'it-stream-types'
5
5
  import type { Uint8ArrayList } from 'uint8arraylist'
@@ -1,5 +1,5 @@
1
- import type { RoutingOptions } from '../index.js'
2
- import type { PeerInfo } from '../peer-info/index.js'
1
+ import type { RoutingOptions } from './index.js'
2
+ import type { PeerInfo } from './peer-info.js'
3
3
  import type { CID } from 'multiformats/cid'
4
4
 
5
5
  /**
package/src/events.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { setMaxListeners as nodeSetMaxListeners } from 'events'
1
+ import { setMaxListeners as nodeSetMaxListeners } from 'node:events'
2
2
 
3
3
  /**
4
4
  * Create a setMaxListeners that doesn't break browser usage
package/src/index.ts CHANGED
@@ -14,19 +14,19 @@
14
14
  * ```
15
15
  */
16
16
 
17
- import type { Connection, NewStreamOptions, Stream } from './connection/index.js'
18
- import type { ContentRouting } from './content-routing/index.js'
17
+ import type { Connection, NewStreamOptions, Stream } from './connection.js'
18
+ import type { ContentRouting } from './content-routing.js'
19
19
  import type { TypedEventTarget } from './event-target.js'
20
- import type { Ed25519PublicKey, PublicKey, RSAPublicKey, Secp256k1PublicKey } from './keys/index.js'
21
- import type { Metrics } from './metrics/index.js'
22
- import type { Ed25519PeerId, PeerId, RSAPeerId, Secp256k1PeerId, URLPeerId } from './peer-id/index.js'
23
- import type { PeerInfo } from './peer-info/index.js'
24
- import type { PeerRouting } from './peer-routing/index.js'
25
- import type { Address, Peer, PeerStore } from './peer-store/index.js'
20
+ import type { Ed25519PublicKey, PublicKey, RSAPublicKey, Secp256k1PublicKey } from './keys.js'
21
+ import type { Metrics } from './metrics.js'
22
+ import type { Ed25519PeerId, PeerId, RSAPeerId, Secp256k1PeerId, URLPeerId } from './peer-id.js'
23
+ import type { PeerInfo } from './peer-info.js'
24
+ import type { PeerRouting } from './peer-routing.js'
25
+ import type { Address, Peer, PeerStore } from './peer-store.js'
26
26
  import type { Startable } from './startable.js'
27
- import type { StreamHandler, StreamHandlerOptions } from './stream-handler/index.js'
28
- import type { Topology } from './topology/index.js'
29
- import type { Listener, OutboundConnectionUpgradeEvents } from './transport/index.js'
27
+ import type { StreamHandler, StreamHandlerOptions } from './stream-handler.js'
28
+ import type { Topology } from './topology.js'
29
+ import type { Listener, OutboundConnectionUpgradeEvents } from './transport.js'
30
30
  import type { Multiaddr } from '@multiformats/multiaddr'
31
31
  import type { ProgressOptions, ProgressEvent } from 'progress-events'
32
32
 
@@ -620,7 +620,8 @@ export interface Libp2p<T extends ServiceMap = ServiceMap> extends Startable, Ty
620
620
  *
621
621
  * `libp2p.handle(protocols, handler, options)`
622
622
  *
623
- * In the event of a new handler for the same protocol being added, the first one is discarded.
623
+ * In the event of a new handler for the same protocol being added and error
624
+ * will be thrown. Pass `force: true` to override this.
624
625
  *
625
626
  * @example
626
627
  *
@@ -723,6 +724,11 @@ export interface NodeInfo {
723
724
  * The implementation version
724
725
  */
725
726
  version: string
727
+
728
+ /**
729
+ * A string that contains information about the implementation and runtime
730
+ */
731
+ userAgent: string
726
732
  }
727
733
 
728
734
  /**
@@ -802,24 +808,23 @@ export const serviceCapabilities = Symbol.for('@libp2p/service-capabilities')
802
808
  */
803
809
  export const serviceDependencies = Symbol.for('@libp2p/service-dependencies')
804
810
 
805
- export * from './connection/index.js'
806
- export * from './connection-encrypter/index.js'
807
- export * from './connection-gater/index.js'
808
- export * from './content-routing/index.js'
809
- export * from './keys/index.js'
810
- export * from './metrics/index.js'
811
- export * from './peer-discovery/index.js'
812
- export * from './peer-id/index.js'
813
- export * from './peer-info/index.js'
814
- export * from './peer-routing/index.js'
815
- export * from './peer-store/index.js'
816
- export * from './peer-store/tags.js'
817
- export * from './pubsub/index.js'
818
- export * from './record/index.js'
819
- export * from './stream-handler/index.js'
820
- export * from './stream-muxer/index.js'
821
- export * from './topology/index.js'
822
- export * from './transport/index.js'
811
+ export * from './connection.js'
812
+ export * from './connection-encrypter.js'
813
+ export * from './connection-gater.js'
814
+ export * from './content-routing.js'
815
+ export * from './keys.js'
816
+ export * from './metrics.js'
817
+ export * from './peer-discovery.js'
818
+ export * from './peer-id.js'
819
+ export * from './peer-info.js'
820
+ export * from './peer-routing.js'
821
+ export * from './peer-store.js'
822
+ export * from './pubsub.js'
823
+ export * from './record.js'
824
+ export * from './stream-handler.js'
825
+ export * from './stream-muxer.js'
826
+ export * from './topology.js'
827
+ export * from './transport.js'
823
828
  export * from './errors.js'
824
829
  export * from './event-target.js'
825
830
  export * from './events.js'
@@ -1,4 +1,4 @@
1
- import type { MultiaddrConnection, Stream, Connection } from '../connection/index.js'
1
+ import type { MultiaddrConnection, Stream, Connection } from './connection.js'
2
2
 
3
3
  /**
4
4
  * Create tracked metrics with these options. Loosely based on the
@@ -1,5 +1,5 @@
1
- import type { TypedEventTarget } from '../event-target.js'
2
- import type { PeerInfo } from '../peer-info/index.js'
1
+ import type { TypedEventTarget } from './event-target.js'
2
+ import type { PeerInfo } from './peer-info.js'
3
3
 
4
4
  /**
5
5
  * Any object that implements this Symbol as a property should return a
@@ -1,4 +1,4 @@
1
- import type { Ed25519PublicKey, KeyType, RSAPublicKey, Secp256k1PublicKey } from '../keys/index.js'
1
+ import type { Ed25519PublicKey, KeyType, RSAPublicKey, Secp256k1PublicKey } from './keys.js'
2
2
  import type { CID } from 'multiformats/cid'
3
3
  import type { MultihashDigest } from 'multiformats/hashes/interface'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { PeerId } from '../peer-id/index.js'
1
+ import type { PeerId } from './peer-id.js'
2
2
  import type { Multiaddr } from '@multiformats/multiaddr'
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
- import type { RoutingOptions } from '../index.js'
2
- import type { PeerId } from '../peer-id/index.js'
3
- import type { PeerInfo } from '../peer-info/index.js'
1
+ import type { RoutingOptions } from './index.js'
2
+ import type { PeerId } from './peer-id.js'
3
+ import type { PeerInfo } from './peer-info.js'
4
4
 
5
5
  /**
6
6
  * Any object that implements this Symbol as a property should return a
@@ -1,7 +1,17 @@
1
- import type { PublicKey } from '../keys/index.js'
2
- import type { PeerId } from '../peer-id/index.js'
1
+ import type { PublicKey } from './keys.js'
2
+ import type { PeerId } from './peer-id.js'
3
3
  import type { Multiaddr } from '@multiformats/multiaddr'
4
4
 
5
+ /**
6
+ * When a peer that is tagged with this prefix disconnects, we will attempt to
7
+ * redial it, up to a limit.
8
+ *
9
+ * To allow multiple components to add/remove their own keep-alive tags without
10
+ * accidentally overwriting those of other components, attach a unique suffix to
11
+ * the tag, e.g. `keep-alive-circuit-relay` or `keep-alive-kad-dht`, etc.
12
+ */
13
+ export const KEEP_ALIVE = 'keep-alive'
14
+
5
15
  /**
6
16
  * A multiaddr with an optional flag that indicates if its trustworthy
7
17
  */
@@ -1,7 +1,7 @@
1
- import type { Stream } from '../connection/index.js'
2
- import type { TypedEventTarget } from '../event-target.js'
3
- import type { PublicKey } from '../keys/index.js'
4
- import type { PeerId } from '../peer-id/index.js'
1
+ import type { Stream } from './connection.js'
2
+ import type { TypedEventTarget } from './event-target.js'
3
+ import type { PublicKey } from './keys.js'
4
+ import type { PeerId } from './peer-id.js'
5
5
  import type { Pushable } from 'it-pushable'
6
6
  import type { Uint8ArrayList } from 'uint8arraylist'
7
7
 
@@ -1,4 +1,4 @@
1
- import type { PublicKey } from '../keys/index.js'
1
+ import type { PublicKey } from './keys.js'
2
2
  import type { Uint8ArrayList } from 'uint8arraylist'
3
3
 
4
4
  /**
@@ -1,11 +1,21 @@
1
- import type { Connection, Stream } from '../connection/index.js'
1
+ import type { Connection, Stream } from './connection.js'
2
2
 
3
3
  export interface IncomingStreamData {
4
+ /**
5
+ * The newly opened stream
6
+ */
4
7
  stream: Stream
8
+
9
+ /**
10
+ * The connection the stream was opened on
11
+ */
5
12
  connection: Connection
6
13
  }
7
14
 
8
15
  export interface StreamHandler {
16
+ /**
17
+ * A callback function that accepts the incoming stream data
18
+ */
9
19
  (data: IncomingStreamData): void
10
20
  }
11
21
 
@@ -29,9 +39,22 @@ export interface StreamHandlerOptions {
29
39
  * transferred or how long it can be open for.
30
40
  */
31
41
  runOnLimitedConnection?: boolean
42
+
43
+ /**
44
+ * If `true`, and a handler is already registered for the specified
45
+ * protocol(s), the existing handler will be discarded.
46
+ */
47
+ force?: true
32
48
  }
33
49
 
34
50
  export interface StreamHandlerRecord {
51
+ /**
52
+ * The handler that was registered to handle streams opened on the protocol
53
+ */
35
54
  handler: StreamHandler
55
+
56
+ /**
57
+ * The options that were used to register the stream handler
58
+ */
36
59
  options: StreamHandlerOptions
37
60
  }
@@ -1,5 +1,5 @@
1
- import type { Direction, Stream } from '../connection/index.js'
2
- import type { AbortOptions } from '../index.js'
1
+ import type { Direction, Stream } from './connection.js'
2
+ import type { AbortOptions } from './index.js'
3
3
  import type { Duplex } from 'it-stream-types'
4
4
  import type { Uint8ArrayList } from 'uint8arraylist'
5
5
 
@@ -1,5 +1,5 @@
1
- import type { Connection } from '../connection/index.js'
2
- import type { PeerId } from '../peer-id/index.js'
1
+ import type { Connection } from './connection.js'
2
+ import type { PeerId } from './peer-id.js'
3
3
 
4
4
  /**
5
5
  * A topology filter
@@ -1,7 +1,7 @@
1
- import type { Connection, ConnectionLimits, MultiaddrConnection } from '../connection/index.js'
2
- import type { TypedEventTarget } from '../event-target.js'
3
- import type { AbortOptions } from '../index.js'
4
- import type { StreamMuxerFactory } from '../stream-muxer/index.js'
1
+ import type { Connection, ConnectionLimits, MultiaddrConnection } from './connection.js'
2
+ import type { TypedEventTarget } from './event-target.js'
3
+ import type { AbortOptions } from './index.js'
4
+ import type { StreamMuxerFactory } from './stream-muxer.js'
5
5
  import type { Multiaddr } from '@multiformats/multiaddr'
6
6
  import type { ProgressOptions, ProgressEvent } from 'progress-events'
7
7
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connection/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,CAAA;AAE9C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IAC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connection/index.ts"],"names":[],"mappings":"AAwVA,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;AAEhE,MAAM,UAAU,YAAY,CAAE,KAAU;IACtC,OAAO,KAAK,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAC1D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connection-encrypter/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB,CAAC,SAAS,GAAG,OAAO;IACtD,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,cAAc,CAAE,MAAM,SAAS,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,CAAC,GAAG,mBAAmB,EAAG,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;IAEhN;;;;OAIG;IACH,aAAa,CAAE,MAAM,SAAS,MAAM,CAAC,cAAc,CAAC,UAAU,GAAG,cAAc,CAAC,CAAC,GAAG,mBAAmB,EAAG,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;CAChN;AAED,MAAM,WAAW,iBAAiB,CAAC,MAAM,GAAG,GAAG,EAAE,SAAS,GAAG,OAAO;IAClE,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/connection-encrypter/index.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/connection-gater/index.ts"],"names":[],"mappings":""}