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

focus-trap

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-trap - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

4

index.js

@@ -29,3 +29,5 @@ var tabbable = require('tabbable');

}
return node;
}
if (typeof config.initialFocus === 'string') {

@@ -37,3 +39,3 @@ node = document.querySelector(config.initialFocus);

if (!node) {
throw new Error('The `initialFocus` selector you passed refers to no known node');
throw new Error('The `initialFocus` selector you passed referred to no known node');
}

@@ -40,0 +42,0 @@ return node;

{
"name": "focus-trap",
"version": "0.3.1",
"version": "0.3.2",
"description": "Trap focus within a DOM node.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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