Comparing version 1.0.1 to 1.1.1
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="1.1.1"></a> | ||
## [1.1.1](https://github.com/Developmint/vue-if-bot/compare/v1.1.0...v1.1.1) (2018-05-23) | ||
<a name="1.1.0"></a> | ||
# [1.1.0](https://github.com/Developmint/vue-if-bot/compare/v1.0.1...v1.1.0) (2018-05-23) | ||
### Features | ||
* remove empty div for bot ([4ffb9b1](https://github.com/Developmint/vue-if-bot/commit/4ffb9b1)) | ||
<a name="1.0.1"></a> | ||
@@ -7,0 +22,0 @@ ## [1.0.1](https://github.com/Developmint/vue-if-bot/compare/v1.0.0...v1.0.1) (2018-05-22) |
@@ -13,3 +13,3 @@ 'use strict'; | ||
var shouldShow = invert ? isBot : !isBot; | ||
return h('div', {}, shouldShow ? children : [h('div')]); | ||
return shouldShow ? h('div', {}, children) : ''; | ||
} | ||
@@ -16,0 +16,0 @@ }; |
@@ -11,3 +11,3 @@ var index = { | ||
var shouldShow = invert ? isBot : !isBot; | ||
return h('div', {}, shouldShow ? children : [h('div')]); | ||
return shouldShow ? h('div', {}, children) : ''; | ||
} | ||
@@ -14,0 +14,0 @@ }; |
@@ -17,3 +17,3 @@ (function (global, factory) { | ||
var shouldShow = invert ? isBot : !isBot; | ||
return h('div', {}, shouldShow ? children : [h('div')]); | ||
return shouldShow ? h('div', {}, children) : ''; | ||
} | ||
@@ -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,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")])}}}); | ||
!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):""}}}); | ||
//# sourceMappingURL=vue-if-bot.min.js.map |
{ | ||
"name": "vue-if-bot", | ||
"version": "1.0.1", | ||
"version": "1.1.1", | ||
"description": "Hide stuff from bots (especially cookie consents)", | ||
@@ -5,0 +5,0 @@ "author": "Alexander Lichter <npm@lichter.io>", |
@@ -8,4 +8,4 @@ export default { | ||
return h('div', {}, shouldShow ? children : [h('div')]) | ||
return shouldShow ? h('div', {}, children) : '' | ||
} | ||
} |
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
11606