@libp2p/daemon-protocol 7.0.1 → 7.0.2

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,5 +1,5 @@
1
1
  import type { Connection, MultiaddrConnection, Upgrader } from '@libp2p/interface';
2
- interface OnConnection {
2
+ export interface OnConnection {
3
3
  (conn: MultiaddrConnection): void;
4
4
  }
5
5
  export declare class PassThroughUpgrader implements Upgrader {
@@ -8,5 +8,4 @@ export declare class PassThroughUpgrader implements Upgrader {
8
8
  upgradeInbound(maConn: MultiaddrConnection): Promise<Connection>;
9
9
  upgradeOutbound(maConn: MultiaddrConnection): Promise<Connection>;
10
10
  }
11
- export {};
12
11
  //# sourceMappingURL=upgrader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upgrader.d.ts","sourceRoot":"","sources":["../../src/upgrader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElF,UAAU,YAAY;IACpB,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAA;CAClC;AAED,qBAAa,mBAAoB,YAAW,QAAQ;IAClD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAc;gBAE/B,OAAO,CAAC,EAAE,YAAY;IAI7B,cAAc,CAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;IAMjE,eAAe,CAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAIzE"}
1
+ {"version":3,"file":"upgrader.d.ts","sourceRoot":"","sources":["../../src/upgrader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElF,MAAM,WAAW,YAAY;IAC3B,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAA;CAClC;AAED,qBAAa,mBAAoB,YAAW,QAAQ;IAClD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAc;gBAE/B,OAAO,CAAC,EAAE,YAAY;IAI7B,cAAc,CAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;IAMjE,eAAe,CAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAIzE"}
@@ -48,5 +48,7 @@
48
48
  "StreamHandlerOptions": "https://libp2p.github.io/js-libp2p-daemon/interfaces/_libp2p_daemon_protocol.stream_handler.StreamHandlerOptions.html",
49
49
  "./stream-handler:StreamHandlerOptions": "https://libp2p.github.io/js-libp2p-daemon/interfaces/_libp2p_daemon_protocol.stream_handler.StreamHandlerOptions.html",
50
50
  "PassThroughUpgrader": "https://libp2p.github.io/js-libp2p-daemon/classes/_libp2p_daemon_protocol.upgrader.PassThroughUpgrader.html",
51
- "./upgrader:PassThroughUpgrader": "https://libp2p.github.io/js-libp2p-daemon/classes/_libp2p_daemon_protocol.upgrader.PassThroughUpgrader.html"
51
+ "./upgrader:PassThroughUpgrader": "https://libp2p.github.io/js-libp2p-daemon/classes/_libp2p_daemon_protocol.upgrader.PassThroughUpgrader.html",
52
+ "OnConnection": "https://libp2p.github.io/js-libp2p-daemon/interfaces/_libp2p_daemon_protocol.upgrader.OnConnection.html",
53
+ "./upgrader:OnConnection": "https://libp2p.github.io/js-libp2p-daemon/interfaces/_libp2p_daemon_protocol.upgrader.OnConnection.html"
52
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/daemon-protocol",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Communication protocol between libp2p daemons and clients",
5
5
  "author": "",
6
6
  "license": "Apache-2.0 OR MIT",
package/src/upgrader.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Connection, MultiaddrConnection, Upgrader } from '@libp2p/interface'
2
2
 
3
- interface OnConnection {
3
+ export interface OnConnection {
4
4
  (conn: MultiaddrConnection): void
5
5
  }
6
6