vue-no-ssr
Advanced tools
Comparing version 0.2.0 to 0.2.1
/*! | ||
* vue-no-ssr v0.2.0 | ||
* vue-no-ssr v0.2.1 | ||
* (c) 2017-present egoist <0x142857@gmail.com> | ||
@@ -23,2 +23,3 @@ * Released under the MIT License. | ||
process.env.NODE_ENV === 'development' && | ||
this.$slots.default && | ||
this.$slots.default.length > 1 | ||
@@ -28,3 +29,3 @@ ) { | ||
} | ||
return this.$slots.default[0] | ||
return this.$slots.default && this.$slots.default[0] | ||
} | ||
@@ -31,0 +32,0 @@ return h( |
/*! | ||
* vue-no-ssr v0.2.0 | ||
* vue-no-ssr v0.2.1 | ||
* (c) 2017-present egoist <0x142857@gmail.com> | ||
@@ -27,2 +27,3 @@ * Released under the MIT License. | ||
"production" === 'development' && | ||
this.$slots.default && | ||
this.$slots.default.length > 1 | ||
@@ -32,3 +33,3 @@ ) { | ||
} | ||
return this.$slots.default[0] | ||
return this.$slots.default && this.$slots.default[0] | ||
} | ||
@@ -35,0 +36,0 @@ return h( |
/*! | ||
* vue-no-ssr v0.2.0 | ||
* vue-no-ssr v0.2.1 | ||
* (c) 2017-present egoist <0x142857@gmail.com> | ||
* Released under the MIT License. | ||
*/ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.NoSSR=n()}(this,function(){"use strict";return{name:"no-ssr",props:["placeholder"],data:function(){return{canRender:!1}},mounted:function(){this.canRender=!0},render:function(e){return this.canRender?this.$slots.default[0]:e("div",{class:["no-ssr-placeholder"]},this.placeholder)}}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.NoSSR=n()}(this,function(){"use strict";return{name:"no-ssr",props:["placeholder"],data:function(){return{canRender:!1}},mounted:function(){this.canRender=!0},render:function(e){return this.canRender?this.$slots.default&&this.$slots.default[0]:e("div",{class:["no-ssr-placeholder"]},this.placeholder)}}}); | ||
//# sourceMappingURL=vue-no-ssr.min.js.map |
{ | ||
"name": "vue-no-ssr", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Vue component to wrap non SSR friendly components", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -93,2 +93,2 @@ # vue-no-ssr | ||
> [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin) | ||
> [egoist.moe](https://egoist.moe) · GitHub [@egoist](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily) |
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
6825
89