@peerbit/pubsub-interface
Advanced tools
Comparing version 3.0.6-a2cffec to 3.0.6-a6d0306
import { type EventHandler } from "@libp2p/interface"; | ||
import { PublicSignKey } from "@peerbit/crypto"; | ||
import { DataMessage, DeliveryMode, type IdentificationOptions, Message, type PeerEvents, type PriorityOptions, type WaitForPeer } from "@peerbit/stream-interface"; | ||
import { DataMessage, DeliveryMode, type IdentificationOptions, Message, type PeerEvents, type PriorityOptions, type PublicKeyFromHashResolver, type WaitForPeer } from "@peerbit/stream-interface"; | ||
import { PubSubData } from "./messages.js"; | ||
@@ -65,3 +65,3 @@ export declare class SubscriptionEvent { | ||
} & PriorityOptions & IdentificationOptions; | ||
export interface PubSub extends IEventEmitter<PubSubEvents>, WaitForPeer { | ||
export interface PubSub extends IEventEmitter<PubSubEvents>, WaitForPeer, PublicKeyFromHashResolver { | ||
getSubscribers(topic: string): MaybePromise<PublicSignKey[] | undefined>; | ||
@@ -68,0 +68,0 @@ requestSubscribers(topic: string, from?: PublicSignKey): MaybePromise<void>; |
{ | ||
"name": "@peerbit/pubsub-interface", | ||
"version": "3.0.6-a2cffec", | ||
"version": "3.0.6-a6d0306", | ||
"description": "Block store streaming", | ||
@@ -78,5 +78,5 @@ "type": "module", | ||
"@dao-xyz/borsh": "^5.2.3", | ||
"@peerbit/crypto": "2.3.2-a2cffec", | ||
"@peerbit/stream-interface": "5.0.5-a2cffec" | ||
"@peerbit/crypto": "2.3.2-a6d0306", | ||
"@peerbit/stream-interface": "5.0.5-a6d0306" | ||
} | ||
} |
@@ -11,2 +11,3 @@ import { field, vec } from "@dao-xyz/borsh"; | ||
type PriorityOptions, | ||
type PublicKeyFromHashResolver, | ||
type WaitForPeer, | ||
@@ -130,3 +131,6 @@ } from "@peerbit/stream-interface"; | ||
export interface PubSub extends IEventEmitter<PubSubEvents>, WaitForPeer { | ||
export interface PubSub | ||
extends IEventEmitter<PubSubEvents>, | ||
WaitForPeer, | ||
PublicKeyFromHashResolver { | ||
getSubscribers(topic: string): MaybePromise<PublicSignKey[] | undefined>; | ||
@@ -133,0 +137,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
32772
665
+ Added@peerbit/cache@2.1.0-a6d0306(transitive)
+ Added@peerbit/crypto@2.3.2-a6d0306(transitive)
+ Added@peerbit/stream-interface@5.0.5-a6d0306(transitive)
- Removed@peerbit/cache@2.1.0-a2cffec(transitive)
- Removed@peerbit/crypto@2.3.2-a2cffec(transitive)
- Removed@peerbit/stream-interface@5.0.5-a2cffec(transitive)