@libp2p/interface-connection
Advanced tools
Comparing version
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
32945
0.83%+ Added
- Removed
Updated