focus-lock
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -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; }; |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
186581
4440