@peerbit/pubsub-interface
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -35,5 +35,7 @@ import { PublicSignKey } from "@peerbit/crypto"; | ||
publicKey: PublicSignKey; | ||
session: bigint; | ||
timestamp: bigint; | ||
constructor(properties: { | ||
publicKey: PublicSignKey; | ||
session: bigint; | ||
timestamp: bigint; | ||
@@ -40,0 +42,0 @@ }); |
@@ -82,5 +82,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
publicKey; | ||
session; | ||
timestamp; | ||
constructor(properties) { | ||
this.publicKey = properties.publicKey; | ||
this.session = properties.session; | ||
this.timestamp = properties.timestamp; | ||
@@ -96,4 +98,8 @@ } | ||
__metadata("design:type", BigInt) | ||
], SubscriptionData.prototype, "session", void 0); | ||
__decorate([ | ||
field({ type: "u64" }), | ||
__metadata("design:type", BigInt) | ||
], SubscriptionData.prototype, "timestamp", void 0); | ||
export * from "./messages.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -16,3 +16,3 @@ import { Uint8ArrayList } from "uint8arraylist"; | ||
}); | ||
_serialized: Uint8ArrayList; | ||
private _serialized; | ||
bytes(): Uint8Array | Uint8ArrayList; | ||
@@ -37,3 +37,3 @@ static from(bytes: Uint8Array | Uint8ArrayList): PubSubData; | ||
}); | ||
_serialized: Uint8ArrayList; | ||
private _serialized; | ||
bytes(): Uint8Array | Uint8ArrayList; | ||
@@ -40,0 +40,0 @@ static from(bytes: Uint8Array | Uint8ArrayList): Unsubscribe; |
{ | ||
"name": "@peerbit/pubsub-interface", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Block store streaming", | ||
@@ -54,5 +54,5 @@ "type": "module", | ||
"@peerbit/crypto": "2.1.1", | ||
"@peerbit/stream-interface": "^2.0.2" | ||
"@peerbit/stream-interface": "^3.0.0" | ||
}, | ||
"gitHead": "f4cb6a526d26e98360c32fd28dcdf9eb7ea10551" | ||
"gitHead": "2d77ddb8360639f6a1ec2e4d3f6e3d791245c926" | ||
} |
@@ -11,3 +11,2 @@ import { PublicSignKey } from "@peerbit/crypto"; | ||
import { EventHandler } from "@libp2p/interface"; | ||
import { PeerId as Libp2pPeerId } from "@libp2p/interface/peer-id"; | ||
import { field, vec } from "@dao-xyz/borsh"; | ||
@@ -79,6 +78,14 @@ | ||
@field({ type: "u64" }) | ||
session: bigint; | ||
@field({ type: "u64" }) | ||
timestamp: bigint; | ||
constructor(properties: { publicKey: PublicSignKey; timestamp: bigint }) { | ||
constructor(properties: { | ||
publicKey: PublicSignKey; | ||
session: bigint; | ||
timestamp: bigint; | ||
}) { | ||
this.publicKey = properties.publicKey; | ||
this.session = properties.session; | ||
this.timestamp = properties.timestamp; | ||
@@ -85,0 +92,0 @@ } |
@@ -54,3 +54,3 @@ import { Uint8ArrayList } from "uint8arraylist"; | ||
_serialized: Uint8ArrayList; | ||
private _serialized: Uint8ArrayList; | ||
@@ -120,3 +120,3 @@ bytes() { | ||
_serialized: Uint8ArrayList; | ||
private _serialized: Uint8ArrayList; | ||
@@ -123,0 +123,0 @@ bytes() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39806
661
+ Added@peerbit/crypto@2.1.7(transitive)
+ Added@peerbit/stream-interface@3.0.9(transitive)
- Removed@peerbit/stream-interface@2.0.2(transitive)