wasm-feature-detect
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "wasm-feature-detect", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A small library to detect which features of WebAssembly are supported in your current browser.", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/esm/index.js", | ||
"exports": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.cjs" | ||
}, | ||
"types": "dist/index.d.ts", | ||
@@ -8,0 +10,0 @@ "type": "module", |
@@ -23,9 +23,7 @@ # WebAssembly Feature Detection | ||
simd().then((simdSupported) => { | ||
if (simdSupported) { | ||
/* SIMD support */ | ||
} else { | ||
/* No SIMD support */ | ||
} | ||
}); | ||
if (await simd()) { | ||
/* SIMD support */ | ||
} else { | ||
/* No SIMD support */ | ||
} | ||
</script> | ||
@@ -48,3 +46,5 @@ ``` | ||
<script> | ||
wasmFeatureDetect.simd().then(/* same as above */); | ||
if (await wasmFeatureDetect.simd()) { | ||
// ... | ||
} | ||
</script> | ||
@@ -51,0 +51,0 @@ ``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30602
9
54