@wireapp/core-crypto 7.0.0 → 7.0.1
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
|
@@ -263,7 +263,7 @@ export const __wbindgen_export_6: WebAssembly.Table;
|
|
263
263
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
264
264
|
export const __externref_table_dealloc: (a: number) => void;
|
265
265
|
export const closure971_externref_shim: (a: number, b: number, c: any) => void;
|
266
|
-
export const
|
267
|
-
export const
|
268
|
-
export const
|
266
|
+
export const closure2664_externref_shim: (a: number, b: number, c: any) => void;
|
267
|
+
export const closure2864_externref_shim: (a: number, b: number, c: any) => void;
|
268
|
+
export const closure2959_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
269
269
|
export const __wbindgen_start: () => void;
|
package/src/corecrypto.js
CHANGED
@@ -335,13 +335,13 @@ function __wbg_adapter_60(arg0, arg1, arg2) {
|
|
335
335
|
wasm.closure971_externref_shim(arg0, arg1, arg2);
|
336
336
|
}
|
337
337
|
function __wbg_adapter_63(arg0, arg1, arg2) {
|
338
|
-
wasm.
|
338
|
+
wasm.closure2664_externref_shim(arg0, arg1, arg2);
|
339
339
|
}
|
340
340
|
function __wbg_adapter_66(arg0, arg1, arg2) {
|
341
|
-
wasm.
|
341
|
+
wasm.closure2864_externref_shim(arg0, arg1, arg2);
|
342
342
|
}
|
343
343
|
function __wbg_adapter_555(arg0, arg1, arg2, arg3) {
|
344
|
-
wasm.
|
344
|
+
wasm.closure2959_externref_shim(arg0, arg1, arg2, arg3);
|
345
345
|
}
|
346
346
|
var CoreCryptoLogLevel = Object.freeze({
|
347
347
|
Off: 1,
|
@@ -2603,7 +2603,7 @@ function __wbg_get_imports() {
|
|
2603
2603
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2604
2604
|
}, arguments);
|
2605
2605
|
};
|
2606
|
-
imports.wbg.
|
2606
|
+
imports.wbg.__wbg_execute_8970dc0c895c4d1f = function() {
|
2607
2607
|
return handleError(function(arg0, arg1) {
|
2608
2608
|
const ret = arg0.execute(CoreCryptoContext.__wrap(arg1));
|
2609
2609
|
return ret;
|
@@ -3205,15 +3205,15 @@ function __wbg_get_imports() {
|
|
3205
3205
|
const ret = false;
|
3206
3206
|
return ret;
|
3207
3207
|
};
|
3208
|
-
imports.wbg.
|
3209
|
-
const ret = makeMutClosure(arg0, arg1,
|
3208
|
+
imports.wbg.__wbindgen_closure_wrapper14694 = function(arg0, arg1, arg2) {
|
3209
|
+
const ret = makeMutClosure(arg0, arg1, 2665, __wbg_adapter_63);
|
3210
3210
|
return ret;
|
3211
3211
|
};
|
3212
|
-
imports.wbg.
|
3213
|
-
const ret = makeMutClosure(arg0, arg1,
|
3212
|
+
imports.wbg.__wbindgen_closure_wrapper15851 = function(arg0, arg1, arg2) {
|
3213
|
+
const ret = makeMutClosure(arg0, arg1, 2865, __wbg_adapter_66);
|
3214
3214
|
return ret;
|
3215
3215
|
};
|
3216
|
-
imports.wbg.
|
3216
|
+
imports.wbg.__wbindgen_closure_wrapper4518 = function(arg0, arg1, arg2) {
|
3217
3217
|
const ret = makeMutClosure(arg0, arg1, 972, __wbg_adapter_60);
|
3218
3218
|
return ret;
|
3219
3219
|
};
|
@@ -3992,11 +3992,10 @@ class CoreCrypto2 {
|
|
3992
3992
|
async function initWasmModule(location = undefined) {
|
3993
3993
|
if (typeof window !== "undefined") {
|
3994
3994
|
if (typeof location === "string") {
|
3995
|
-
const path =
|
3996
|
-
await core_crypto_ffi_default({ path });
|
3995
|
+
const path = `${location}core-crypto-ffi_bg.wasm`;
|
3996
|
+
await core_crypto_ffi_default({ module_or_path: path });
|
3997
3997
|
} else {
|
3998
|
-
|
3999
|
-
await core_crypto_ffi_default({ path });
|
3998
|
+
await core_crypto_ffi_default({});
|
4000
3999
|
}
|
4001
4000
|
} else {
|
4002
4001
|
const fs = await import("fs/promises");
|