@freesignal/protocol 0.5.2 → 0.5.4
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 +1 -0
- package/dist/node.js +3 -0
- package/dist/types.d.ts +2 -2
- package/dist/types.js +3 -1
- package/package.json +1 -1
package/dist/node.d.ts
CHANGED
package/dist/node.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* You should have received a copy of the GNU General Public License
|
|
17
17
|
* along with this program. If not, see <https://www.gnu.org/licenses/>
|
|
18
18
|
*/
|
|
19
|
-
import { LocalStorage, Encodable, KeyExchangeData } from "@freesignal/interfaces";
|
|
19
|
+
import type { LocalStorage, Encodable, KeyExchangeData } from "@freesignal/interfaces";
|
|
20
20
|
import { EncryptionKeys, KeySession } from "./double-ratchet";
|
|
21
21
|
export declare function encryptData(session: KeySession, data: Uint8Array): EncryptedData;
|
|
22
22
|
export declare function decryptData(session: KeySession, encryptedData: Uint8Array): Uint8Array;
|
|
@@ -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():
|
|
177
|
+
entries(): Promise<Iterable<[K, V]>>;
|
|
178
178
|
}
|
|
179
179
|
export {};
|
package/dist/types.js
CHANGED