@peerbit/stream-interface
Advanced tools
Comparing version 5.0.5-d83d7e7 to 5.0.5-e9a5cd4
@@ -17,6 +17,9 @@ import type { PeerId } from "@libp2p/interface"; | ||
export interface WaitForPeer { | ||
waitFor(peer: PeerId | PublicSignKey, options?: { | ||
waitFor(peer: PeerId | PublicSignKey | string, options?: { | ||
signal?: AbortSignal; | ||
}): Promise<void>; | ||
} | ||
export interface PublicKeyFromHashResolver { | ||
getPublicKey(hash: string): PublicSignKey | Promise<PublicSignKey>; | ||
} | ||
export declare class NotStartedError extends Error { | ||
@@ -23,0 +26,0 @@ constructor(); |
{ | ||
"name": "@peerbit/stream-interface", | ||
"version": "5.0.5-d83d7e7", | ||
"version": "5.0.5-e9a5cd4", | ||
"description": "Block store streaming", | ||
@@ -78,4 +78,4 @@ "sideEffects": false, | ||
"@dao-xyz/borsh": "^5.2.3", | ||
"@peerbit/crypto": "2.3.2-d83d7e7" | ||
"@peerbit/crypto": "2.3.2-e9a5cd4" | ||
} | ||
} |
@@ -22,3 +22,3 @@ import type { PeerId } from "@libp2p/interface"; | ||
waitFor( | ||
peer: PeerId | PublicSignKey, | ||
peer: PeerId | PublicSignKey | string, | ||
options?: { signal?: AbortSignal }, | ||
@@ -28,2 +28,6 @@ ): Promise<void>; | ||
export interface PublicKeyFromHashResolver { | ||
getPublicKey(hash: string): PublicSignKey | Promise<PublicSignKey>; | ||
} | ||
export class NotStartedError extends Error { | ||
@@ -30,0 +34,0 @@ constructor() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54911
1187
+ Added@peerbit/cache@2.1.0-e9a5cd4(transitive)
+ Added@peerbit/crypto@2.3.2-e9a5cd4(transitive)
- Removed@peerbit/cache@2.1.0-d83d7e7(transitive)
- Removed@peerbit/crypto@2.3.2-d83d7e7(transitive)