@kya-os/agentshield-nextjs 0.1.35 → 0.1.36

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/dist/index.mjs CHANGED
@@ -1061,18 +1061,9 @@ async function checkWasmAvailability() {
1061
1061
  if (typeof WebAssembly === "undefined") {
1062
1062
  return false;
1063
1063
  }
1064
- const wasmCode = new Uint8Array([
1065
- 0,
1066
- 97,
1067
- 115,
1068
- 109,
1069
- 1,
1070
- 0,
1071
- 0,
1072
- 0
1073
- ]);
1074
- const module = await WebAssembly.compile(wasmCode);
1075
- await WebAssembly.instantiate(module);
1064
+ if (!WebAssembly.instantiate || !WebAssembly.Module) {
1065
+ return false;
1066
+ }
1076
1067
  return true;
1077
1068
  } catch {
1078
1069
  return false;