Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wasm-feature-detect

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wasm-feature-detect - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

dist/cjs/index.js

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc