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

detect-hover

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-hover - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

5

lib/index.js

@@ -6,5 +6,8 @@ 'use strict';

});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var detectHover = {
update: function update() {
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {
if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && typeof window.matchMedia === 'function') {
detectHover.hover = window.matchMedia('(hover: hover)').matches;

@@ -11,0 +14,0 @@ detectHover.none = window.matchMedia('(hover: none)').matches || window.matchMedia('(hover: on-demand)').matches;

2

package.json
{
"name": "detect-hover",
"version": "1.0.0",
"version": "1.0.1",
"description": "JavaScript wrapper for hover and any-hover media queries",

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

const detectHover = {
update() {
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {
if (typeof window === 'object' && typeof window.matchMedia === 'function') {
detectHover.hover = window.matchMedia('(hover: hover)').matches;

@@ -5,0 +5,0 @@ detectHover.none = (

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