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

@notainc/mouse-hover-visible

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@notainc/mouse-hover-visible - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

16

index.js

@@ -1,5 +0,5 @@

(function () {
let currentHoverVisible = false
var(function () {
var currentHoverVisible = false
const modifierKeys = [
var modifierKeys = [
16, // shift

@@ -14,5 +14,5 @@ 17, // control

function supportsPassiveEvent () {
let exist = false
var exist = false
try {
const opts = Object.defineProperty({}, 'passive', {
var opts = Object.defineProperty({}, 'passive', {
get: function () { exist = true }

@@ -28,4 +28,4 @@ })

// some components like Boostrap Dropdown menu call stopPropagate()
const useCapture = true
const options = supportsPassiveEvent()
var useCapture = true
var options = supportsPassiveEvent()
? { passive: true, capture: useCapture }

@@ -71,3 +71,3 @@ : useCapture

currentHoverVisible = hoverVisible
const body = document.body
var body = document.body
if (hoverVisible) {

@@ -74,0 +74,0 @@ body.dataset.hoverVisible = ''

{
"name": "@notainc/mouse-hover-visible",
"version": "0.0.4",
"version": "0.0.5",
"description": "This library allows you to show CSS :hover pseudo-class only when triggered by the mouse.",

@@ -5,0 +5,0 @@ "repository": {

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