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

@zag-js/aria-hidden

Package Overview
Dependencies
Maintainers
1
Versions
725
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/aria-hidden - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

10

dist/index.js

@@ -25,3 +25,3 @@ 'use strict';

var walkTreeOutside = (originalTarget, props) => {
const { parentNode, markerName, controlAttribute, explicitBooleanValue } = props;
const { parentNode, markerName, controlAttribute} = props;
const targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);

@@ -50,3 +50,3 @@ markerMap[markerName] || (markerMap[markerName] = /* @__PURE__ */ new WeakMap());

const attr = node.getAttribute(controlAttribute);
const alreadyHidden = explicitBooleanValue ? attr === "true" : attr !== null && attr !== "false";
const alreadyHidden = attr === "true" ;
const counterValue = (counterMap.get(node) || 0) + 1;

@@ -64,3 +64,3 @@ const markerValue = (markerCounter.get(node) || 0) + 1;

if (!alreadyHidden) {
node.setAttribute(controlAttribute, explicitBooleanValue ? "true" : "");
node.setAttribute(controlAttribute, "true" );
}

@@ -112,5 +112,3 @@ } catch (e) {

markerName,
controlAttribute: "aria-hidden",
explicitBooleanValue: true
});
controlAttribute: "aria-hidden"});
};

@@ -117,0 +115,0 @@

2

package.json
{
"name": "@zag-js/aria-hidden",
"version": "1.2.1",
"version": "1.3.0",
"description": "Hide targets from screen readers",

@@ -5,0 +5,0 @@ "keywords": [

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