@libp2p/interface-connection
Advanced tools
Comparing version 4.0.0 to 5.0.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'; | ||
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32945
+ Addedit-stream-types@2.0.2(transitive)
- Removedit-stream-types@1.0.5(transitive)
Updatedit-stream-types@^2.0.1