Comparing version 0.7.2 to 0.7.3
/*! | ||
* inferno-component v0.7.1 | ||
* inferno-component v0.7.3 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
/*! | ||
* inferno-create-element v0.7.1 | ||
* inferno-create-element v0.7.3 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
/*! | ||
* inferno-dom v0.7.1 | ||
* inferno-dom v0.7.3 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
/*! | ||
* inferno-server v0.7.1 | ||
* inferno-server v0.7.3 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -129,5 +129,7 @@ * Released under the MPL-2.0 License. | ||
} else { | ||
return renderNode(children, context); | ||
return renderNode(children, context) || ''; | ||
} | ||
} | ||
return ''; | ||
} | ||
@@ -164,3 +166,3 @@ | ||
return { | ||
v: '<' + tag + (outputAttrs.length > 0 ? ' ' + outputAttrs.join(' ') : '') + '>' + (renderChildren(node.children, context) || '') + '</' + tag + '>' | ||
v: '<' + tag + (outputAttrs.length > 0 ? ' ' + outputAttrs.join(' ') : '') + '>' + renderChildren(node.children, context) + '</' + tag + '>' | ||
}; | ||
@@ -167,0 +169,0 @@ }(); |
@@ -1,1 +0,1 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.InfernoServer=t()}(this,function(){"use strict";function n(n,e){if(!o(n)){var r=t(n);(r&&n.length>0||!r)&&(e?e.children=n:e={children:n})}return e}function t(n){return n instanceof Array}function e(n){return void 0!==n.prototype.render}function r(n){return"string"==typeof n||"number"==typeof n}function o(n){return void 0===n||null===n}function i(n){return void 0===n||null===n||n===!1}function u(n){return"function"==typeof n}function f(t,r,i,u){if(r=n(i,r),e(t)){var f=new t(r),c=f.getChildContext();o(c)||(u=d.extends({},u,c)),f.context=u,f._pendingSetState=!0,f.componentWillMount();var p=f.shouldComponentUpdate();if(p){f.componentWillUpdate();var l=f._pendingState,s=f.state;f.state=d.extends({},s,l)}var v=f.render();return f._pendingSetState=!1,a(v,u)}var y=t(r);return a(y,u)}function c(n,e){if(n&&t(n)){for(var o=[],u=!1,f=0;f<n.length;f++){var c=n[f];r(c)?(u===!0&&o.push("<!-- -->"),o.push(c),u=!0):(u=!1,o.push(a(c,e)))}return o.join("")}return i(n)?void 0:r(n)?n:a(n,e)}function a(n,t){if(!i(n)){var e=function(){var e=n.tag,r=[];if(u(e))return{v:f(e,n.attrs,n.children,t)};o(n.className)||r.push('class="'+n.className+'"');var i=n.attrs;return o(i)||!function(){var n=Object.keys(i);n.forEach(function(t,e){var o=n[e];r.push(o+'="'+i[o]+'"')})}(),{v:"<"+e+(r.length>0?" "+r.join(" "):"")+">"+(c(n.children,t)||"")+"</"+e+">"}}();if("object"===("undefined"==typeof e?"undefined":d.typeof(e)))return e.v}}function p(n){return a(n,null)}var d={};d.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},d.extends=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n};var l={renderToString:p};return l}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.InfernoServer=t()}(this,function(){"use strict";function n(n,e){if(!o(n)){var r=t(n);(r&&n.length>0||!r)&&(e?e.children=n:e={children:n})}return e}function t(n){return n instanceof Array}function e(n){return void 0!==n.prototype.render}function r(n){return"string"==typeof n||"number"==typeof n}function o(n){return void 0===n||null===n}function u(n){return void 0===n||null===n||n===!1}function i(n){return"function"==typeof n}function f(t,r,u,i){if(r=n(u,r),e(t)){var f=new t(r),c=f.getChildContext();o(c)||(i=l.extends({},i,c)),f.context=i,f._pendingSetState=!0,f.componentWillMount();var p=f.shouldComponentUpdate();if(p){f.componentWillUpdate();var s=f._pendingState,d=f.state;f.state=l.extends({},d,s)}var v=f.render();return f._pendingSetState=!1,a(v,i)}var y=t(r);return a(y,i)}function c(n,e){if(n&&t(n)){for(var o=[],i=!1,f=0;f<n.length;f++){var c=n[f];r(c)?(i===!0&&o.push("<!-- -->"),o.push(c),i=!0):(i=!1,o.push(a(c,e)))}return o.join("")}return u(n)?"":r(n)?n:a(n,e)||""}function a(n,t){if(!u(n)){var e=function(){var e=n.tag,r=[];if(i(e))return{v:f(e,n.attrs,n.children,t)};o(n.className)||r.push('class="'+n.className+'"');var u=n.attrs;return o(u)||!function(){var n=Object.keys(u);n.forEach(function(t,e){var o=n[e];r.push(o+'="'+u[o]+'"')})}(),{v:"<"+e+(r.length>0?" "+r.join(" "):"")+">"+c(n.children,t)+"</"+e+">"}}();if("object"===("undefined"==typeof e?"undefined":l.typeof(e)))return e.v}}function p(n){return a(n,null)}var l={};l.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},l.extends=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n};var s={renderToString:p};return s}); |
/*! | ||
* inferno-test-utils v0.7.1 | ||
* inferno-test-utils v0.7.3 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
/*! | ||
* inferno v0.7.1 | ||
* inferno v0.7.3 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
{ | ||
"name": "inferno", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"license": "MPL-2.0", | ||
@@ -5,0 +5,0 @@ "description": "An extremely fast, isomorphic JavaScript library for building modern user interfaces", |
117188
2565