Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-if-bot

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-if-bot - npm Package Compare versions

Comparing version 1.0.1 to 1.1.1

15

CHANGELOG.md

@@ -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)

2

dist/vue-if-bot.cjs.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc