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

@libp2p/interfaces

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interfaces - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

4

dist/src/index.d.ts

@@ -9,2 +9,6 @@ export interface AbortOptions {

}
export interface Logger {
(...opts: any[]): void;
error: (...opts: any[]) => void;
}
//# sourceMappingURL=index.d.ts.map

5

dist/src/peer-discovery/index.d.ts
/// <reference types="node" />
import type { EventEmitter } from 'events';
import type { PeerData } from '../peer-data';
import type { PeerData } from '../peer-data/index.js';
import type { Startable } from '../index.js';
export interface PeerDiscoveryFactory {

@@ -11,3 +12,3 @@ new (options?: any): PeerDiscovery;

}
export interface PeerDiscovery extends EventEmitter {
export interface PeerDiscovery extends EventEmitter, Startable {
on: (<U extends keyof PeerDiscoveryEvents>(event: U, listener: (event: PeerDiscoveryEvents[U]) => void) => this) & ((event: string, listener: (...args: any[]) => void) => this);

@@ -14,0 +15,0 @@ once: (<U extends keyof PeerDiscoveryEvents>(event: U, listener: (event: PeerDiscoveryEvents[U]) => void) => this) & ((event: string, listener: (...args: any[]) => void) => this);

{
"name": "@libp2p/interfaces",
"version": "1.0.5",
"version": "1.0.6",
"description": "Interfaces for JS Libp2p",

@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT",

@@ -11,1 +11,6 @@

}
export interface Logger {
(...opts: any[]): void
error: (...opts: any[]) => void
}
import type { EventEmitter } from 'events'
import type { PeerData } from '../peer-data'
import type { PeerData } from '../peer-data/index.js'
import type { Startable } from '../index.js'

@@ -13,3 +14,4 @@ export interface PeerDiscoveryFactory {

export interface PeerDiscovery extends EventEmitter {
export interface PeerDiscovery extends EventEmitter, Startable {
on: (<U extends keyof PeerDiscoveryEvents> (event: U, listener: (event: PeerDiscoveryEvents[U]) => void) => this) &

@@ -16,0 +18,0 @@ ((event: string, listener: (...args: any[]) => void) => this)

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