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
518
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 0.1.0 to 0.1.1-6b839807

8

dist/src/connection/index.d.ts

@@ -221,10 +221,2 @@ import type { AbortOptions } from '../index.js';

/**
* Add a stream to this connection
*/
addStream: (stream: Stream) => void;
/**
* Remove a stream from this connection
*/
removeStream: (id: string) => void;
/**
* Gracefully close the connection. All queued data will be written to the

@@ -231,0 +223,0 @@ * underlying transport.

4

dist/src/stream-muxer/stream.js

@@ -169,3 +169,3 @@ import { abortableSource } from 'abortable-iterator';

}
if (this.status !== 'reset' && this.status !== 'aborted') {
if (this.status !== 'reset' && this.status !== 'aborted' && this.timeline.closeRead == null) {
this.log.trace('send close read to remote');

@@ -199,3 +199,3 @@ await this.sendCloseRead(options);

}
if (this.status !== 'reset' && this.status !== 'aborted') {
if (this.status !== 'reset' && this.status !== 'aborted' && this.timeline.closeWrite == null) {
this.log.trace('send close write to remote');

@@ -202,0 +202,0 @@ await this.sendCloseWrite(options);

{
"name": "@libp2p/interface",
"version": "0.1.0",
"version": "0.1.1-6b839807",
"description": "The interface implemented by a libp2p node",

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

@@ -262,12 +262,2 @@ import type { AbortOptions } from '../index.js'

/**
* Add a stream to this connection
*/
addStream: (stream: Stream) => void
/**
* Remove a stream from this connection
*/
removeStream: (id: string) => void
/**
* Gracefully close the connection. All queued data will be written to the

@@ -274,0 +264,0 @@ * underlying transport.

@@ -274,3 +274,3 @@ import { abortableSource } from 'abortable-iterator'

if (this.status !== 'reset' && this.status !== 'aborted') {
if (this.status !== 'reset' && this.status !== 'aborted' && this.timeline.closeRead == null) {
this.log.trace('send close read to remote')

@@ -312,3 +312,3 @@ await this.sendCloseRead(options)

if (this.status !== 'reset' && this.status !== 'aborted') {
if (this.status !== 'reset' && this.status !== 'aborted' && this.timeline.closeWrite == null) {
this.log.trace('send close write to remote')

@@ -315,0 +315,0 @@ await this.sendCloseWrite(options)

Sorry, the diff of this file is not supported yet

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