@wireapp/core-crypto 1.0.0-rc.49 → 1.0.0-rc.50
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
Binary file
|
@@ -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);
|
@@ -265,45 +265,45 @@ 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_newacmeauthz_new = function(arg0) {
|
269
|
+
const ret = NewAcmeAuthz.__wrap(arg0);
|
270
|
+
return addHeapObject(ret);
|
271
|
+
};
|
268
272
|
imports.wbg.__wbg_proposalbundle_new = function(arg0) {
|
269
273
|
const ret = ProposalBundle.__wrap(arg0);
|
270
274
|
return addHeapObject(ret);
|
271
275
|
};
|
272
|
-
imports.wbg.
|
273
|
-
const ret =
|
276
|
+
imports.wbg.__wbg_newacmeorder_new = function(arg0) {
|
277
|
+
const ret = NewAcmeOrder.__wrap(arg0);
|
274
278
|
return addHeapObject(ret);
|
275
279
|
};
|
276
280
|
imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
|
277
281
|
const ret = BufferedDecryptedMessage.__wrap(arg0);
|
278
282
|
return addHeapObject(ret);
|
279
283
|
};
|
280
|
-
imports.wbg.
|
281
|
-
|
284
|
+
imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
|
285
|
+
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
286
|
+
return addHeapObject(ret);
|
282
287
|
};
|
283
|
-
imports.wbg.
|
284
|
-
const ret =
|
288
|
+
imports.wbg.__wbg_commitbundle_new = function(arg0) {
|
289
|
+
const ret = CommitBundle.__wrap(arg0);
|
285
290
|
return addHeapObject(ret);
|
286
291
|
};
|
287
292
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
288
293
|
const ret = arg0;
|
289
294
|
return addHeapObject(ret);
|
290
295
|
};
|
291
|
-
imports.wbg.
|
292
|
-
|
296
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
297
|
+
takeObject(arg0);
|
298
|
+
};
|
299
|
+
imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
|
300
|
+
const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
|
293
301
|
return addHeapObject(ret);
|
294
302
|
};
|
295
303
|
imports.wbg.__wbg_corecrypto_new = function(arg0) {
|
296
304
|
const ret = CoreCrypto.__wrap(arg0);
|
297
305
|
return addHeapObject(ret);
|
298
306
|
};
|
299
|
-
imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
|
300
|
-
const ret = NewAcmeAuthz.__wrap(arg0);
|
301
|
-
return addHeapObject(ret);
|
302
|
-
};
|
303
|
-
imports.wbg.__wbg_newacmeorder_new = function(arg0) {
|
304
|
-
const ret = NewAcmeOrder.__wrap(arg0);
|
305
|
-
return addHeapObject(ret);
|
306
|
-
};
|
307
307
|
imports.wbg.__wbg_acmedirectory_new = function(arg0) {
|
308
308
|
const ret = AcmeDirectory.__wrap(arg0);
|
309
309
|
return addHeapObject(ret);
|
@@ -983,8 +983,8 @@ var __wbg_get_imports = function() {
|
|
983
983
|
const ret = makeMutClosure(arg0, arg1, 652, __wbg_adapter_54);
|
984
984
|
return addHeapObject(ret);
|
985
985
|
};
|
986
|
-
imports.wbg.
|
987
|
-
const ret = makeMutClosure(arg0, arg1,
|
986
|
+
imports.wbg.__wbindgen_closure_wrapper13222 = function(arg0, arg1, arg2) {
|
987
|
+
const ret = makeMutClosure(arg0, arg1, 2170, __wbg_adapter_57);
|
988
988
|
return addHeapObject(ret);
|
989
989
|
};
|
990
990
|
return imports;
|
@@ -1051,20 +1051,6 @@ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: ()
|
|
1051
1051
|
});
|
1052
1052
|
var cachedUint32Memory0 = null;
|
1053
1053
|
var cachedUint16Memory0 = null;
|
1054
|
-
var CredentialType = Object.freeze({
|
1055
|
-
Basic: 1,
|
1056
|
-
"1": "Basic",
|
1057
|
-
X509: 2,
|
1058
|
-
"2": "X509"
|
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
|
-
});
|
1068
1054
|
var Ciphersuite = Object.freeze({
|
1069
1055
|
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
|
1070
1056
|
"1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
|
@@ -1089,6 +1075,20 @@ var WirePolicy = Object.freeze({
|
|
1089
1075
|
Ciphertext: 2,
|
1090
1076
|
"2": "Ciphertext"
|
1091
1077
|
});
|
1078
|
+
var DeviceStatus = Object.freeze({
|
1079
|
+
Valid: 0,
|
1080
|
+
"0": "Valid",
|
1081
|
+
Expired: 1,
|
1082
|
+
"1": "Expired",
|
1083
|
+
Revoked: 2,
|
1084
|
+
"2": "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));
|