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