@wireapp/core-crypto 1.0.0-rc.45 → 1.0.0-rc.46

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": "1.0.0-rc.45",
3
+ "version": "1.0.0-rc.46",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -1,12 +1,4 @@
1
1
  // bindings/js/wasm/core-crypto-ffi.js
2
- var addHeapObject = function(obj) {
3
- if (heap_next === heap.length)
4
- heap.push(heap.length + 1);
5
- const idx = heap_next;
6
- heap_next = heap[idx];
7
- heap[idx] = obj;
8
- return idx;
9
- };
10
2
  var getObject = function(idx) {
11
3
  return heap[idx];
12
4
  };
@@ -21,6 +13,14 @@ var takeObject = function(idx) {
21
13
  dropObject(idx);
22
14
  return ret;
23
15
  };
16
+ var addHeapObject = function(obj) {
17
+ if (heap_next === heap.length)
18
+ heap.push(heap.length + 1);
19
+ const idx = heap_next;
20
+ heap_next = heap[idx];
21
+ heap[idx] = obj;
22
+ return idx;
23
+ };
24
24
  var getUint8Memory0 = function() {
25
25
  if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
26
26
  cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
@@ -265,61 +265,61 @@ async function __wbg_load(module, imports) {
265
265
  var __wbg_get_imports = function() {
266
266
  const imports = {};
267
267
  imports.wbg = {};
268
- imports.wbg.__wbg_commitbundle_new = function(arg0) {
269
- const ret = CommitBundle.__wrap(arg0);
270
- return addHeapObject(ret);
271
- };
272
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
273
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
274
- return addHeapObject(ret);
275
- };
276
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
277
- const ret = FfiWireE2EIdentity.__wrap(arg0);
278
- return addHeapObject(ret);
268
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
269
+ takeObject(arg0);
279
270
  };
280
271
  imports.wbg.__wbindgen_number_new = function(arg0) {
281
272
  const ret = arg0;
282
273
  return addHeapObject(ret);
283
274
  };
284
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
285
- const ret = NewAcmeAuthz.__wrap(arg0);
275
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
276
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
286
277
  return addHeapObject(ret);
287
278
  };
288
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
289
- const ret = AcmeDirectory.__wrap(arg0);
279
+ imports.wbg.__wbg_corecrypto_new = function(arg0) {
280
+ const ret = CoreCrypto.__wrap(arg0);
290
281
  return addHeapObject(ret);
291
282
  };
292
283
  imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
293
284
  const ret = BufferedDecryptedMessage.__wrap(arg0);
294
285
  return addHeapObject(ret);
295
286
  };
296
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
297
- takeObject(arg0);
298
- };
299
- imports.wbg.__wbg_corecrypto_new = function(arg0) {
300
- const ret = CoreCrypto.__wrap(arg0);
287
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
288
+ const ret = NewAcmeAuthz.__wrap(arg0);
301
289
  return addHeapObject(ret);
302
290
  };
303
291
  imports.wbg.__wbg_proposalbundle_new = function(arg0) {
304
292
  const ret = ProposalBundle.__wrap(arg0);
305
293
  return addHeapObject(ret);
306
294
  };
295
+ imports.wbg.__wbg_commitbundle_new = function(arg0) {
296
+ const ret = CommitBundle.__wrap(arg0);
297
+ return addHeapObject(ret);
298
+ };
299
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
300
+ const ret = AcmeDirectory.__wrap(arg0);
301
+ return addHeapObject(ret);
302
+ };
307
303
  imports.wbg.__wbg_newacmeorder_new = function(arg0) {
308
304
  const ret = NewAcmeOrder.__wrap(arg0);
309
305
  return addHeapObject(ret);
310
306
  };
311
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
312
- const ret = getObject(arg0);
307
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
308
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
313
309
  return addHeapObject(ret);
314
310
  };
315
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
316
- const ret = BigInt.asUintN(64, arg0);
311
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
312
+ const ret = getObject(arg0);
317
313
  return addHeapObject(ret);
318
314
  };
319
315
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
320
316
  const ret = getStringFromWasm0(arg0, arg1);
321
317
  return addHeapObject(ret);
322
318
  };
319
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
320
+ const ret = BigInt.asUintN(64, arg0);
321
+ return addHeapObject(ret);
322
+ };
323
323
  imports.wbg.__wbindgen_is_undefined = function(arg0) {
324
324
  const ret = getObject(arg0) === undefined;
325
325
  return ret;
@@ -984,7 +984,7 @@ var __wbg_get_imports = function() {
984
984
  return addHeapObject(ret);
985
985
  };
986
986
  imports.wbg.__wbindgen_closure_wrapper13218 = function(arg0, arg1, arg2) {
987
- const ret = makeMutClosure(arg0, arg1, 2175, __wbg_adapter_57);
987
+ const ret = makeMutClosure(arg0, arg1, 2176, __wbg_adapter_57);
988
988
  return addHeapObject(ret);
989
989
  };
990
990
  return imports;
@@ -1051,18 +1051,18 @@ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: ()
1051
1051
  });
1052
1052
  var cachedUint32Memory0 = null;
1053
1053
  var cachedUint16Memory0 = null;
1054
- var WirePolicy = Object.freeze({
1055
- Plaintext: 1,
1056
- "1": "Plaintext",
1057
- Ciphertext: 2,
1058
- "2": "Ciphertext"
1059
- });
1060
1054
  var CredentialType = Object.freeze({
1061
1055
  Basic: 1,
1062
1056
  "1": "Basic",
1063
1057
  X509: 2,
1064
1058
  "2": "X509"
1065
1059
  });
1060
+ var WirePolicy = Object.freeze({
1061
+ Plaintext: 1,
1062
+ "1": "Plaintext",
1063
+ Ciphertext: 2,
1064
+ "2": "Ciphertext"
1065
+ });
1066
1066
  var DeviceStatus = Object.freeze({
1067
1067
  Valid: 0,
1068
1068
  "0": "Valid",