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

@zag-js/auto-resize

Package Overview
Dependencies
Maintainers
0
Versions
738
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/auto-resize - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

14

dist/index.js

@@ -49,6 +49,8 @@ 'use strict';

const resize = () => {
el.style.height = "auto";
const borderTopWidth = parseInt(style.borderTopWidth, 10);
const borderBottomWidth = parseInt(style.borderBottomWidth, 10);
el.style.height = `${el.scrollHeight + borderTopWidth + borderBottomWidth}px`;
requestAnimationFrame(() => {
el.style.height = "auto";
const borderTopWidth = parseInt(style.borderTopWidth, 10);
const borderBottomWidth = parseInt(style.borderBottomWidth, 10);
el.style.height = `${el.scrollHeight + borderTopWidth + borderBottomWidth}px`;
});
};

@@ -65,3 +67,5 @@ el.addEventListener("input", resize);

});
const resizeObserver = new win.ResizeObserver(() => resize());
const resizeObserver = new win.ResizeObserver(() => {
requestAnimationFrame(() => resize());
});
resizeObserver.observe(el);

@@ -68,0 +72,0 @@ const attrObserver = new win.MutationObserver(() => resize());

{
"name": "@zag-js/auto-resize",
"version": "1.0.2",
"version": "1.1.0",
"description": "Autoresize utilities for the web",

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

"dependencies": {
"@zag-js/dom-query": "1.0.2"
"@zag-js/dom-query": "1.1.0"
},

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

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