@wireapp/core-crypto 0.7.0-rc.2 → 0.7.0-rc.3

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": "0.7.0-rc.2",
3
+ "version": "0.7.0-rc.3",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -34,6 +34,14 @@ const heap = new Array(128).fill(undefined);
34
34
  heap.push(undefined, null, true, false);
35
35
  function getObject(idx) { return heap[idx]; }
36
36
  let heap_next = heap.length;
37
+ function addHeapObject(obj) {
38
+ if (heap_next === heap.length)
39
+ heap.push(heap.length + 1);
40
+ const idx = heap_next;
41
+ heap_next = heap[idx];
42
+ heap[idx] = obj;
43
+ return idx;
44
+ }
37
45
  function dropObject(idx) {
38
46
  if (idx < 132)
39
47
  return;
@@ -45,14 +53,6 @@ function takeObject(idx) {
45
53
  dropObject(idx);
46
54
  return ret;
47
55
  }
48
- function addHeapObject(obj) {
49
- if (heap_next === heap.length)
50
- heap.push(heap.length + 1);
51
- const idx = heap_next;
52
- heap_next = heap[idx];
53
- heap[idx] = obj;
54
- return idx;
55
- }
56
56
  const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
57
57
  cachedTextDecoder.decode();
58
58
  let cachedUint8Memory0 = null;
@@ -2410,9 +2410,6 @@ async function load(module, imports) {
2410
2410
  function getImports() {
2411
2411
  const imports = {};
2412
2412
  imports.wbg = {};
2413
- imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
2414
- takeObject(arg0);
2415
- };
2416
2413
  imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
2417
2414
  const ret = getObject(arg0);
2418
2415
  return addHeapObject(ret);
@@ -2422,6 +2419,9 @@ function getImports() {
2422
2419
  const ret = typeof (val) === 'object' && val !== null;
2423
2420
  return ret;
2424
2421
  };
2422
+ imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
2423
+ takeObject(arg0);
2424
+ };
2425
2425
  imports.wbg.__wbg_getwithrefkey_5e6d9547403deab8 = function (arg0, arg1) {
2426
2426
  const ret = getObject(arg0)[getObject(arg1)];
2427
2427
  return addHeapObject(ret);
@@ -2468,16 +2468,12 @@ function getImports() {
2468
2468
  return addHeapObject(ret);
2469
2469
  }, arguments);
2470
2470
  };
2471
- imports.wbg.__wbindgen_number_new = function (arg0) {
2472
- const ret = arg0;
2473
- return addHeapObject(ret);
2474
- };
2475
2471
  imports.wbg.__wbg_new_537b7341ce90bb31 = function (arg0) {
2476
2472
  const ret = new Uint8Array(getObject(arg0));
2477
2473
  return addHeapObject(ret);
2478
2474
  };
2479
- imports.wbg.__wbg_proteusautoprekeybundle_new = function (arg0) {
2480
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
2475
+ imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
2476
+ const ret = BigInt.asUintN(64, arg0);
2481
2477
  return addHeapObject(ret);
2482
2478
  };
2483
2479
  imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function (arg0, arg1) {
@@ -2500,8 +2496,8 @@ function getImports() {
2500
2496
  state0.a = state0.b = 0;
2501
2497
  }
2502
2498
  };
2503
- imports.wbg.__wbg_new_f9876326328f45ed = function () {
2504
- const ret = new Object();
2499
+ imports.wbg.__wbindgen_number_new = function (arg0) {
2500
+ const ret = arg0;
2505
2501
  return addHeapObject(ret);
2506
2502
  };
2507
2503
  imports.wbg.__wbg_new_b525de17f44a8943 = function () {
@@ -2512,14 +2508,6 @@ function getImports() {
2512
2508
  const ret = getObject(arg0).push(getObject(arg1));
2513
2509
  return ret;
2514
2510
  };
2515
- imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
2516
- const ret = BigInt.asUintN(64, arg0);
2517
- return addHeapObject(ret);
2518
- };
2519
- imports.wbg.__wbg_ffiwiree2eidentity_new = function (arg0) {
2520
- const ret = FfiWireE2EIdentity.__wrap(arg0);
2521
- return addHeapObject(ret);
2522
- };
2523
2511
  imports.wbg.__wbg_new_f841cc6f2098f4b5 = function () {
2524
2512
  const ret = new Map();
2525
2513
  return addHeapObject(ret);
@@ -2528,6 +2516,18 @@ function getImports() {
2528
2516
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
2529
2517
  return addHeapObject(ret);
2530
2518
  };
2519
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function (arg0) {
2520
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
2521
+ return addHeapObject(ret);
2522
+ };
2523
+ imports.wbg.__wbg_new_f9876326328f45ed = function () {
2524
+ const ret = new Object();
2525
+ return addHeapObject(ret);
2526
+ };
2527
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function (arg0) {
2528
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
2529
+ return addHeapObject(ret);
2530
+ };
2531
2531
  imports.wbg.__wbg_setonsuccess_925a7718d3f62bc1 = function (arg0, arg1) {
2532
2532
  getObject(arg0).onsuccess = getObject(arg1);
2533
2533
  };
@@ -2596,12 +2596,12 @@ function getImports() {
2596
2596
  const ret = CoreCrypto$1.__wrap(arg0);
2597
2597
  return addHeapObject(ret);
2598
2598
  };
2599
- imports.wbg.__wbg_set_17224bc548dd1d7b = function (arg0, arg1, arg2) {
2600
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
2601
- };
2602
2599
  imports.wbg.__wbg_set_841ac57cff3d672b = function (arg0, arg1, arg2) {
2603
2600
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
2604
2601
  };
2602
+ imports.wbg.__wbg_set_17224bc548dd1d7b = function (arg0, arg1, arg2) {
2603
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
2604
+ };
2605
2605
  imports.wbg.__wbg_new_15d3966e9981a196 = function (arg0, arg1) {
2606
2606
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2607
2607
  return addHeapObject(ret);
@@ -3133,11 +3133,11 @@ function getImports() {
3133
3133
  return addHeapObject(ret);
3134
3134
  }, arguments);
3135
3135
  };
3136
- imports.wbg.__wbindgen_closure_wrapper1546 = function (arg0, arg1, arg2) {
3136
+ imports.wbg.__wbindgen_closure_wrapper1553 = function (arg0, arg1, arg2) {
3137
3137
  const ret = makeMutClosure(arg0, arg1, 165, __wbg_adapter_52);
3138
3138
  return addHeapObject(ret);
3139
3139
  };
3140
- imports.wbg.__wbindgen_closure_wrapper4706 = function (arg0, arg1, arg2) {
3140
+ imports.wbg.__wbindgen_closure_wrapper4705 = function (arg0, arg1, arg2) {
3141
3141
  const ret = makeMutClosure(arg0, arg1, 165, __wbg_adapter_55);
3142
3142
  return addHeapObject(ret);
3143
3143
  };
@@ -3199,7 +3199,7 @@ var exports = /*#__PURE__*/Object.freeze({
3199
3199
  var wasm = async (opt = {}) => {
3200
3200
  let {importHook, serverPath} = opt;
3201
3201
 
3202
- let path = "assets/core_crypto_ffi-09d69604.wasm";
3202
+ let path = "assets/core_crypto_ffi-834f6094.wasm";
3203
3203
 
3204
3204
  if (serverPath != null) {
3205
3205
  path = serverPath + /[^\/\\]*$/.exec(path)[0];