@peerbit/pubsub-interface
Advanced tools
Comparing version 1.0.5 to 1.1.0
@@ -22,5 +22,7 @@ import { PublicSignKey } from "@peerbit/crypto"; | ||
export declare class SubscriptionData { | ||
publicKey: PublicSignKey; | ||
timestamp: bigint; | ||
data?: Uint8Array; | ||
constructor(properties: { | ||
publicKey: PublicSignKey; | ||
timestamp: bigint; | ||
@@ -27,0 +29,0 @@ data?: Uint8Array; |
@@ -63,5 +63,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
export class SubscriptionData { | ||
publicKey; | ||
timestamp; | ||
data; | ||
constructor(properties) { | ||
this.publicKey = properties.publicKey; | ||
this.timestamp = properties.timestamp; | ||
@@ -72,2 +74,6 @@ this.data = properties.data; | ||
__decorate([ | ||
field({ type: PublicSignKey }), | ||
__metadata("design:type", PublicSignKey) | ||
], SubscriptionData.prototype, "publicKey", void 0); | ||
__decorate([ | ||
field({ type: "u64" }), | ||
@@ -74,0 +80,0 @@ __metadata("design:type", BigInt) |
@@ -34,3 +34,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
topics; | ||
strict; // only deliver message to initial to recievers | ||
strict; // only deliver message to initial to receivers | ||
data; | ||
@@ -37,0 +37,0 @@ constructor(options) { |
{ | ||
"name": "@peerbit/pubsub-interface", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "Block store streaming", | ||
@@ -53,6 +53,6 @@ "type": "module", | ||
"@dao-xyz/borsh": "^5.1.5", | ||
"@peerbit/crypto": "1.0.4", | ||
"@peerbit/stream-interface": "^1.0.5" | ||
"@peerbit/crypto": "1.0.5", | ||
"@peerbit/stream-interface": "^1.0.6" | ||
}, | ||
"gitHead": "32f61ad9f3d5906e13d46f2a80f61c1826a3e817" | ||
"gitHead": "464e807d679e24b897b7811ac99d6f85fbd756f9" | ||
} |
@@ -52,2 +52,5 @@ import { PublicSignKey } from "@peerbit/crypto"; | ||
export class SubscriptionData { | ||
@field({ type: PublicSignKey }) | ||
publicKey: PublicSignKey; | ||
@field({ type: "u64" }) | ||
@@ -61,3 +64,8 @@ timestamp: bigint; | ||
constructor(properties: { timestamp: bigint; data?: Uint8Array }) { | ||
constructor(properties: { | ||
publicKey: PublicSignKey; | ||
timestamp: bigint; | ||
data?: Uint8Array; | ||
}) { | ||
this.publicKey = properties.publicKey; | ||
this.timestamp = properties.timestamp; | ||
@@ -64,0 +72,0 @@ this.data = properties.data; |
@@ -40,3 +40,3 @@ import { Uint8ArrayList } from "uint8arraylist"; | ||
@field({ type: "bool" }) | ||
strict: boolean; // only deliver message to initial to recievers | ||
strict: boolean; // only deliver message to initial to receivers | ||
@@ -43,0 +43,0 @@ @field({ type: Uint8Array }) |
Sorry, the diff of this file is not supported yet
41216
697
+ Added@peerbit/crypto@1.0.5(transitive)
- Removed@peerbit/crypto@1.0.4(transitive)
Updated@peerbit/crypto@1.0.5