Socket
Book a DemoInstallSign in
Socket

@libp2p/interface-internal

Package Overview
Dependencies
Maintainers
6
Versions
725
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-internal - npm Package Compare versions

Comparing version

to
2.3.14-b32bc8406

5

dist/src/registrar.d.ts
import type { StreamHandler, StreamHandlerOptions, StreamHandlerRecord, Topology, IncomingStreamData } from '@libp2p/interface';
import type { AbortOptions } from '@multiformats/multiaddr';
export type {

@@ -53,3 +54,3 @@ /**

*/
unhandle(protocol: string): Promise<void>;
unhandle(protocol: string, options?: AbortOptions): Promise<void>;
/**

@@ -74,3 +75,3 @@ * Retrieve the registered handler for a given protocol.

*/
register(protocol: string, topology: Topology): Promise<string>;
register(protocol: string, topology: Topology, options?: AbortOptions): Promise<string>;
/**

@@ -77,0 +78,0 @@ * Unregister a topology handler using its unique ID.

8

package.json
{
"name": "@libp2p/interface-internal",
"version": "2.3.14-9f1be6742",
"version": "2.3.14-b32bc8406",
"description": "Interfaces implemented by internal libp2p components",

@@ -44,4 +44,4 @@ "license": "Apache-2.0 OR MIT",

"dependencies": {
"@libp2p/interface": "2.10.2-9f1be6742",
"@libp2p/peer-collections": "6.0.30-9f1be6742",
"@libp2p/interface": "2.10.2-b32bc8406",
"@libp2p/peer-collections": "6.0.30-b32bc8406",
"@multiformats/multiaddr": "^12.4.0",

@@ -51,5 +51,5 @@ "progress-events": "^1.0.1"

"devDependencies": {
"aegir": "^47.0.6"
"aegir": "^47.0.14"
},
"sideEffects": false
}
import type { StreamHandler, StreamHandlerOptions, StreamHandlerRecord, Topology, IncomingStreamData } from '@libp2p/interface'
import type { AbortOptions } from '@multiformats/multiaddr'

@@ -61,3 +62,3 @@ export type {

*/
unhandle(protocol: string): Promise<void>
unhandle(protocol: string, options?: AbortOptions): Promise<void>

@@ -84,3 +85,3 @@ /**

*/
register(protocol: string, topology: Topology): Promise<string>
register(protocol: string, topology: Topology, options?: AbortOptions): Promise<string>

@@ -87,0 +88,0 @@ /**

Sorry, the diff of this file is not supported yet