Socket
Socket
Sign inDemoInstall

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 3.0.4 to 3.0.5

2

lib/index.js

@@ -103,3 +103,3 @@ 'use strict';

// deviceType is hybrid:
detectIt.state.detectHover.hover && 'mouse' || detectIt.state.detectHover.none && 'touch' ||
detectIt.state.detectPointer.fine && 'mouse' || detectIt.state.detectPointer.coarse && 'touch' ||
// if there's no support for hover media queries but detectIt determined it's

@@ -106,0 +106,0 @@ // a hybrid device, then assume it's a mouse first device

{
"name": "detect-it",
"version": "3.0.4",
"version": "3.0.5",
"description": "Detect if a device is mouse only, touch only, or hybrid",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -85,4 +85,4 @@ import detectHover from 'detect-hover';

// deviceType is hybrid:
(detectIt.state.detectHover.hover && 'mouse') ||
(detectIt.state.detectHover.none && 'touch') ||
(detectIt.state.detectPointer.fine && 'mouse') ||
(detectIt.state.detectPointer.coarse && 'touch') ||
// if there's no support for hover media queries but detectIt determined it's

@@ -89,0 +89,0 @@ // a hybrid device, then assume it's a mouse first device

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