Comparing version 1.1.1 to 1.1.2
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.1.2"></a> | ||
## [1.1.2](https://github.com/Developmint/vue-if-bot/compare/v1.1.1...v1.1.2) (2018-05-23) | ||
### Bug Fixes | ||
* revert "feat: remove empty div for bot" ([6178f68](https://github.com/Developmint/vue-if-bot/commit/6178f68)) | ||
<a name="1.1.1"></a> | ||
@@ -7,0 +17,0 @@ ## [1.1.1](https://github.com/Developmint/vue-if-bot/compare/v1.1.0...v1.1.1) (2018-05-23) |
@@ -13,3 +13,3 @@ 'use strict'; | ||
var shouldShow = invert ? isBot : !isBot; | ||
return shouldShow ? h('div', {}, children) : ''; | ||
return h('div', {}, shouldShow ? children : [h('div')]); | ||
} | ||
@@ -16,0 +16,0 @@ }; |
@@ -11,3 +11,3 @@ var index = { | ||
var shouldShow = invert ? isBot : !isBot; | ||
return shouldShow ? h('div', {}, children) : ''; | ||
return h('div', {}, shouldShow ? children : [h('div')]); | ||
} | ||
@@ -14,0 +14,0 @@ }; |
@@ -17,3 +17,3 @@ (function (global, factory) { | ||
var shouldShow = invert ? isBot : !isBot; | ||
return shouldShow ? h('div', {}, children) : ''; | ||
return h('div', {}, shouldShow ? children : [h('div')]); | ||
} | ||
@@ -20,0 +20,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.ifBot=t()}(this,function(){"use strict";return{functional:!0,render:function(e,t){var r=t.children,n=t.props,o=n.regex,i=n.invert,f=o||/bot|googlebot|crawler|spider|robot|crawling/i,s=!!process.server||navigator.userAgent&&f.test(navigator.userAgent);return(i?s:!s)?e("div",{},r):""}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.ifBot=t()}(this,function(){"use strict";return{functional:!0,render:function(e,t){var r=t.children,n=t.props,o=n.regex,i=n.invert,d=o||/bot|googlebot|crawler|spider|robot|crawling/i,f=!!process.server||navigator.userAgent&&d.test(navigator.userAgent);return e("div",{},(i?f:!f)?r:[e("div")])}}}); | ||
//# sourceMappingURL=vue-if-bot.min.js.map |
{ | ||
"name": "vue-if-bot", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Hide stuff from bots (especially cookie consents)", | ||
@@ -23,3 +23,3 @@ "author": "Alexander Lichter <npm@lichter.io>", | ||
"build": "bili --format cjs,es,umd,umd-min --moduleName ifBot --no-babel.babelrc", | ||
"release": "standard-version && git push --follow-tags && npm publish", | ||
"release": "npm run build && standard-version && git push --follow-tags && npm publish", | ||
"commitlint": "commitlint -e $GIT_PARAMS", | ||
@@ -26,0 +26,0 @@ "coverage": "codecov" |
@@ -8,4 +8,4 @@ export default { | ||
return shouldShow ? h('div', {}, children) : '' | ||
return h('div', {}, shouldShow ? children : [h('div')]) | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11921