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-5614dfb

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",
"description": "Block store streaming",
"type": "module",
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist",
"!dist/e2e",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "peerbit",
"parserOptions": {
"project": true,
"sourceType": "module"
},
"ignorePatterns": [
"!.aegir.js",
"test/ts-use",
"*.d.ts"
]
},
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "aegir clean",
"build": "aegir build --no-bundle",
"test": "",
"lint": "aegir lint"
},
"engines": {
"node": ">=16.15.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dao-xyz/peerbit.git"
},
"keywords": [
"peerbit"
],
"author": "dao.xyz",
"license": "MIT",
"bugs": {
"url": "https://github.com/dao-xyz/peerbit/issues"
},
"homepage": "https://github.com/dao-xyz/peerbit#readme",
"localMaintainers": [
"dao.xyz"
],
"dependencies": {
"@dao-xyz/borsh": "^5.2.3",
"@peerbit/crypto": "2.3.2",
"@peerbit/stream-interface": "^5.0.5"
}
"name": "@peerbit/pubsub-interface",
"version": "3.1.0-5614dfb",
"description": "Block store streaming",
"type": "module",
"types": "./dist/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
]
}
},
"files": [
"src",
"dist",
"!dist/e2e",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "peerbit",
"parserOptions": {
"project": true,
"sourceType": "module"
},
"ignorePatterns": [
"!.aegir.js",
"test/ts-use",
"*.d.ts"
]
},
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "aegir clean",
"build": "aegir build --no-bundle",
"test": "",
"lint": "aegir lint"
},
"engines": {
"node": ">=16.15.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dao-xyz/peerbit.git"
},
"keywords": [
"peerbit"
],
"author": "dao.xyz",
"license": "MIT",
"bugs": {
"url": "https://github.com/dao-xyz/peerbit/issues"
},
"homepage": "https://github.com/dao-xyz/peerbit#readme",
"localMaintainers": [
"dao.xyz"
],
"dependencies": {
"@dao-xyz/borsh": "^5.2.3",
"@peerbit/crypto": "2.3.2-5614dfb",
"@peerbit/stream-interface": "5.1.0-5614dfb"
}
}

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