Socket
Socket
Sign inDemoInstall

focus-lock

Package Overview
Dependencies
227
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

2

dist/focusInside.js

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

if (!activeElement || activeElement.dataset.focusGuard) {
if (!activeElement || activeElement.dataset && activeElement.dataset.focusGuard) {
return false;

@@ -31,0 +31,0 @@ }

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

var notAGuard = function notAGuard(node) {
return !node.dataset.focusGuard;
return !(node.dataset && node.dataset.focusGuard);
};

@@ -103,0 +103,0 @@

{
"name": "focus-lock",
"version": "0.4.0",
"version": "0.4.1",
"description": "DOM trap for a focus",

@@ -5,0 +5,0 @@ "main": "dist/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