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.8.1 to 0.9.0

1

dist/es2015/sibling.d.ts
interface FocusNextOptions {
scope?: HTMLElement | HTMLDocument;
cycle?: boolean;
focusOptions?: FocusOptions;
}

@@ -5,0 +6,0 @@ export declare const focusNextElement: (baseElement: Element, options?: FocusNextOptions) => void;

4

dist/es2015/sibling.js

@@ -33,3 +33,3 @@ import { getTabbableNodes } from './utils/DOMutils';

if (newTarget) {
newTarget.node.focus();
newTarget.node.focus(options.focusOptions);
}

@@ -43,4 +43,4 @@ };

if (newTarget) {
newTarget.node.focus();
newTarget.node.focus(options.focusOptions);
}
};
interface FocusNextOptions {
scope?: HTMLElement | HTMLDocument;
cycle?: boolean;
focusOptions?: FocusOptions;
}

@@ -5,0 +6,0 @@ export declare const focusNextElement: (baseElement: Element, options?: FocusNextOptions) => void;

@@ -35,3 +35,3 @@ "use strict";

if (newTarget) {
newTarget.node.focus();
newTarget.node.focus(options.focusOptions);
}

@@ -45,4 +45,4 @@ };

if (newTarget) {
newTarget.node.focus();
newTarget.node.focus(options.focusOptions);
}
};
{
"name": "focus-lock",
"version": "0.8.1",
"version": "0.9.0",
"description": "DOM trap for a focus",

@@ -46,4 +46,4 @@ "main": "dist/es5/index.js",

"devDependencies": {
"@theuiteam/lib-builder": "^0.0.11",
"@size-limit/preset-small-lib": "^2.1.6"
"@size-limit/preset-small-lib": "^2.1.6",
"@theuiteam/lib-builder": "^0.0.11"
},

@@ -55,3 +55,3 @@ "types": "dist/es5/index.d.ts",

"dependencies": {
"tslib": "^1.9.3"
"tslib": "^2.0.3"
},

@@ -58,0 +58,0 @@ "husky": {

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