vue-no-ssr
Advanced tools
Comparing version 0.1.2 to 0.1.3
/*! | ||
* vue-no-ssr v0.1.2 | ||
* vue-no-ssr v0.1.3 | ||
* (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(this.placeholder) |
/*! | ||
* vue-no-ssr v0.1.2 | ||
* vue-no-ssr v0.1.3 | ||
* (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(this.placeholder) |
/*! | ||
* vue-no-ssr v0.1.2 | ||
* vue-no-ssr v0.1.3 | ||
* (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(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(this.placeholder)}}}); | ||
//# sourceMappingURL=vue-no-ssr.min.js.map |
{ | ||
"name": "vue-no-ssr", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Vue component to wrap non SSR friendly components", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
6561
77