@wireapp/core-crypto 9.2.1 → 9.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "9.2.1",
3
+ "version": "9.3.1",
4
4
  "author": "Wire CoreCrypto team <team.corecrypto@wire.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -247,12 +247,12 @@ export const __wbg_get_decryptedmessage_senderClientId: (a: number) => number;
247
247
  export const __wbg_get_decryptedmessage_identity: (a: number) => number;
248
248
  export const __wbg_get_decryptedmessage_commitDelay: (a: number) => [number, bigint];
249
249
  export const __wbg_get_decryptedmessage_message: (a: number) => [number, number];
250
- export const welcome_new: (a: number, b: number) => number;
250
+ export const keypackage_new: (a: number, b: number) => number;
251
251
  export const secretkey_new: (a: number, b: number) => number;
252
+ export const welcome_new: (a: number, b: number) => number;
253
+ export const groupinfo_new: (a: number, b: number) => number;
252
254
  export const externalsenderkey_new: (a: number, b: number) => number;
253
255
  export const conversationid_new: (a: number, b: number) => number;
254
- export const groupinfo_new: (a: number, b: number) => number;
255
- export const keypackage_new: (a: number, b: number) => number;
256
256
  export const __wbg_proteusautoprekeybundle_free: (a: number, b: number) => void;
257
257
  export const __wbg_welcome_free: (a: number, b: number) => void;
258
258
  export const __wbg_mlstransportdata_free: (a: number, b: number) => void;
@@ -272,7 +272,7 @@ export const __externref_drop_slice: (a: number, b: number) => void;
272
272
  export const __wbindgen_export_7: WebAssembly.Table;
273
273
  export const __externref_table_dealloc: (a: number) => void;
274
274
  export const closure1026_externref_shim: (a: number, b: number, c: any) => void;
275
- export const closure2600_externref_shim: (a: number, b: number, c: any) => void;
276
- export const closure2909_externref_shim: (a: number, b: number, c: any) => void;
277
- export const closure3010_externref_shim: (a: number, b: number, c: any, d: any) => void;
275
+ export const closure2906_externref_shim: (a: number, b: number, c: any) => void;
276
+ export const closure2597_externref_shim: (a: number, b: number, c: any) => void;
277
+ export const closure3008_externref_shim: (a: number, b: number, c: any, d: any) => void;
278
278
  export const __wbindgen_start: () => void;
package/src/corecrypto.js CHANGED
@@ -422,17 +422,17 @@ function build_metadata() {
422
422
  const ret = wasm.build_metadata();
423
423
  return BuildMetadata.__wrap(ret);
424
424
  }
