Comparing version 0.7.5 to 0.7.6
/*! | ||
* inferno-component v0.7.4 | ||
* inferno-component v0.7.6 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
/*! | ||
* inferno-create-element v0.7.4 | ||
* inferno-create-element v0.7.6 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -219,4 +219,4 @@ * Released under the MPL-2.0 License. | ||
vNode.attrs = attrsAndEvents.attrs || null; | ||
vNode.events = attrsAndEvents.events || null; | ||
vNode.hooks = attrsAndEvents.hooks || null; | ||
vNode.events = attrsAndEvents.events || events; | ||
vNode.hooks = attrsAndEvents.hooks || hooks; | ||
vNode.children = children === void 0 ? null : children; | ||
@@ -223,0 +223,0 @@ vNode.key = key === void 0 ? null : key; |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.InfernoCreateElement=n()}(this,function(){"use strict";function t(t){return t instanceof Array}function n(t){return void 0===t||null===t}function e(t){return null===t||t===!1||void 0===t}function o(t){return"function"==typeof t}function l(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function r(t){return"onCreated"===t||"onAttached"===t||"onWillDetach"===t||"onWillUpdate"===t||"onDidUpdate"===t}function i(t){return"onComponentWillMount"===t||"onComponentDidMount"===t||"onComponentWillUnmount"===t||"onComponentShouldUpdate"===t||"onComponentWillUpdate"===t||"onComponentDidUpdate"===t}function u(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function s(t){return new u(t)}function a(e,u){var s=null,a=null,f=null,c=null,h=null;if(!n(e)){if(t(e))return e;for(var d in e)"className"===d?c=e[d]:"style"===d?h=e[d]:r(d)&&!o(u)?(n(a)&&(a={}),a[d.substring(2).toLowerCase()]=e[d],delete e[d]):l(d)&&!o(u)?(n(s)&&(s={}),s[d.toLowerCase()]=e[d],delete e[d]):i(d)&&o(u)?(n(a)&&(a={}),a["c"+d.substring(3)]=e[d],delete e[d]):o(u)?f=e:(n(f)&&(f={}),f[d]=e[d])}return{attrs:f,events:s,className:c,style:h,hooks:a}}function f(o){var l=o.tag,r=o.attrs,i=o.children,u=o.className,f=o.style;o.events,o.hooks;if(void 0===l&&!n(r)&&!r.tpl&&!n(i)&&0===i.length)return null;var h=n(r)||n(r.key)?void 0:r.key;n(i)||0!==i.length?e(i)||(i=c(t(i)&&1===i.length?i[0]:i)):i=null,void 0!==h&&delete r.key;var d=a(r,l),y=s();return u=u||d.className,f=f||d.style,y.tag=l||null,y.attrs=d.attrs||null,y.events=d.events||null,y.hooks=d.hooks||null,y.children=void 0===i?null:i,y.key=void 0===h?null:h,y.className=void 0===u?null:u,y.style=void 0===f?null:f,y}function c(e){var o=!n(e);if(o&&t(e)){for(var l=[],r=0;r<e.length;r++){var i=e[r];n(i)||"object"!==("undefined"==typeof i?"undefined":d.typeof(i))?l.push(i):t(i)?i.length>0?l.push(c(i)):l.push(null):l.push(f(i))}return l}return o&&"object"===("undefined"==typeof e?"undefined":d.typeof(e))&&void 0===e.dom?f(e):e}function h(t,n){for(var e=arguments.length,o=Array(e>2?e-2:0),l=2;e>l;l++)o[l-2]=arguments[l];return f({tag:t,attrs:n,children:o})}var d={};return d.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},d.classCallCheck=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},d.createClass=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),d.extends=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},u.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}},h}); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.InfernoCreateElement=n()}(this,function(){"use strict";function t(t){return t instanceof Array}function n(t){return void 0===t||null===t}function e(t){return null===t||t===!1||void 0===t}function o(t){return"function"==typeof t}function r(t){return"o"===t[0]&&"n"===t[1]&&t.length>3}function l(t){return"onCreated"===t||"onAttached"===t||"onWillDetach"===t||"onWillUpdate"===t||"onDidUpdate"===t}function i(t){return"onComponentWillMount"===t||"onComponentDidMount"===t||"onComponentWillUnmount"===t||"onComponentShouldUpdate"===t||"onComponentWillUpdate"===t||"onComponentDidUpdate"===t}function u(t){this.bp=t,this.dom=null,this.instance=null,this.tag=null,this.children=null,this.style=null,this.className=null,this.attrs=null,this.events=null,this.hooks=null,this.key=null,this.clipData=null}function s(t){return new u(t)}function a(e,u){var s=null,a=null,f=null,c=null,h=null;if(!n(e)){if(t(e))return e;for(var d in e)"className"===d?c=e[d]:"style"===d?h=e[d]:l(d)&&!o(u)?(n(a)&&(a={}),a[d.substring(2).toLowerCase()]=e[d],delete e[d]):r(d)&&!o(u)?(n(s)&&(s={}),s[d.toLowerCase()]=e[d],delete e[d]):i(d)&&o(u)?(n(a)&&(a={}),a["c"+d.substring(3)]=e[d],delete e[d]):o(u)?f=e:(n(f)&&(f={}),f[d]=e[d])}return{attrs:f,events:s,className:c,style:h,hooks:a}}function f(o){var r=o.tag,l=o.attrs,i=o.children,u=o.className,f=o.style,h=o.events,d=o.hooks;if(void 0===r&&!n(l)&&!l.tpl&&!n(i)&&0===i.length)return null;var y=n(l)||n(l.key)?void 0:l.key;n(i)||0!==i.length?e(i)||(i=c(t(i)&&1===i.length?i[0]:i)):i=null,void 0!==y&&delete l.key;var p=a(l,r),v=s();return u=u||p.className,f=f||p.style,v.tag=r||null,v.attrs=p.attrs||null,v.events=p.events||h,v.hooks=p.hooks||d,v.children=void 0===i?null:i,v.key=void 0===y?null:y,v.className=void 0===u?null:u,v.style=void 0===f?null:f,v}function c(e){var o=!n(e);if(o&&t(e)){for(var r=[],l=0;l<e.length;l++){var i=e[l];n(i)||"object"!==("undefined"==typeof i?"undefined":d.typeof(i))?r.push(i):t(i)?i.length>0?r.push(c(i)):r.push(null):r.push(f(i))}return r}return o&&"object"===("undefined"==typeof e?"undefined":d.typeof(e))&&void 0===e.dom?f(e):e}function h(t,n){for(var e=arguments.length,o=Array(e>2?e-2:0),r=2;e>r;r++)o[r-2]=arguments[r];return f({tag:t,attrs:n,children:o})}var d={};return d.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},d.classCallCheck=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},d.createClass=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),d.extends=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},u.prototype={setAttrs:function(t){return this.attrs=t,this},setTag:function(t){return this.tag=t,this},setStyle:function(t){return this.style=t,this},setClassName:function(t){return this.className=t,this},setChildren:function(t){return this.children=t,this},setHooks:function(t){return this.hooks=t,this},setEvents:function(t){return this.events=t,this},setKey:function(t){return this.key=t,this}},h}); |
/*! | ||
* inferno-dom v0.7.4 | ||
* inferno-dom v0.7.6 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
/*! | ||
* inferno-server v0.7.4 | ||
* inferno-server v0.7.6 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
@@ -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 u(n){return null===n||n===!1||void 0===n}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=p.extends({},i,c)),f.context=i,f._pendingSetState=!0,f.componentWillMount();var l=f.render();return f._pendingSetState=!1,a(l,i)}var s=t(r);return a(s,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":p.typeof(e)))return e.v}}function l(n){return a(n,null)}var p={};p.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},p.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:l};return s}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.InfernoServer=e()}(this,function(){"use strict";function n(n,t){if(!o(n)){var r=e(n);(r&&n.length>0||!r)&&(t?t.children=n:t={children:n})}return t}function e(n){return n instanceof Array}function t(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 null===n||n===!1||void 0===n}function i(n){return"function"==typeof n}function f(e,r,u,i){if(r=n(u,r),t(e)){var f=new e(r),c=f.getChildContext();o(c)||(i=s.extends({},i,c)),f.context=i,f._pendingSetState=!0,f.componentWillMount();var l=f.render();return f._pendingSetState=!1,a(l,i)}var p=e(r);return a(p,i)}function c(n,t){if(n&&e(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,t)))}return o.join("")}return u(n)?"":r(n)?n:a(n,t)||""}function a(n,e){if(!u(n)){var t=function(){var t=n.tag,r=[];if(i(t))return{v:f(t,n.attrs,n.children,e)};o(n.className)||r.push('class="'+n.className+'"');var u=n.attrs;return o(u)||!function(){var n=Object.keys(u);n.forEach(function(e,t){var o=n[t];r.push(o+'="'+u[o]+'"')})}(),{v:"<"+t+(r.length>0?" "+r.join(" "):"")+">"+c(n.children,e)+"</"+t+">"}}();if("object"===("undefined"==typeof t?"undefined":s.typeof(t)))return t.v}}function l(n){return a(n,null)}var s={};s.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},s.classCallCheck=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},s.createClass=function(){function n(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),s.extends=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};var p={renderToString:l};return p}); |
/*! | ||
* inferno-test-utils v0.7.4 | ||
* inferno-test-utils v0.7.6 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
/*! | ||
* inferno v0.7.4 | ||
* inferno v0.7.6 | ||
* (c) 2016 Dominic Gannaway | ||
@@ -4,0 +4,0 @@ * Released under the MPL-2.0 License. |
{ | ||
"name": "inferno", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"license": "MPL-2.0", | ||
@@ -5,0 +5,0 @@ "description": "An extremely fast, isomorphic JavaScript library for building modern user interfaces", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
121020
1