mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-01-20 18:41:44 +01:00
version bump and build
This commit is contained in:
parent
cbbbd0422a
commit
0fe4c4c567
@ -528,15 +528,15 @@ var CookieConsent = function (_Component) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_createClass(CookieConsent, [{
|
_createClass(CookieConsent, [{
|
||||||
key: "componentWillMount",
|
key: "componentDidMount",
|
||||||
value: function componentWillMount() {
|
value: function componentDidMount() {
|
||||||
var _props = this.props,
|
var _props = this.props,
|
||||||
cookieName = _props.cookieName,
|
cookieName = _props.cookieName,
|
||||||
debug = _props.debug;
|
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 });
|
this.setState({ visible: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "Rick van Lieshout",
|
"name": "Rick van Lieshout",
|
||||||
"email": "info@rickvanlieshout.com"
|
"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.",
|
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -12,7 +12,9 @@
|
|||||||
"react": "^16.4.0"
|
"react": "^16.4.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user