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.11.1 to 0.11.2

19

CHANGELOG.md

@@ -0,1 +1,20 @@

## [0.11.2](https://github.com/theKashey/focus-lock/compare/v0.11.1...v0.11.2) (2022-05-07)
### Bug Fixes
- use prototype-based node.contains, fixes [#36](https://github.com/theKashey/focus-lock/issues/36) ([c7eb950](https://github.com/theKashey/focus-lock/commit/c7eb9500adcb37ff2cac8a84b440fc59804d5874))
## [0.11.1](https://github.com/theKashey/focus-lock/compare/v0.11.0...v0.11.1) (2022-05-04)
# [0.11.0](https://github.com/theKashey/focus-lock/compare/v0.10.2...v0.11.0) (2022-05-01)
### Bug Fixes
- no longer block aria-disabled elements, fixes [#34](https://github.com/theKashey/focus-lock/issues/34) ([2bc8ee3](https://github.com/theKashey/focus-lock/commit/2bc8ee3a58f5c51b6a44df24b4bd443c01977737))
- restore built-in jsdoc ([edc8a82](https://github.com/theKashey/focus-lock/commit/edc8a82b1fe1e0a349ff60ebb599f63dbc2aa599))
### Features
- introduce FOCUS_NO_AUTOFOCUS ([5c2dc8f](https://github.com/theKashey/focus-lock/commit/5c2dc8fb371ee83400ae65c7f0923b19eaf99d05))
## [0.10.2](https://github.com/theKashey/focus-lock/compare/v0.10.1...v0.10.2) (2022-02-14)

@@ -2,0 +21,0 @@

3

dist/es2015/utils/DOMutils.js

@@ -47,3 +47,4 @@ import { toArray } from './array';

? contains(scope.shadowRoot, element)
: scope.contains(element)) || toArray(scope.children).some(function (child) { return contains(child, element); }));
: Object.getPrototypeOf(scope).contains.call(scope, element)) ||
toArray(scope.children).some(function (child) { return contains(child, element); }));
};

@@ -36,3 +36,4 @@ import { toArray } from './array';

? contains(scope.shadowRoot, element)
: scope.contains(element)) || toArray(scope.children).some((child) => contains(child, element)));
: Object.getPrototypeOf(scope).contains.call(scope, element)) ||
toArray(scope.children).some((child) => contains(child, element)));
};

@@ -55,4 +55,5 @@ "use strict";

? (0, exports.contains)(scope.shadowRoot, element)
: scope.contains(element)) || (0, array_1.toArray)(scope.children).some(function (child) { return (0, exports.contains)(child, element); }));
: Object.getPrototypeOf(scope).contains.call(scope, element)) ||
(0, array_1.toArray)(scope.children).some(function (child) { return (0, exports.contains)(child, element); }));
};
exports.contains = contains;
{
"name": "focus-lock",
"version": "0.11.1",
"version": "0.11.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