@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 +3 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -16
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
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
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;
|