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

detect-it

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-it - npm Package Compare versions

Comparing version 4.0.0-next.1 to 4.0.0-next.2

4

package.json
{
"name": "detect-it",
"version": "4.0.0-next.1",
"version": "4.0.0-next.2",
"description": "Detect if a device is mouse only, touch only, or hybrid",

@@ -45,3 +45,3 @@ "main": "dist/detect-it.cjs.js",

"pre-commit": "^1.2.2",
"rollpkg": "^0.1.1",
"rollpkg": "^0.2.0",
"typescript": "^4.1.2"

@@ -48,0 +48,0 @@ },

@@ -142,8 +142,8 @@ # Detect It

<!-- in index.html -->
<script src="https://unpkg.com/detect-it/dist/detect-it.umd.min.js"></script>
<script src="https://unpkg.com/detect-it/dist/detect-it.umd.production.js"></script>
```
```js
// it will be available on the window as detectIt
if (window.detectIt.primaryInput === 'touch') {
// it will be available on the window as DetectIt
if (window.DetectIt.primaryInput === 'touch') {
// tailor UX for touch input

@@ -150,0 +150,0 @@ }

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