Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/interface

Package Overview
Dependencies
Maintainers
6
Versions
535
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface - npm Package Compare versions

Comparing version 2.2.0-665769021 to 2.2.0-02f285fc8

8

dist/src/transport/index.d.ts

@@ -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-665769021",
"version": "2.2.0-02f285fc8",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc