@wireapp/core-crypto 1.0.0-pre.1 → 1.0.0-pre.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "1.0.0-pre.1",
3
+ "version": "1.0.0-pre.4",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -230,12 +230,12 @@ function makeMutClosure(arg0, arg1, dtor, f) {
230
230
  return real;
231
231
  }
232
232
  function __wbg_adapter_52(arg0, arg1, arg2) {
233
- wasm$1.wasm_bindgen__convert__closures__invoke1_mut__h66a7206f8c7c0090(arg0, arg1, addHeapObject(arg2));
233
+ wasm$1.wasm_bindgen__convert__closures__invoke1_mut__heb4cb26b6c16bdde(arg0, arg1, addHeapObject(arg2));
234
234
  }
235
235
  function __wbg_adapter_55(arg0, arg1, arg2) {
236
236
  try {
237
237
  const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
238
- wasm$1.wasm_bindgen__convert__closures__invoke1_mut__hfd1454cbb6b3bfdc(retptr, arg0, arg1, addHeapObject(arg2));
238
+ wasm$1.wasm_bindgen__convert__closures__invoke1_mut__h4f01ac4587554ef9(retptr, arg0, arg1, addHeapObject(arg2));
239
239
  var r0 = getInt32Memory0()[retptr / 4 + 0];
240
240
  var r1 = getInt32Memory0()[retptr / 4 + 1];
241
241
  if (r1) {
@@ -300,7 +300,7 @@ function handleError(f, args) {
300
300
  }
301
301
  }
302
302
  function __wbg_adapter_288(arg0, arg1, arg2, arg3) {
303
- wasm$1.wasm_bindgen__convert__closures__invoke2_mut__h6061d6c1e1d69fb6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
303
+ wasm$1.wasm_bindgen__convert__closures__invoke2_mut__h20434c3f820154b5(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
304
304
  }
305
305
  /**
306
306
  * see [core_crypto::prelude::MlsWirePolicy]
@@ -2661,16 +2661,16 @@ function __wbg_get_imports() {
2661
2661
  const ret = getObject(arg0).length;
2662
2662
  return ret;
2663
2663
  };
2664
+ imports.wbg.__wbg_new_2b6fea4ea03b1b95 = function () {
2665
+ const ret = new Object();
2666
+ return addHeapObject(ret);
2667
+ };
2664
2668
  imports.wbg.__wbg_call_587b30eea3e09332 = function () {
2665
2669
  return handleError(function (arg0, arg1, arg2) {
2666
2670
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2667
2671
  return addHeapObject(ret);
2668
2672
  }, arguments);
2669
2673
  };
2670
- imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
2671
- const ret = BigInt.asUintN(64, arg0);
2672
- return addHeapObject(ret);
2673
- };
2674
2674
  imports.wbg.__wbg_new_2b55e405e4af4986 = function (arg0, arg1) {
2675
2675
  try {
2676
2676
  var state0 = { a: arg0, b: arg1 };
@@ -2695,8 +2695,16 @@ function __wbg_get_imports() {
2695
2695
  const ret = new Uint8Array(getObject(arg0));
2696
2696
  return addHeapObject(ret);
2697
2697
  };
2698
- imports.wbg.__wbg_proteusautoprekeybundle_new = function (arg0) {
2699
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
2698
+ imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
2699
+ const ret = BigInt.asUintN(64, arg0);
2700
+ return addHeapObject(ret);
2701
+ };
2702
+ imports.wbg.__wbg_new_0f2b71ca2f2a6029 = function () {
2703
+ const ret = new Map();
2704
+ return addHeapObject(ret);
2705
+ };
2706
+ imports.wbg.__wbg_set_da7be7bf0e037b14 = function (arg0, arg1, arg2) {
2707
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2700
2708
  return addHeapObject(ret);
2701
2709
  };
2702
2710
  imports.wbg.__wbg_new_0394642eae39db16 = function () {
@@ -2707,30 +2715,22 @@ function __wbg_get_imports() {
2707
2715
  const ret = getObject(arg0).push(getObject(arg1));
2708
2716
  return ret;
2709
2717
  };
2710
- imports.wbg.__wbg_new_2b6fea4ea03b1b95 = function () {
2711
- const ret = new Object();
2712
- return addHeapObject(ret);
2713
- };
2714
2718
  imports.wbg.__wbg_ffiwiree2eidentity_new = function (arg0) {
2715
2719
  const ret = FfiWireE2EIdentity.__wrap(arg0);
2716
2720
  return addHeapObject(ret);
2717
2721
  };
2722
+ imports.wbg.__wbindgen_number_new = function (arg0) {
2723
+ const ret = arg0;
2724
+ return addHeapObject(ret);
2725
+ };
2718
2726
  imports.wbg.__wbg_set_b4da98d504ac6091 = function (arg0, arg1, arg2) {
2719
2727
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
2720
2728
  };
2721
2729
  imports.wbg.__wbg_set_841ac57cff3d672b = function (arg0, arg1, arg2) {
2722
2730
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2723
2731
  };
2724
- imports.wbg.__wbindgen_number_new = function (arg0) {
2725
- const ret = arg0;
2726
- return addHeapObject(ret);
2727
- };
2728
- imports.wbg.__wbg_new_0f2b71ca2f2a6029 = function () {
2729
- const ret = new Map();
2730
- return addHeapObject(ret);
2731
- };
2732
- imports.wbg.__wbg_set_da7be7bf0e037b14 = function (arg0, arg1, arg2) {
2733
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2732
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function (arg0) {
2733
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
2734
2734
  return addHeapObject(ret);
2735
2735
  };
2736
2736
  imports.wbg.__wbg_new_87297f22973157c8 = function (arg0, arg1) {
@@ -3269,11 +3269,11 @@ function __wbg_get_imports() {
3269
3269
  return addHeapObject(ret);
3270
3270
  }, arguments);
3271
3271
  };
3272
- imports.wbg.__wbindgen_closure_wrapper1899 = function (arg0, arg1, arg2) {
3272
+ imports.wbg.__wbindgen_closure_wrapper1903 = function (arg0, arg1, arg2) {
3273
3273
  const ret = makeMutClosure(arg0, arg1, 158, __wbg_adapter_52);
3274
3274
  return addHeapObject(ret);
3275
3275
  };
3276
- imports.wbg.__wbindgen_closure_wrapper4477 = function (arg0, arg1, arg2) {
3276
+ imports.wbg.__wbindgen_closure_wrapper4483 = function (arg0, arg1, arg2) {
3277
3277
  const ret = makeMutClosure(arg0, arg1, 158, __wbg_adapter_55);
3278
3278
  return addHeapObject(ret);
3279
3279
  };
@@ -3341,7 +3341,7 @@ var exports = /*#__PURE__*/Object.freeze({
3341
3341
  var wasm = async (opt = {}) => {
3342
3342
  let {importHook, serverPath} = opt;
3343
3343
 
3344
- let path = "assets/core_crypto_ffi-8052e3ff.wasm";
3344
+ let path = "assets/core_crypto_ffi-0b935801.wasm";
3345
3345
 
3346
3346
  if (serverPath != null) {
3347
3347
  path = serverPath + /[^\/\\]*$/.exec(path)[0];