@wireapp/core-crypto 1.0.0-rc.28 → 1.0.0-rc.29

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-rc.28",
3
+ "version": "1.0.0-rc.29",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -1,4 +1,12 @@
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
+ };
2
10
  var getObject = function(idx) {
3
11
  return heap[idx];
4
12
  };
@@ -13,14 +21,6 @@ var takeObject = function(idx) {
13
21
  dropObject(idx);
14
22
  return ret;
15
23
  };
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);
@@ -262,47 +262,47 @@ async function __wbg_load(module, imports) {
262
262
  var __wbg_get_imports = function() {
263
263
  const imports = {};
264
264
  imports.wbg = {};
265
- imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
266
- const ret = BufferedDecryptedMessage.__wrap(arg0);
265
+ imports.wbg.__wbindgen_number_new = function(arg0) {
266
+ const ret = arg0;
267
+ return addHeapObject(ret);
268
+ };
269
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
270
+ const ret = ProposalBundle.__wrap(arg0);
267
271
  return addHeapObject(ret);
268
272
  };
269
273
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
270
274
  takeObject(arg0);
271
275
  };
272
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
273
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
274
- return addHeapObject(ret);
275
- };
276
- imports.wbg.__wbg_corecrypto_new = function(arg0) {
277
- const ret = CoreCrypto.__wrap(arg0);
276
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
277
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
278
278
  return addHeapObject(ret);
279
279
  };
280
280
  imports.wbg.__wbg_commitbundle_new = function(arg0) {
281
281
  const ret = CommitBundle.__wrap(arg0);
282
282
  return addHeapObject(ret);
283
283
  };
284
- imports.wbg.__wbg_newacmeorder_new = function(arg0) {
285
- const ret = NewAcmeOrder.__wrap(arg0);
284
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
285
+ const ret = AcmeDirectory.__wrap(arg0);
286
286
  return addHeapObject(ret);
287
287
  };
288
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
289
- const ret = NewAcmeAuthz.__wrap(arg0);
288
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
289
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
290
290
  return addHeapObject(ret);
291
291
  };
292
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
293
- const ret = AcmeDirectory.__wrap(arg0);
292
+ imports.wbg.__wbg_corecrypto_new = function(arg0) {
293
+ const ret = CoreCrypto.__wrap(arg0);
294
294
  return addHeapObject(ret);
295
295
  };
296
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
297
- const ret = ProposalBundle.__wrap(arg0);
296
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
297
+ const ret = NewAcmeAuthz.__wrap(arg0);
298
298
  return addHeapObject(ret);
299
299
  };
300
- imports.wbg.__wbindgen_number_new = function(arg0) {
301
- const ret = arg0;
300
+ imports.wbg.__wbg_newacmeorder_new = function(arg0) {
301
+ const ret = NewAcmeOrder.__wrap(arg0);
302
302
  return addHeapObject(ret);
303
303
  };
304
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
305
- const ret = FfiWireE2EIdentity.__wrap(arg0);
304
+ imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
305
+ const ret = BufferedDecryptedMessage.__wrap(arg0);
306
306
  return addHeapObject(ret);
307
307
  };
308
308
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
@@ -313,6 +313,10 @@ var __wbg_get_imports = function() {
313
313
  const ret = getStringFromWasm0(arg0, arg1);
314
314
  return addHeapObject(ret);
315
315
  };
316
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
317
+ const ret = BigInt.asUintN(64, arg0);
318
+ return addHeapObject(ret);
319
+ };
316
320
  imports.wbg.__wbindgen_is_undefined = function(arg0) {
317
321
  const ret = getObject(arg0) === undefined;
318
322
  return ret;
@@ -321,10 +325,6 @@ var __wbg_get_imports = function() {
321
325
  const ret = getObject(arg0) === null;
322
326
  return ret;
323
327
  };
324
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
325
- const ret = BigInt.asUintN(64, arg0);
326
- return addHeapObject(ret);
327
- };
328
328
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
329
329
  const obj = getObject(arg1);
330
330
  const ret = typeof obj === "string" ? obj : undefined;
@@ -970,8 +970,8 @@ var __wbg_get_imports = function() {
970
970
  const ret = makeMutClosure(arg0, arg1, 649, __wbg_adapter_54);
971
971
  return addHeapObject(ret);
972
972
  };
973
- imports.wbg.__wbindgen_closure_wrapper11476 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 1584, __wbg_adapter_57);
973
+ imports.wbg.__wbindgen_closure_wrapper11423 = function(arg0, arg1, arg2) {
974
+ const ret = makeMutClosure(arg0, arg1, 1578, __wbg_adapter_57);
975
975
  return addHeapObject(ret);
976
976
  };
977
977
  return imports;
@@ -1057,6 +1057,12 @@ var WirePolicy = Object.freeze({
1057
1057
  Ciphertext: 2,
1058
1058
  "2": "Ciphertext"
1059
1059
  });
1060
+ var CredentialType = Object.freeze({
1061
+ Basic: 1,
1062
+ "1": "Basic",
1063
+ X509: 2,
1064
+ "2": "X509"
1065
+ });
1060
1066
  var DeviceStatus = Object.freeze({
1061
1067
  Valid: 0,
1062
1068
  "0": "Valid",
@@ -1065,12 +1071,6 @@ var DeviceStatus = Object.freeze({
1065
1071
  Revoked: 2,
1066
1072
  "2": "Revoked"
1067
1073
  });
1068
- var CredentialType = Object.freeze({
1069
- Basic: 1,
1070
- "1": "Basic",
1071
- X509: 2,
1072
- "2": "X509"
1073
- });
1074
1074
 
1075
1075
  class AcmeChallenge {
1076
1076
  static __wrap(ptr) {