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

@solid-primitives/resize-observer

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/resize-observer - npm Package Compare versions

Comparing version 2.0.21 to 2.0.22

5

dist/index.js

@@ -72,6 +72,3 @@ import { makeEventListener } from '@solid-primitives/event-listener';

);
const ro = new ResizeObserver(([e]) => {
const { width, height } = e.contentRect;
setSize({ width, height });
});
const ro = new ResizeObserver(([e]) => setSize(getElementSize(e.target)));
onCleanup(() => ro.disconnect());

@@ -78,0 +75,0 @@ if (isFn) {

2

package.json
{
"name": "@solid-primitives/resize-observer",
"version": "2.0.21",
"version": "2.0.22",
"description": "Reactive primitives for observing resizing of HTML elements.",

@@ -5,0 +5,0 @@ "author": "Moshe Udimar",

@@ -147,2 +147,4 @@ <p>

It uses `ResizeObserver` under the hood—to observe when the element size changes—and `getBoundingClientRect` to get the current size.
### How to use it

@@ -149,0 +151,0 @@

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