@wireapp/core-crypto 1.0.0-rc.47 → 1.0.0-rc.49

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.47",
3
+ "version": "1.0.0-rc.49",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -160,12 +160,12 @@ var makeMutClosure = function(arg0, arg1, dtor, f) {
160
160
  return real;
161
161
  };
162
162
  var __wbg_adapter_54 = function(arg0, arg1, arg2) {
163
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h03fc5e369aeb2097(arg0, arg1, addHeapObject(arg2));
163
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h710a87412ffe5e55(arg0, arg1, addHeapObject(arg2));
164
164
  };
165
165
  var __wbg_adapter_57 = function(arg0, arg1, arg2) {
166
166
  try {
167
167
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
168
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h502a09895b81991f(retptr, arg0, arg1, addHeapObject(arg2));
168
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h4359f72040c5aa5f(retptr, arg0, arg1, addHeapObject(arg2));
169
169
  var r0 = getInt32Memory0()[retptr / 4 + 0];
170
170
  var r1 = getInt32Memory0()[retptr / 4 + 1];
171
171
  if (r1) {
@@ -236,7 +236,7 @@ var handleError = function(f, args) {
236
236
  }
237
237
  };
238
238
  var __wbg_adapter_423 = function(arg0, arg1, arg2, arg3) {
239
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h30fbe9cb1450504b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
239
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h75c112f6425ae305(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
240
240
  };
241
241
  async function __wbg_load(module, imports) {
242
242
  if (typeof Response === "function" && module instanceof Response) {
@@ -265,31 +265,35 @@ 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_corecrypto_new = function(arg0) {
269
- const ret = CoreCrypto.__wrap(arg0);
268
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
269
+ const ret = ProposalBundle.__wrap(arg0);
270
270
  return addHeapObject(ret);
271
271
  };
272
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
273
- const ret = AcmeDirectory.__wrap(arg0);
272
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
273
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
274
+ return addHeapObject(ret);
275
+ };
276
+ imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
277
+ const ret = BufferedDecryptedMessage.__wrap(arg0);
274
278
  return addHeapObject(ret);
275
279
  };
276
280
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
277
281
  takeObject(arg0);
278
282
  };
279
- imports.wbg.__wbindgen_number_new = function(arg0) {
280
- const ret = arg0;
283
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
284
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
281
285
  return addHeapObject(ret);
282
286
  };
283
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
284
- const ret = FfiWireE2EIdentity.__wrap(arg0);
287
+ imports.wbg.__wbindgen_number_new = function(arg0) {
288
+ const ret = arg0;
285
289
  return addHeapObject(ret);
286
290
  };
287
- imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
288
- const ret = BufferedDecryptedMessage.__wrap(arg0);
291
+ imports.wbg.__wbg_commitbundle_new = function(arg0) {
292
+ const ret = CommitBundle.__wrap(arg0);
289
293
  return addHeapObject(ret);
290
294
  };
291
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
292
- const ret = ProposalBundle.__wrap(arg0);
295
+ imports.wbg.__wbg_corecrypto_new = function(arg0) {
296
+ const ret = CoreCrypto.__wrap(arg0);
293
297
  return addHeapObject(ret);
294
298
  };
295
299
  imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
@@ -300,22 +304,14 @@ var __wbg_get_imports = function() {
300
304
  const ret = NewAcmeOrder.__wrap(arg0);
301
305
  return addHeapObject(ret);
302
306
  };
303
- imports.wbg.__wbg_commitbundle_new = function(arg0) {
304
- const ret = CommitBundle.__wrap(arg0);
305
- return addHeapObject(ret);
306
- };
307
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
308
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
307
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
308
+ const ret = AcmeDirectory.__wrap(arg0);
309
309
  return addHeapObject(ret);
310
310
  };
311
311
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
312
312
  const ret = getObject(arg0);
313
313
  return addHeapObject(ret);
314
314
  };
315
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
316
- const ret = BigInt.asUintN(64, arg0);
317
- return addHeapObject(ret);
318
- };
319
315
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
320
316
  const ret = getStringFromWasm0(arg0, arg1);
321
317
  return addHeapObject(ret);
@@ -328,6 +324,10 @@ var __wbg_get_imports = function() {
328
324
  const ret = getObject(arg0) === null;
329
325
  return ret;
330
326
  };
327
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
328
+ const ret = BigInt.asUintN(64, arg0);
329
+ return addHeapObject(ret);
330
+ };
331
331
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
332
332
  const obj = getObject(arg1);
333
333
  const ret = typeof obj === "string" ? obj : undefined;
@@ -979,12 +979,12 @@ var __wbg_get_imports = function() {
979
979
  const ret = wasm.memory;
980
980
  return addHeapObject(ret);
981
981
  };
982
- imports.wbg.__wbindgen_closure_wrapper2587 = function(arg0, arg1, arg2) {
982
+ imports.wbg.__wbindgen_closure_wrapper2590 = function(arg0, arg1, arg2) {
983
983
  const ret = makeMutClosure(arg0, arg1, 652, __wbg_adapter_54);
984
984
  return addHeapObject(ret);
985
985
  };
986
- imports.wbg.__wbindgen_closure_wrapper13202 = function(arg0, arg1, arg2) {
987
- const ret = makeMutClosure(arg0, arg1, 2169, __wbg_adapter_57);
986
+ imports.wbg.__wbindgen_closure_wrapper13221 = function(arg0, arg1, arg2) {
987
+ const ret = makeMutClosure(arg0, arg1, 2168, __wbg_adapter_57);
988
988
  return addHeapObject(ret);
989
989
  };
990
990
  return imports;
@@ -1051,18 +1051,20 @@ 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 DeviceStatus = Object.freeze({
1061
+ Valid: 0,
1062
+ "0": "Valid",
1063
+ Expired: 1,
1064
+ "1": "Expired",
1065
+ Revoked: 2,
1066
+ "2": "Revoked"
1067
+ });
1066
1068
  var Ciphersuite = Object.freeze({
1067
1069
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
1068
1070
  "1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
@@ -1081,13 +1083,11 @@ var Ciphersuite = Object.freeze({
1081
1083
  MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1082
1084
  "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1083
1085
  });
1084
- var DeviceStatus = Object.freeze({
1085
- Valid: 0,
1086
- "0": "Valid",
1087
- Expired: 1,
1088
- "1": "Expired",
1089
- Revoked: 2,
1090
- "2": "Revoked"
1086
+ var WirePolicy = Object.freeze({
1087
+ Plaintext: 1,
1088
+ "1": "Plaintext",
1089
+ Ciphertext: 2,
1090
+ "2": "Ciphertext"
1091
1091
  });
1092
1092
  var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1093
1093
  }, unregister: () => {