New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@peerbit/pubsub-interface

Package Overview
Dependencies
Maintainers
0
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/pubsub-interface - npm Package Compare versions

Comparing version 3.0.6 to 3.1.0

4

dist/src/index.d.ts
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",
"version": "3.1.0",
"description": "Block store streaming",

@@ -79,4 +79,4 @@ "type": "module",

"@peerbit/crypto": "2.3.2",
"@peerbit/stream-interface": "^5.0.5"
"@peerbit/stream-interface": "^5.1.0"
}
}

@@ -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

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