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

focus-lock

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-lock - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

5

dist/es2015/return-focus.js

@@ -5,2 +5,7 @@ import { getTabbableNodes } from './utils/DOMutils';

return null;
// #68 Safari 14.1 dont have it yet
// FIXME: remove in 2025
if (typeof WeakRef === 'undefined') {
return function () { return value || null; };
}
var w = value ? new WeakRef(value) : null;

@@ -7,0 +12,0 @@ return function () { return (w === null || w === void 0 ? void 0 : w.deref()) || null; };

@@ -5,2 +5,7 @@ import { getTabbableNodes } from './utils/DOMutils';

return null;
// #68 Safari 14.1 dont have it yet
// FIXME: remove in 2025
if (typeof WeakRef === 'undefined') {
return () => value || null;
}
const w = value ? new WeakRef(value) : null;

@@ -7,0 +12,0 @@ return () => (w === null || w === void 0 ? void 0 : w.deref()) || null;

@@ -8,2 +8,7 @@ "use strict";

return null;
// #68 Safari 14.1 dont have it yet
// FIXME: remove in 2025
if (typeof WeakRef === 'undefined') {
return function () { return value || null; };
}
var w = value ? new WeakRef(value) : null;

@@ -10,0 +15,0 @@ return function () { return (w === null || w === void 0 ? void 0 : w.deref()) || null; };

2

package.json
{
"name": "focus-lock",
"version": "1.3.4",
"version": "1.3.5",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc