@wireapp/core-crypto 8.0.1 → 8.0.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "8.0.1",
3
+ "version": "8.0.3",
4
4
  "author": "Wire CoreCrypto team <team.corecrypto@wire.com>",
5
5
  "repository": {
6
6
  "type": "git",
package/src/CoreCrypto.ts CHANGED
@@ -110,7 +110,7 @@ export async function initWasmModule(location: string | undefined = undefined) {
110
110
  );
111
111
  const file = await fs.open(path);
112
112
  const buffer = await file.readFile();
113
- const module = new WebAssembly.Module(buffer);
113
+ const module = new WebAssembly.Module(new Uint8Array(buffer));
114
114
  await initWasm({ module_or_path: module });
115
115
  }
116
116
  }
package/src/corecrypto.js CHANGED
@@ -332,10 +332,10 @@ function __wbg_adapter_65(arg0, arg1, arg2) {
332
332
  wasm.closure2637_externref_shim(arg0, arg1, arg2);
333
333
  }
334
334
  function __wbg_adapter_68(arg0, arg1, arg2) {
335
- wasm.closure2839_externref_shim(arg0, arg1, arg2);
335
+ wasm.closure2838_externref_shim(arg0, arg1, arg2);
336
336
  }
337
337
  function __wbg_adapter_565(arg0, arg1, arg2, arg3) {
338
- wasm.closure2945_externref_shim(arg0, arg1, arg2, arg3);
338
+ wasm.closure2944_externref_shim(arg0, arg1, arg2, arg3);
339
339
  }
340
340
  var Ciphersuite = Object.freeze({
341
341
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
@@ -2713,7 +2713,7 @@ function __wbg_get_imports() {
2713
2713
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2714
2714
  }, arguments);
2715
2715
  };
2716
- imports.wbg.__wbg_execute_804dc51b94ff3c62 = function() {
2716
+ imports.wbg.__wbg_execute_60eb9445d02a983b = function() {
2717
2717
  return handleError(function(arg0, arg1) {
2718
2718
  const ret = arg0.execute(CoreCryptoContext.__wrap(arg1));
2719
2719
  return ret;
@@ -3335,12 +3335,12 @@ function __wbg_get_imports() {
3335
3335
  const ret = false;
3336
3336
  return ret;
3337
3337
  };
3338
- imports.wbg.__wbindgen_closure_wrapper14671 = function(arg0, arg1, arg2) {
3338
+ imports.wbg.__wbindgen_closure_wrapper14667 = function(arg0, arg1, arg2) {
3339
3339
  const ret = makeMutClosure(arg0, arg1, 2638, __wbg_adapter_65);
3340
3340
  return ret;
3341
3341
  };
3342
- imports.wbg.__wbindgen_closure_wrapper15902 = function(arg0, arg1, arg2) {
3343
- const ret = makeMutClosure(arg0, arg1, 2840, __wbg_adapter_68);
3342
+ imports.wbg.__wbindgen_closure_wrapper15901 = function(arg0, arg1, arg2) {
3343
+ const ret = makeMutClosure(arg0, arg1, 2839, __wbg_adapter_68);
3344
3344
  return ret;
3345
3345
  };
3346
3346
  imports.wbg.__wbindgen_closure_wrapper4580 = function(arg0, arg1, arg2) {
@@ -4113,7 +4113,7 @@ async function initWasmModule(location = undefined) {
4113
4113
  const path = new URL(`${location}core-crypto-ffi_bg.wasm`, import.meta.url);
4114
4114
  const file = await fs.open(path);
4115
4115
  const buffer = await file.readFile();
4116
- const module = new WebAssembly.Module(buffer);
4116
+ const module = new WebAssembly.Module(new Uint8Array(buffer));
4117
4117
  await core_crypto_ffi_default({ module_or_path: module });
4118
4118
  }
4119
4119
  }