react-now-you-see-me
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -99,3 +99,6 @@ 'use strict'; | ||
this.isInViewport = (0, _util.inViewport)({ threshold: threshold, requireEntireElementInViewport: true }); | ||
this.isInViewport = (0, _util.inViewport)({ | ||
threshold: threshold, | ||
requireEntireElementInViewport: true | ||
}); | ||
this.checkIsInViewDebounced = (0, _lodash2.default)(this.checkIsInView, debounce); | ||
@@ -102,0 +105,0 @@ } |
@@ -64,3 +64,4 @@ 'use strict'; | ||
left: isNaN(boundingLeft) ? horizMin : boundingLeft, | ||
right: isNaN(boundingRight) ? horizMax : boundingRight }, | ||
right: isNaN(boundingRight) ? horizMax : boundingRight | ||
}, | ||
fullyContained: requireEntireElementInViewport | ||
@@ -67,0 +68,0 @@ }); |
{ | ||
"name": "react-now-you-see-me", | ||
"description": "A react component for determining when it is within a given threshold of the viewport", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"author": "Cory Brown <oh.wise.man@gmail.com>", | ||
@@ -15,4 +15,6 @@ "license": "MIT", | ||
"doc": "webpack-cli -p --config webpack.config.babel.js", | ||
"format": "prettier --write dev.js \"src/**/*.js\"", | ||
"postbuild": "npm run doc", | ||
"prebuild": "npm t", | ||
"precommit": "lint-staged", | ||
"preversion": "npm run build", | ||
@@ -42,3 +44,3 @@ "test": "npm run test:lint && npm run test:jest", | ||
"babel-jest": "22.4.1", | ||
"babel-loader": "7.1.3", | ||
"babel-loader": "7.1.4", | ||
"babel-plugin-transform-class-properties": "6.24.1", | ||
@@ -53,20 +55,24 @@ "babel-plugin-transform-react-remove-prop-types": "0.4.13", | ||
"enzyme-to-json": "3.3.1", | ||
"eslint": "4.18.1", | ||
"eslint-config-jane": "0.11.1", | ||
"eslint": "4.18.2", | ||
"eslint-config-jane": "1.1.0", | ||
"eslint-plugin-babel": "4.1.2", | ||
"eslint-plugin-import": "2.9.0", | ||
"eslint-plugin-jest": "21.12.2", | ||
"eslint-plugin-jest": "21.13.0", | ||
"eslint-plugin-jsx-a11y": "6.0.3", | ||
"eslint-plugin-prettier": "2.6.0", | ||
"eslint-plugin-promise": "3.6.0", | ||
"eslint-plugin-react": "7.7.0", | ||
"eslint-plugin-unicorn": "4.0.2", | ||
"husky": "0.14.3", | ||
"jest": "22.4.2", | ||
"marked": "0.3.16", | ||
"prop-types": "15.6.0", | ||
"lint-staged": "7.0.0", | ||
"marked": "0.3.17", | ||
"prettier": "1.11.1", | ||
"prop-types": "15.6.1", | ||
"react": "16.2.0", | ||
"react-addons-test-utils": "15.6.2", | ||
"react-dom": "16.2.0", | ||
"webpack": "4.0.0", | ||
"webpack-cli": "2.0.9", | ||
"webpack-dev-server": "3.0.0" | ||
"webpack": "4.1.1", | ||
"webpack-cli": "2.0.10", | ||
"webpack-dev-server": "3.1.0" | ||
}, | ||
@@ -103,2 +109,13 @@ "jest": { | ||
}, | ||
"lint-staged": { | ||
"linters": { | ||
"*.js": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
"ignore": [ | ||
"**/docs/*.js" | ||
] | ||
} | ||
}, | ||
"peerDependencies": { | ||
@@ -105,0 +122,0 @@ "react": ">=16.0.0", |
13109
167
35