streamr-client-protocol
Advanced tools
Comparing version 9.1.0-brubeck.0 to 9.1.0-brubeck.1
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
668681
8817