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
1
Versions
148
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 2.0.3 to 2.0.4

2

lib/esm/index.d.ts

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

4

lib/esm/messages.d.ts

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

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