@wireapp/core-crypto 1.0.0-rc.53 → 1.0.0-rc.54

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.53",
3
+ "version": "1.0.0-rc.54",
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__h6ec936e7e658dfc2(arg0, arg1, addHeapObject(arg2));
163
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__hca7d158ff12b0a1a(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__h679c32bb4cb8181f(retptr, arg0, arg1, addHeapObject(arg2));
168
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h35c7632f95579756(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_428 = function(arg0, arg1, arg2, arg3) {
239
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h85cdc5a82a90a895(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
239
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h58ce3c334379354d(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,53 +265,57 @@ 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_ffiwiree2eidentity_new = function(arg0) {
269
- const ret = FfiWireE2EIdentity.__wrap(arg0);
270
- return addHeapObject(ret);
271
- };
272
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
273
- const ret = ProposalBundle.__wrap(arg0);
274
- return addHeapObject(ret);
275
- };
276
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
277
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
268
+ imports.wbg.__wbg_newacmeorder_new = function(arg0) {
269
+ const ret = NewAcmeOrder.__wrap(arg0);
278
270
  return addHeapObject(ret);
279
271
  };
280
272
  imports.wbg.__wbindgen_number_new = function(arg0) {
281
273
  const ret = arg0;
282
274
  return addHeapObject(ret);
283
275
  };
276
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
277
+ const ret = ProposalBundle.__wrap(arg0);
278
+ return addHeapObject(ret);
279
+ };
284
280
  imports.wbg.__wbg_commitbundle_new = function(arg0) {
285
281
  const ret = CommitBundle.__wrap(arg0);
286
282
  return addHeapObject(ret);
287
283
  };
284
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
285
+ const ret = AcmeDirectory.__wrap(arg0);
286
+ return addHeapObject(ret);
287
+ };
288
288
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
289
289
  takeObject(arg0);
290
290
  };
291
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
292
- const ret = NewAcmeAuthz.__wrap(arg0);
291
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
292
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
293
293
  return addHeapObject(ret);
294
294
  };
295
- imports.wbg.__wbg_newacmeorder_new = function(arg0) {
296
- const ret = NewAcmeOrder.__wrap(arg0);
295
+ imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
296
+ const ret = BufferedDecryptedMessage.__wrap(arg0);
297
297
  return addHeapObject(ret);
298
298
  };
299
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
300
- const ret = AcmeDirectory.__wrap(arg0);
299
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
300
+ const ret = NewAcmeAuthz.__wrap(arg0);
301
301
  return addHeapObject(ret);
302
302
  };
303
- imports.wbg.__wbg_corecrypto_new = function(arg0) {
304
- const ret = CoreCrypto.__wrap(arg0);
303
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
304
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
305
305
  return addHeapObject(ret);
306
306
  };
307
- imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
308
- const ret = BufferedDecryptedMessage.__wrap(arg0);
307
+ imports.wbg.__wbg_corecrypto_new = function(arg0) {
308
+ const ret = CoreCrypto.__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
+ };
315
319
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
316
320
  const ret = getStringFromWasm0(arg0, arg1);
317
321
  return addHeapObject(ret);
@@ -324,10 +328,6 @@ var __wbg_get_imports = function() {
324
328
  const ret = getObject(arg0) === null;
325
329
  return ret;
326
330
  };
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_wrapper2666 = function(arg0, arg1, arg2) {
982
+ imports.wbg.__wbindgen_closure_wrapper2667 = function(arg0, arg1, arg2) {
983
983
  const ret = makeMutClosure(arg0, arg1, 667, __wbg_adapter_54);
984
984
  return addHeapObject(ret);
985
985
  };
986
- imports.wbg.__wbindgen_closure_wrapper13336 = function(arg0, arg1, arg2) {
987
- const ret = makeMutClosure(arg0, arg1, 2201, __wbg_adapter_57);
986
+ imports.wbg.__wbindgen_closure_wrapper13314 = function(arg0, arg1, arg2) {
987
+ const ret = makeMutClosure(arg0, arg1, 2205, __wbg_adapter_57);
988
988
  return addHeapObject(ret);
989
989
  };
990
990
  return imports;
@@ -1051,6 +1051,26 @@ 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
+ var CredentialType = Object.freeze({
1061
+ Basic: 1,
1062
+ "1": "Basic",
1063
+ X509: 2,
1064
+ "2": "X509"
1065
+ });
1066
+ var DeviceStatus = Object.freeze({
1067
+ Valid: 1,
1068
+ "1": "Valid",
1069
+ Expired: 2,
1070
+ "2": "Expired",
1071
+ Revoked: 3,
1072
+ "3": "Revoked"
1073
+ });
1054
1074
  var Ciphersuite = Object.freeze({
1055
1075
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
1056
1076
  "1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
@@ -1069,26 +1089,6 @@ var Ciphersuite = Object.freeze({
1069
1089
  MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1070
1090
  "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1071
1091
  });
1072
- var WirePolicy = Object.freeze({
1073
- Plaintext: 1,
1074
- "1": "Plaintext",
1075
- Ciphertext: 2,
1076
- "2": "Ciphertext"
1077
- });
1078
- var DeviceStatus = Object.freeze({
1079
- Valid: 1,
1080
- "1": "Valid",
1081
- Expired: 2,
1082
- "2": "Expired",
1083
- Revoked: 3,
1084
- "3": "Revoked"
1085
- });
1086
- var CredentialType = Object.freeze({
1087
- Basic: 1,
1088
- "1": "Basic",
1089
- X509: 2,
1090
- "2": "X509"
1091
- });
1092
1092
  var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1093
1093
  }, unregister: () => {
1094
1094
  } } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0));