react-resize-detector
Advanced tools
Comparing version 6.0.1-rc.5 to 6.1.0
@@ -269,3 +269,8 @@ import React,{cloneElement,isValidElement,createRef,PureComponent,forwardRef,Component,useRef,useEffect,useState}from'react';import {findDOMNode}from'react-dom';import rafSchd from'raf-schd';import debounce from'lodash.debounce';import throttle from'lodash.throttle';/*! ***************************************************************************** | ||
} | ||
setSize({ width: width, height: height }); | ||
setSize(function (prev) { | ||
if (prev.width === width && prev.height === height) { | ||
return prev; | ||
} | ||
return { width: width, height: height }; | ||
}); | ||
}); | ||
@@ -272,0 +277,0 @@ }; |
@@ -269,3 +269,8 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var React=require('react'),reactDom=require('react-dom'),rafSchd=require('raf-schd'),debounce=require('lodash.debounce'),throttle=require('lodash.throttle');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var React__default=/*#__PURE__*/_interopDefaultLegacy(React);var rafSchd__default=/*#__PURE__*/_interopDefaultLegacy(rafSchd);var debounce__default=/*#__PURE__*/_interopDefaultLegacy(debounce);var throttle__default=/*#__PURE__*/_interopDefaultLegacy(throttle);/*! ***************************************************************************** | ||
} | ||
setSize({ width: width, height: height }); | ||
setSize(function (prev) { | ||
if (prev.width === width && prev.height === height) { | ||
return prev; | ||
} | ||
return { width: width, height: height }; | ||
}); | ||
}); | ||
@@ -272,0 +277,0 @@ }; |
@@ -271,3 +271,8 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var React=require('react'),reactDom=require('react-dom'),rafSchd=require('raf-schd'),debounce=require('lodash.debounce'),throttle=require('lodash.throttle');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var React__default=/*#__PURE__*/_interopDefaultLegacy(React);var rafSchd__default=/*#__PURE__*/_interopDefaultLegacy(rafSchd);var debounce__default=/*#__PURE__*/_interopDefaultLegacy(debounce);var throttle__default=/*#__PURE__*/_interopDefaultLegacy(throttle);/*! ***************************************************************************** | ||
} | ||
setSize({ width: width, height: height }); | ||
setSize(function (prev) { | ||
if (prev.width === width && prev.height === height) { | ||
return prev; | ||
} | ||
return { width: width, height: height }; | ||
}); | ||
}); | ||
@@ -274,0 +279,0 @@ }; |
@@ -56,3 +56,3 @@ { | ||
"author": "Vitalii Maslianok <maslianok@gmail.com> (https://github.com/maslianok)", | ||
"version": "6.0.1-rc.5", | ||
"version": "6.1.0", | ||
"bugs": { | ||
@@ -59,0 +59,0 @@ "url": "https://github.com/maslianok/react-resize-detector/issues" |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
175101
1112
0