@freesignal/protocol 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.d.ts CHANGED
@@ -78,6 +78,6 @@ declare class SessionMap implements LocalStorage<string, KeySession> {
78
78
  has(key: string): Promise<boolean>;
79
79
  delete(key: string): Promise<boolean>;
80
80
  clear(): Promise<void>;
81
- entries(): Promise<Iterator<[string, KeySession]>>;
81
+ entries(): Promise<Iterable<[string, KeySession]>>;
82
82
  }
83
83
  export {};
package/dist/types.d.ts CHANGED
@@ -174,6 +174,6 @@ export declare class AsyncMap<K, V> implements LocalStorage<K, V> {
174
174
  has(key: K): Promise<boolean>;
175
175
  delete(key: K): Promise<boolean>;
176
176
  clear(): Promise<void>;
177
- entries(): Promise<Iterator<[K, V]>>;
177
+ entries(): Promise<Iterable<[K, V]>>;
178
178
  }
179
179
  export {};
package/dist/types.js CHANGED
@@ -250,7 +250,7 @@ class DatagramHeader {
250
250
  this.receiver = (0, utils_1.decodeBase64)(data.subarray(26 + crypto_1.default.EdDSA.publicKeyLength, DatagramHeader.offset));
251
251
  }
252
252
  toBytes() {
253
- return (0, utils_1.concatBytes)((0, utils_1.numberToBytes)(this.version, 1), Protocols.encode(this.protocol, 1), crypto_1.default.UUID.parse(this.protocol), (0, utils_1.numberToBytes)(this.createdAt, 8), (0, utils_1.encodeBase64)(this.sender), (0, utils_1.encodeBase64)(this.receiver));
253
+ return (0, utils_1.concatBytes)((0, utils_1.numberToBytes)(this.version, 1), Protocols.encode(this.protocol, 1), crypto_1.default.UUID.parse(this.id), (0, utils_1.numberToBytes)(this.createdAt, 8), (0, utils_1.encodeBase64)(this.sender), (0, utils_1.encodeBase64)(this.receiver));
254
254
  }
255
255
  static from(data) {
256
256
  if (typeof data === 'string')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freesignal/protocol",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Signal Protocol implementation in javascript",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "author": "Christian Braghette",