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

react-now-you-see-me

Package Overview
Dependencies
Maintainers
12
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-now-you-see-me - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

29

lib/in-view.js

@@ -93,14 +93,21 @@ 'use strict';

}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
var threshold = nextProps.threshold,
debounce = nextProps.debounce;
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps) {
var _props = this.props,
threshold = _props.threshold,
debounce = _props.debounce,
boundingLeft = _props.boundingLeft,
boundingRight = _props.boundingRight;
this.isInViewport = (0, _util.inViewport)({
threshold: threshold,
boundingLeft: this.props.boundingLeft,
boundingRight: this.props.boundingRight,
requireEntireElementInViewport: true
});
this.checkIsInViewDebounced = (0, _lodash2.default)(this.checkIsInView, debounce);
if (prevProps.threshold !== threshold || prevProps.boundingLeft !== boundingLeft || prevProps.boundingRight !== boundingRight) {
this.isInViewport = (0, _util.inViewport)({
threshold: threshold,
boundingLeft: boundingLeft,
boundingRight: boundingRight,
requireEntireElementInViewport: true
});
}
if (prevProps.debounce !== debounce) {
this.checkIsInViewDebounced = (0, _lodash2.default)(this.checkIsInView, debounce);
}
}

@@ -107,0 +114,0 @@ }, {

{
"name": "react-now-you-see-me",
"description": "A React component for determining when an element is within a given threshold of the viewport, horizontally.",
"version": "1.4.1",
"version": "1.4.2",
"contributors": [

@@ -6,0 +6,0 @@ "Cory Brown <oh.wise.man@gmail.com>",

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