New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yamada-ui/use-focus-visible

Package Overview
Dependencies
Maintainers
0
Versions
576
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/use-focus-visible - npm Package Compare versions

Comparing version 1.1.14 to 1.1.15-dev-20250223070525

16

dist/index.js

@@ -82,6 +82,14 @@ "use client"

const { focus } = HTMLElement.prototype;
HTMLElement.prototype.focus = function customFocus(...args) {
hasEventBeforeFocus = true;
if (this) focus.apply(this, args);
};
if (process.env.NODE_ENV !== "test") {
Object.defineProperties(HTMLElement.prototype, {
focus: {
configurable: false,
value: function customFocus(...args) {
hasEventBeforeFocus = true;
if (this) focus.apply(this, args);
},
writable: false
}
});
}
document.addEventListener("keydown", onKeyboard, true);

@@ -88,0 +96,0 @@ document.addEventListener("keyup", onKeyboard, true);

{
"name": "@yamada-ui/use-focus-visible",
"version": "1.1.14",
"version": "1.1.15-dev-20250223070525",
"description": "Yamada UI useFocusVisible custom hook",

@@ -28,3 +28,3 @@ "keywords": [

"dependencies": {
"@yamada-ui/utils": "1.7.0"
"@yamada-ui/utils": "1.7.1-dev-20250223070525"
},

@@ -31,0 +31,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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