@peerbit/pubsub-interface
Advanced tools
Comparing version 3.0.6 to 3.1.0-5614dfb
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>; |
158
package.json
{ | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
32772
665
2
+ Added@peerbit/cache@2.1.0-5614dfb(transitive)
+ Added@peerbit/crypto@2.3.2-5614dfb(transitive)
+ Added@peerbit/stream-interface@5.1.0-5614dfb(transitive)
- Removed@peerbit/cache@2.1.2(transitive)
- Removed@peerbit/crypto@2.3.22.3.5(transitive)
- Removed@peerbit/stream-interface@5.1.4(transitive)