react-now-you-see-me
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -30,2 +30,3 @@ 'use strict'; | ||
var onWindowScroll = (0, _util.on)('scroll', { capture: true, passive: true })(window); | ||
// eslint-disable-next-line no-undef | ||
var isProd = process && process.env && process.env.NODE_ENV === 'production'; | ||
@@ -57,2 +58,3 @@ | ||
if (threshold > 10 && !isProd) { | ||
// eslint-disable-next-line no-console | ||
console.warn('High InView threshold: "' + threshold + '". Threshold is multiplied by the viewport dimensions!'); | ||
@@ -59,0 +61,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.3", | ||
"version": "1.4.4", | ||
"contributors": [ | ||
@@ -55,12 +55,4 @@ "Cory Brown <oh.wise.man@gmail.com>", | ||
"dom-testing-library": "2.5.0", | ||
"eslint": "4.19.1", | ||
"eslint-config-jane": "2.1.1", | ||
"eslint-plugin-babel": "5.1.0", | ||
"eslint-plugin-import": "2.12.0", | ||
"eslint-plugin-jest": "21.17.0", | ||
"eslint-plugin-jsx-a11y": "6.0.3", | ||
"eslint-plugin-prettier": "2.6.0", | ||
"eslint-plugin-promise": "3.8.0", | ||
"eslint-plugin-react": "7.9.1", | ||
"eslint-plugin-unicorn": "4.0.3", | ||
"eslint": "5.1.0", | ||
"eslint-plugin-jane": "0.1.0", | ||
"husky": "0.14.3", | ||
@@ -67,0 +59,0 @@ "jest": "23.1.0", |
25
177
13179