Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

streamr-client-protocol

Package Overview
Dependencies
Maintainers
17
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamr-client-protocol - npm Package Compare versions

Comparing version 9.1.0-brubeck.0 to 9.1.0-brubeck.1

6

dist/src/protocol/message_layer/MessageID.d.ts
import MessageRef from './MessageRef';
export declare type MessageIDArray = [string, number, number, number, string, string];
export default class MessageID {

@@ -10,6 +11,7 @@ streamId: string;

constructor(streamId: string, streamPartition: number, timestamp: number, sequenceNumber: number, publisherId: string, msgChainId: string);
toArray(): (string | number)[];
static fromArray(arr: any[]): MessageID;
toArray(): MessageIDArray;
static fromArray(arr: MessageIDArray): MessageID;
serialize(): string;
toMessageRef(): MessageRef;
clone(): MessageID;
}

@@ -40,4 +40,7 @@ "use strict";

}
clone() {
return new MessageID(...this.toArray());
}
}
exports.default = MessageID;
//# sourceMappingURL=MessageID.js.map

@@ -1,5 +0,6 @@

import MessageID from './MessageID';
import MessageID, { MessageIDArray } from './MessageID';
export default class MessageIDStrict extends MessageID {
constructor(streamId: string, streamPartition: number, timestamp: number, sequenceNumber: number, publisherId: string, msgChainId: string);
static fromArray(arr: any[]): MessageIDStrict;
static fromArray(arr: MessageIDArray): MessageIDStrict;
clone(): MessageIDStrict;
}

@@ -19,4 +19,7 @@ "use strict";

}
clone() {
return new MessageIDStrict(...this.toArray());
}
}
exports.default = MessageIDStrict;
//# sourceMappingURL=MessageIDStrict.js.map

@@ -9,2 +9,3 @@ export default class MessageRef {

serialize(): string;
clone(): MessageRef;
}

@@ -39,4 +39,7 @@ "use strict";

}
clone() {
return new MessageRef(this.timestamp, this.sequenceNumber);
}
}
exports.default = MessageRef;
//# sourceMappingURL=MessageRef.js.map

@@ -7,2 +7,3 @@ import MessageRef from './MessageRef';

constructor(timestamp: number, sequenceNumber: number);
clone(): MessageRefStrict;
}

@@ -16,4 +16,7 @@ "use strict";

}
clone() {
return new MessageRefStrict(this.timestamp, this.sequenceNumber);
}
}
exports.default = MessageRefStrict;
//# sourceMappingURL=MessageRefStrict.js.map

@@ -83,4 +83,4 @@ "use strict";

return new StreamMessage({
messageId: this.messageId,
prevMsgRef: this.prevMsgRef,
messageId: this.messageId.clone(),
prevMsgRef: this.prevMsgRef ? this.prevMsgRef.clone() : null,
content,

@@ -87,0 +87,0 @@ messageType: this.messageType,

import StreamMessage from './StreamMessage';
import { Serializer } from '../../Serializer';
export default class StreamMessageSerializerV30 extends Serializer<StreamMessage> {
toArray(streamMessage: StreamMessage): (string | number | (string | number)[] | null)[];
toArray(streamMessage: StreamMessage): (string | number | number[] | import("./MessageID").MessageIDArray | null)[];
fromArray(arr: any[]): StreamMessage<any>;
}
import StreamMessage from './StreamMessage';
import { Serializer } from '../../Serializer';
export default class StreamMessageSerializerV31 extends Serializer<StreamMessage> {
toArray(streamMessage: StreamMessage): (string | number | (string | number)[] | null)[];
toArray(streamMessage: StreamMessage): (string | number | number[] | import("./MessageID").MessageIDArray | null)[];
fromArray(arr: any[]): StreamMessage<any>;
}
import StreamMessage from './StreamMessage';
import { Serializer } from '../../Serializer';
export default class StreamMessageSerializerV32 extends Serializer<StreamMessage> {
toArray(streamMessage: StreamMessage): (string | number | (string | number)[] | null)[];
toArray(streamMessage: StreamMessage): (string | number | number[] | import("./MessageID").MessageIDArray | null)[];
fromArray(arr: any[]): StreamMessage<any>;
}
{
"name": "streamr-client-protocol",
"version": "9.1.0-brubeck.0",
"version": "9.1.0-brubeck.1",
"description": "JavaScript classes implementing the Streamr client-to-node protocol",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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