@libp2p/interface
Advanced tools
Comparing version 2.2.0-7c085d10c to 2.2.0-7dcabb884
@@ -8,3 +8,2 @@ import type { Connection, ConnectionLimits, MultiaddrConnection } from '../connection/index.js'; | ||
export interface ListenerEvents { | ||
'connection': CustomEvent<Connection>; | ||
'listening': CustomEvent; | ||
@@ -38,3 +37,2 @@ 'error': CustomEvent<Error>; | ||
export interface CreateListenerOptions { | ||
handler?: ConnectionHandler; | ||
upgrader: Upgrader; | ||
@@ -100,10 +98,10 @@ } | ||
/** | ||
* Upgrades an outbound connection on `transport.dial`. | ||
* Upgrades an outbound connection on `transport.dial` | ||
*/ | ||
upgradeOutbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<OutboundConnectionUpgradeEvents>): Promise<Connection>; | ||
/** | ||
* Upgrades an inbound connection on transport listener. | ||
* Upgrades an inbound connection received by a transport listener | ||
*/ | ||
upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<Connection>; | ||
upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<void>; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@libp2p/interface", | ||
"version": "2.2.0-7c085d10c", | ||
"version": "2.2.0-7dcabb884", | ||
"description": "The interface implemented by a libp2p node", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -9,3 +9,2 @@ import type { Connection, ConnectionLimits, MultiaddrConnection } from '../connection/index.js' | ||
export interface ListenerEvents { | ||
'connection': CustomEvent<Connection> | ||
'listening': CustomEvent | ||
@@ -40,3 +39,2 @@ 'error': CustomEvent<Error> | ||
export interface CreateListenerOptions { | ||
handler?: ConnectionHandler | ||
upgrader: Upgrader | ||
@@ -122,3 +120,3 @@ } | ||
/** | ||
* Upgrades an outbound connection on `transport.dial`. | ||
* Upgrades an outbound connection on `transport.dial` | ||
*/ | ||
@@ -128,5 +126,5 @@ upgradeOutbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<OutboundConnectionUpgradeEvents>): Promise<Connection> | ||
/** | ||
* Upgrades an inbound connection on transport listener. | ||
* Upgrades an inbound connection received by a transport listener | ||
*/ | ||
upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<Connection> | ||
upgradeInbound(maConn: MultiaddrConnection, opts?: UpgraderOptions<InboundConnectionUpgradeEvents>): Promise<void> | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
300665
7431