@wireapp/core-crypto 0.9.0 → 0.9.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": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -35,14 +35,6 @@ const heap = new Array(128).fill(undefined);
35
35
  heap.push(undefined, null, true, false);
36
36
  function getObject(idx) { return heap[idx]; }
37
37
  let heap_next = heap.length;
38
- function addHeapObject(obj) {
39
- if (heap_next === heap.length)
40
- heap.push(heap.length + 1);
41
- const idx = heap_next;
42
- heap_next = heap[idx];
43
- heap[idx] = obj;
44
- return idx;
45
- }
46
38
  function dropObject(idx) {
47
39
  if (idx < 132)
48
40
  return;
@@ -54,6 +46,14 @@ function takeObject(idx) {
54
46
  dropObject(idx);
55
47
  return ret;
56
48
  }
49
+ function addHeapObject(obj) {
50
+ if (heap_next === heap.length)
51
+ heap.push(heap.length + 1);
52
+ const idx = heap_next;
53
+ heap_next = heap[idx];
54
+ heap[idx] = obj;
55
+ return idx;
56
+ }
57
57
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available'); } });
58
58
  if (typeof TextDecoder !== 'undefined') {
59
59
  cachedTextDecoder.decode();
@@ -2600,6 +2600,9 @@ async function __wbg_load(module, imports) {
2600
2600
  function __wbg_get_imports() {
2601
2601
  const imports = {};
2602
2602
  imports.wbg = {};
2603
+ imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
2604
+ takeObject(arg0);
2605
+ };
2603
2606
  imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
2604
2607
  const ret = getObject(arg0);
2605
2608
  return addHeapObject(ret);
@@ -2609,9 +2612,6 @@ function __wbg_get_imports() {
2609
2612
  const ret = typeof (val) === 'object' && val !== null;
2610
2613
  return ret;
2611
2614
  };
2612
- imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
2613
- takeObject(arg0);
2614
- };
2615
2615
  imports.wbg.__wbg_getwithrefkey_5e6d9547403deab8 = function (arg0, arg1) {
2616
2616
  const ret = getObject(arg0)[getObject(arg1)];
2617
2617
  return addHeapObject(ret);
@@ -2663,6 +2663,24 @@ function __wbg_get_imports() {
2663
2663
  const ret = getObject(arg0).length;
2664
2664
  return ret;
2665
2665
  };
2666
+ imports.wbg.__wbg_new_09938a7d020f049b = function (arg0) {
2667
+ const ret = new Uint8Array(getObject(arg0));
2668
+ return addHeapObject(ret);
2669
+ };
2670
+ imports.wbg.__wbg_call_587b30eea3e09332 = function () {
2671
+ return handleError(function (arg0, arg1, arg2) {
2672
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2673
+ return addHeapObject(ret);
2674
+ }, arguments);
2675
+ };
2676
+ imports.wbg.__wbg_new_0394642eae39db16 = function () {
2677
+ const ret = new Array();
2678
+ return addHeapObject(ret);
2679
+ };
2680
+ imports.wbg.__wbg_push_109cfc26d02582dd = function (arg0, arg1) {
2681
+ const ret = getObject(arg0).push(getObject(arg1));
2682
+ return ret;
2683
+ };
2666
2684
  imports.wbg.__wbg_new_2b55e405e4af4986 = function (arg0, arg1) {
2667
2685
  try {
2668
2686
  var state0 = { a: arg0, b: arg1 };
@@ -2683,24 +2701,6 @@ function __wbg_get_imports() {
2683
2701
  state0.a = state0.b = 0;
2684
2702
  }
2685
2703
  };
2686
- imports.wbg.__wbg_call_587b30eea3e09332 = function () {
2687
- return handleError(function (arg0, arg1, arg2) {
2688
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2689
- return addHeapObject(ret);
2690
- }, arguments);
2691
- };
2692
- imports.wbg.__wbg_new_09938a7d020f049b = function (arg0) {
2693
- const ret = new Uint8Array(getObject(arg0));
2694
- return addHeapObject(ret);
2695
- };
2696
- imports.wbg.__wbg_new_0394642eae39db16 = function () {
2697
- const ret = new Array();
2698
- return addHeapObject(ret);
2699
- };
2700
- imports.wbg.__wbg_push_109cfc26d02582dd = function (arg0, arg1) {
2701
- const ret = getObject(arg0).push(getObject(arg1));
2702
- return ret;
2703
- };
2704
2704
  imports.wbg.__wbindgen_number_new = function (arg0) {
2705
2705
  const ret = arg0;
2706
2706
  return addHeapObject(ret);
@@ -2713,10 +2713,6 @@ function __wbg_get_imports() {
2713
2713
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2714
2714
  return addHeapObject(ret);
2715
2715
  };
2716
- imports.wbg.__wbg_new_2b6fea4ea03b1b95 = function () {
2717
- const ret = new Object();
2718
- return addHeapObject(ret);
2719
- };
2720
2716
  imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
2721
2717
  const ret = BigInt.asUintN(64, arg0);
2722
2718
  return addHeapObject(ret);
@@ -2725,6 +2721,10 @@ function __wbg_get_imports() {
2725
2721
  const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
2726
2722
  return addHeapObject(ret);
2727
2723
  };
2724
+ imports.wbg.__wbg_new_2b6fea4ea03b1b95 = function () {
2725
+ const ret = new Object();
2726
+ return addHeapObject(ret);
2727
+ };
2728
2728
  imports.wbg.__wbg_ffiwiree2eidentity_new = function (arg0) {
2729
2729
  const ret = FfiWireE2EIdentity.__wrap(arg0);
2730
2730
  return addHeapObject(ret);
@@ -3301,12 +3301,12 @@ function __wbg_get_imports() {
3301
3301
  return addHeapObject(ret);
3302
3302
  }, arguments);
3303
3303
  };
3304
- imports.wbg.__wbindgen_closure_wrapper1662 = function (arg0, arg1, arg2) {
3305
- const ret = makeMutClosure(arg0, arg1, 161, __wbg_adapter_52);
3304
+ imports.wbg.__wbindgen_closure_wrapper1663 = function (arg0, arg1, arg2) {
3305
+ const ret = makeMutClosure(arg0, arg1, 162, __wbg_adapter_52);
3306
3306
  return addHeapObject(ret);
3307
3307
  };
3308
- imports.wbg.__wbindgen_closure_wrapper4793 = function (arg0, arg1, arg2) {
3309
- const ret = makeMutClosure(arg0, arg1, 161, __wbg_adapter_55);
3308
+ imports.wbg.__wbindgen_closure_wrapper4791 = function (arg0, arg1, arg2) {
3309
+ const ret = makeMutClosure(arg0, arg1, 162, __wbg_adapter_55);
3310
3310
  return addHeapObject(ret);
3311
3311
  };
3312
3312
  return imports;
@@ -3373,7 +3373,7 @@ var exports = /*#__PURE__*/Object.freeze({
3373
3373
  var wasm = async (opt = {}) => {
3374
3374
  let {importHook, serverPath} = opt;
3375
3375
 
3376
- let path = "assets/core_crypto_ffi-6f42b5e8.wasm";
3376
+ let path = "assets/core_crypto_ffi-3aab42da.wasm";
3377
3377
 
3378
3378
  if (serverPath != null) {
3379
3379
  path = serverPath + /[^\/\\]*$/.exec(path)[0];