425
- function __wbg_adapter_12(arg0, arg1, arg2) {
425
+ function __wbg_adapter_10(arg0, arg1, arg2) {
426
426
  wasm.closure1026_externref_shim(arg0, arg1, arg2);
427
427
  }
428
- function __wbg_adapter_17(arg0, arg1, arg2) {
429
- wasm.closure2600_externref_shim(arg0, arg1, arg2);
428
+ function __wbg_adapter_21(arg0, arg1, arg2) {
429
+ wasm.closure2906_externref_shim(arg0, arg1, arg2);
430
430
  }
431
- function __wbg_adapter_26(arg0, arg1, arg2) {
432
- wasm.closure2909_externref_shim(arg0, arg1, arg2);
431
+ function __wbg_adapter_28(arg0, arg1, arg2) {
432
+ wasm.closure2597_externref_shim(arg0, arg1, arg2);
433
433
  }
434
434
  function __wbg_adapter_511(arg0, arg1, arg2, arg3) {
435
- wasm.closure3010_externref_shim(arg0, arg1, arg2, arg3);
435
+ wasm.closure3008_externref_shim(arg0, arg1, arg2, arg3);
436
436
  }
437
437
  var Ciphersuite = Object.freeze({
438
438
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
@@ -2898,7 +2898,7 @@ function __wbg_get_imports() {
2898
2898
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2899
2899
  }
2900
2900
  };
2901
- imports.wbg.__wbg_execute_eabfe0ec8df264e4 = function() {
2901
+ imports.wbg.__wbg_execute_b8329c0a282675ab = function() {
2902
2902
  return handleError(function(arg0, arg1) {
2903
2903
  const ret = arg0.execute(CoreCryptoContext.__wrap(arg1));
2904
2904
  return ret;
@@ -3540,10 +3540,6 @@ function __wbg_get_imports() {
3540
3540
  const ret = v0;
3541
3541
  return ret;
3542
3542
  };
3543
- imports.wbg.__wbindgen_cast_2baa7f4ea256cb04 = function(arg0, arg1) {
3544
- const ret = makeMutClosure(arg0, arg1, 2908, __wbg_adapter_26);
3545
- return ret;
3546
- };
3547
3543
  imports.wbg.__wbindgen_cast_2e1c22bbccdbf7b5 = function(arg0, arg1) {
3548
3544
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3549
3545
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -3561,7 +3557,7 @@ function __wbg_get_imports() {
3561
3557
  return ret;
3562
3558
  };
3563
3559
  imports.wbg.__wbindgen_cast_77ac86d8075f2f98 = function(arg0, arg1) {
3564
- const ret = makeMutClosure(arg0, arg1, 1025, __wbg_adapter_12);
3560
+ const ret = makeMutClosure(arg0, arg1, 1025, __wbg_adapter_10);
3565
3561
  return ret;
3566
3562
  };
3567
3563
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
@@ -3570,6 +3566,14 @@ function __wbg_get_imports() {
3570
3566
  const ret = v0;
3571
3567
  return ret;
3572
3568
  };
3569
+ imports.wbg.__wbindgen_cast_9366269b35ccbb69 = function(arg0, arg1) {
3570
+ const ret = makeMutClosure(arg0, arg1, 2905, __wbg_adapter_21);
3571
+ return ret;
3572
+ };
3573
+ imports.wbg.__wbindgen_cast_a834b411bd2663eb = function(arg0, arg1) {
3574
+ const ret = makeMutClosure(arg0, arg1, 2596, __wbg_adapter_28);
3575
+ return ret;
3576
+ };
3573
3577
  imports.wbg.__wbindgen_cast_b77aa29fa8fe8560 = function(arg0, arg1) {
3574
3578
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3575
3579
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -3580,10 +3584,6 @@ function __wbg_get_imports() {
3580
3584
  const ret = getArrayU8FromWasm0(arg0, arg1);
3581
3585
  return ret;
3582
3586
  };
3583
- imports.wbg.__wbindgen_cast_cbc163adba6f840a = function(arg0, arg1) {
3584
- const ret = makeMutClosure(arg0, arg1, 2599, __wbg_adapter_17);
3585
- return ret;
3586
- };
3587
3587
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
3588
3588
  const ret = arg0;
3589
3589
  return ret;
@@ -4230,14 +4230,7 @@ class CoreCrypto2 {
4230
4230
  return await CoreCryptoError.asyncMapErr(this.#cc.get_device_identities(conversationId, deviceIds));
4231
4231
  }
4232
4232
  async getUserIdentities(conversationId, userIds) {
4233
- const map = await CoreCryptoError.asyncMapErr(this.#cc.get_user_identities(conversationId, userIds));
4234
- const mapFixed = new Map;
4235
- for (const [userId, identities] of map) {
4236
- mapFixed.set(userId, identities.flatMap((identity) => {
4237
- return identity ? [identity] : [];
4238
- }));
4239
- }
4240
- return mapFixed;
4233
+ return await CoreCryptoError.asyncMapErr(this.#cc.get_user_identities(conversationId, userIds));
4241
4234
  }
4242
4235
  async registerEpochObserver(observer) {
4243
4236
  const shim = new EpochObserverShim(observer);