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

rc-resize-observer

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-resize-observer - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

4

es/index.d.ts

@@ -17,2 +17,4 @@ import * as React from 'react';

width: number;
offsetHeight: number;
offsetWidth: number;
}

@@ -28,2 +30,4 @@ declare type RefNode = React.ReactInstance | HTMLElement | null;

height: number;
offsetHeight: number;
offsetWidth: number;
};

@@ -30,0 +34,0 @@ componentDidMount(): void;

10

es/index.js

@@ -30,3 +30,5 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";

width: 0,
height: 0
height: 0,
offsetHeight: 0,
offsetWidth: 0
};

@@ -53,6 +55,8 @@

if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight) {
if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight || _this.state.offsetWidth !== offsetWidth || _this.state.offsetHeight !== offsetHeight) {
var size = {
width: fixedWidth,
height: fixedHeight
height: fixedHeight,
offsetWidth: offsetWidth,
offsetHeight: offsetHeight
};

@@ -59,0 +63,0 @@

@@ -17,2 +17,4 @@ import * as React from 'react';

width: number;
offsetHeight: number;
offsetWidth: number;
}

@@ -28,2 +30,4 @@ declare type RefNode = React.ReactInstance | HTMLElement | null;

height: number;
offsetHeight: number;
offsetWidth: number;
};

@@ -30,0 +34,0 @@ componentDidMount(): void;

@@ -51,3 +51,5 @@ "use strict";

width: 0,
height: 0
height: 0,
offsetHeight: 0,
offsetWidth: 0
};

@@ -74,6 +76,8 @@

if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight) {
if (_this.state.width !== fixedWidth || _this.state.height !== fixedHeight || _this.state.offsetWidth !== offsetWidth || _this.state.offsetHeight !== offsetHeight) {
var size = {
width: fixedWidth,
height: fixedHeight
height: fixedHeight,
offsetWidth: offsetWidth,
offsetHeight: offsetHeight
};

@@ -80,0 +84,0 @@

{
"name": "rc-resize-observer",
"version": "0.2.4",
"version": "0.2.5",
"description": "Resize observer for React",

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

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