react-touch-carousel
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -321,2 +321,10 @@ 'use strict'; | ||
}, { | ||
key: 'componentDidUpdate', | ||
value: function componentDidUpdate(prevProps) { | ||
if (prevProps.autoplay !== this.props.autoplay) { | ||
this.stopAutoplay(); | ||
this.autoplayIfEnabled(); | ||
} | ||
} | ||
}, { | ||
key: 'componentWillUnmount', | ||
@@ -323,0 +331,0 @@ value: function componentWillUnmount() { |
{ | ||
"name": "react-touch-carousel", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Micro carousel framework for React.JS", | ||
@@ -48,2 +48,4 @@ "main": "lib/index.js", | ||
"html-webpack-plugin": "2.30.1", | ||
"husky": "^1.2.0", | ||
"lint-staged": "^8.1.0", | ||
"raw-loader": "0.5.1", | ||
@@ -75,3 +77,15 @@ "react": "16.6.3", | ||
"babel": "inherit" | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"npm run lint:fix", | ||
"git add" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged", | ||
"pre-push": "npm run test" | ||
} | ||
} | ||
} |
35065
624
24