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

react-in-viewport

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-in-viewport - npm Package Compare versions

Comparing version 0.0.34 to 0.0.35

5

dist/es/index.js

@@ -138,6 +138,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

// handle stateless
// $FlowFixMe
this.node = findDOMNode(node);
this.initIntersectionObserver();
this.startObserver(this.node, this.observer);
this.node = node;
}

@@ -144,0 +141,0 @@ };

@@ -162,6 +162,3 @@ 'use strict';

// handle stateless
// $FlowFixMe
this.node = (0, _reactDom.findDOMNode)(node);
this.initIntersectionObserver();
this.startObserver(this.node, this.observer);
this.node = node;
}

@@ -168,0 +165,0 @@ }

2

package.json
{
"name": "react-in-viewport",
"version": "0.0.34",
"version": "0.0.35",
"description": "Track React component in viewport",

@@ -5,0 +5,0 @@ "author": "Roderick Hsiao <roderickhsiao@gmail.com>",

@@ -98,4 +98,7 @@ # React In Viewport Component

## Note
This library is currently using `ReactDOM.findDOMNode` to access DOM from React element. This method is deprecated in `StrictMode`, we will update the code and release a major version when React 17 is out.
## Who is using this component
- [Tinder](https://tinder.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