version bump and build

This commit is contained in:
Rick van Lieshout 2018-06-03 17:54:41 +02:00
parent cbbbd0422a
commit 0fe4c4c567
2 changed files with 8 additions and 6 deletions

View File

@ -528,15 +528,15 @@ var CookieConsent = function (_Component) {
}
_createClass(CookieConsent, [{
key: "componentWillMount",
value: function componentWillMount() {
key: "componentDidMount",
value: function componentDidMount() {
var _props = this.props,
cookieName = _props.cookieName,
debug = _props.debug;
// if debug desired or cookieName undefined
// if cookie undefined or debug
if (debug || _jsCookie2.default.get(cookieName) === undefined) {
if (_jsCookie2.default.get(cookieName) === undefined || debug) {
this.setState({ visible: true });
}
}

View File

@ -4,7 +4,7 @@
"name": "Rick van Lieshout",
"email": "info@rickvanlieshout.com"
},
"version": "1.1.3",
"version": "1.1.5",
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
"main": "build/index.js",
"dependencies": {
@ -12,7 +12,9 @@
"react": "^16.4.0"
},
"scripts": {
"build": "webpack"
"build": "webpack",
"patch": "npm --no-git-tag-version version patch",
"publish": "npm run patch && npm run build && git add -A && git commit -m 'version bump and build' && npm publish"
},
"repository": {
"type": "git",