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
543
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 1.6.1 to 1.6.2-944935f8d

2

dist/src/index.d.ts

@@ -467,3 +467,3 @@ /**

* // create a new stream within the connection
* const { stream, protocol } = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
* const stream = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
*

@@ -470,0 +470,0 @@ * // protocol negotiated: 'echo/1.0.0' means that the other party only supports the older version

{
"name": "@libp2p/interface",
"version": "1.6.1",
"version": "1.6.2-944935f8d",
"description": "The interface implemented by a libp2p node",

@@ -59,3 +59,3 @@ "license": "Apache-2.0 OR MIT",

"devDependencies": {
"aegir": "^43.0.1"
"aegir": "^44.0.1"
},

@@ -62,0 +62,0 @@ "browser": {

@@ -37,3 +37,3 @@ import { setMaxListeners } from './events.js'

export class TypedEventEmitter<EventMap extends Record<string, any>> extends EventTarget implements TypedEventTarget<EventMap> {
#listeners = new Map<any, Listener[]>()
readonly #listeners = new Map<any, Listener[]>()

@@ -40,0 +40,0 @@ constructor () {

@@ -530,3 +530,3 @@ /**

* // create a new stream within the connection
* const { stream, protocol } = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
* const stream = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
*

@@ -533,0 +533,0 @@ * // protocol negotiated: 'echo/1.0.0' means that the other party only supports the older version

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