Socket
Socket
Sign inDemoInstall

focus-lock

Package Overview
Dependencies
1
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.1 to 0.9.2

8

dist/es2015/utils/is.js

@@ -1,2 +0,6 @@

var isElementHidden = function (computedStyle) {
var isElementHidden = function (node) {
if (node.nodeType !== Node.ELEMENT_NODE) {
return false;
}
var computedStyle = window.getComputedStyle(node, null);
if (!computedStyle || !computedStyle.getPropertyValue) {

@@ -11,3 +15,3 @@ return false;

(node && node.nodeType === Node.DOCUMENT_NODE) ||
(!isElementHidden(window.getComputedStyle(node, null)) &&
(!isElementHidden(node) &&
checkParent(node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE

@@ -14,0 +18,0 @@ ? node.parentNode.host

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var isElementHidden = function (computedStyle) {
var isElementHidden = function (node) {
if (node.nodeType !== Node.ELEMENT_NODE) {
return false;
}
var computedStyle = window.getComputedStyle(node, null);
if (!computedStyle || !computedStyle.getPropertyValue) {

@@ -13,3 +17,3 @@ return false;

(node && node.nodeType === Node.DOCUMENT_NODE) ||
(!isElementHidden(window.getComputedStyle(node, null)) &&
(!isElementHidden(node) &&
checkParent(node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE

@@ -16,0 +20,0 @@ ? node.parentNode.host

{
"name": "focus-lock",
"version": "0.9.1",
"version": "0.9.2",
"description": "DOM trap for a focus",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc