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

vue-no-ssr

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-no-ssr - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

5

dist/vue-no-ssr.common.js
/*!
* 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(

4

dist/vue-no-ssr.min.js
/*!
* 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)
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