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

@libp2p/interface-connection

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-connection - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

6

dist/src/index.d.ts
import type { Multiaddr } from '@multiformats/multiaddr';
import type { PeerId } from '@libp2p/interface-peer-id';
import type * as Status from './status.js';
import type { Duplex } from 'it-stream-types';
import type { Duplex, Source } from 'it-stream-types';
import type { AbortOptions } from '@libp2p/interfaces';

@@ -63,3 +63,3 @@ import type { Uint8ArrayList } from 'uint8arraylist';

*/
export interface Stream extends Duplex<Uint8ArrayList, Uint8ArrayList | Uint8Array> {
export interface Stream extends Duplex<AsyncGenerator<Uint8ArrayList>, Source<Uint8ArrayList | Uint8Array>> {
/**

@@ -158,3 +158,3 @@ * Closes the stream for **reading** *and* **writing**.

*/
export interface MultiaddrConnection extends Duplex<Uint8Array> {
export interface MultiaddrConnection extends Duplex<AsyncGenerator<Uint8Array>, Source<Uint8Array>, Promise<void>> {
close: (err?: Error) => Promise<void>;

@@ -161,0 +161,0 @@ remoteAddr: Multiaddr;

{
"name": "@libp2p/interface-connection",
"version": "4.0.0",
"version": "5.0.0",
"description": "Connection interface for libp2p",

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

"@multiformats/multiaddr": "^12.0.0",
"it-stream-types": "^1.0.4",
"it-stream-types": "^2.0.1",
"uint8arraylist": "^2.1.2"

@@ -161,0 +161,0 @@ },

import type { Multiaddr } from '@multiformats/multiaddr'
import type { PeerId } from '@libp2p/interface-peer-id'
import type * as Status from './status.js'
import type { Duplex } from 'it-stream-types'
import type { Duplex, Source } from 'it-stream-types'
import type { AbortOptions } from '@libp2p/interfaces'

@@ -75,3 +75,3 @@ import type { Uint8ArrayList } from 'uint8arraylist'

*/
export interface Stream extends Duplex<Uint8ArrayList, Uint8ArrayList | Uint8Array> {
export interface Stream extends Duplex<AsyncGenerator<Uint8ArrayList>, Source<Uint8ArrayList | Uint8Array>> {
/**

@@ -187,3 +187,3 @@ * Closes the stream for **reading** *and* **writing**.

*/
export interface MultiaddrConnection extends Duplex<Uint8Array> {
export interface MultiaddrConnection extends Duplex<AsyncGenerator<Uint8Array>, Source<Uint8Array>, Promise<void>> {
close: (err?: Error) => Promise<void>

@@ -190,0 +190,0 @@ remoteAddr: Multiaddr

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