inferno-hydrate
Advanced tools
Comparing version 8.0.5 to 8.0.6
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports,require("inferno")):"function"===typeof define&&define.amd?define(["exports","inferno"],n):n((e="undefined"!==typeof globalThis?globalThis:e||self).Inferno=e.Inferno||{},e.Inferno)}(this,(function(e,n){"use strict";function r(e){return"function"===typeof e}function t(e){return null===e}function l(e){throw e||(e="a runtime error occured! Use Inferno in development environment to find the error."),new Error("Inferno Error: "+e)}function o(e,n){var r=document.createElement("i");return r.innerHTML=n,r.innerHTML===e.innerHTML}function i(e){for(var n,r;e;){if(1521&(n=e.flags))return e.dom;r=e.children,e=8192&n?2===e.childFlags?r:r[r.length-1]:4&n?r.$LI:r}return null}function f(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&&o(e,n.dangerouslySetInnerHTML.__html))}function u(e,r,t,l,o,i,f,u){var d,a=e.type,s=e.ref,c=e.props||n.EMPTY_OBJ;if(i){var m=n._CI(e,a,c,l,o,f);d=h(m.$LI,r,t,m.$CX,o,f,u),n._MCCC(s,m,f,u)}else{var g=n._HI(n._RFC(e,l));d=h(g,r,t,l,o,f,u),e.children=g,n._MFCC(e,f,u)}return d}function d(e,r,l,o,i,u,d){var a=e.childFlags,s=e.children,c=e.props,m=e.flags;if(1!==a){if(2===a)t(l)?n._M(s,r,o,i,null,u,d):l=(l=h(s,r,l,o,i,u,d))?l.nextSibling:null;else if(16===a)t(l)?r.appendChild(document.createTextNode(s)):1!==r.childNodes.length||3!==l.nodeType?r.textContent=s:l.nodeValue!==s&&(l.nodeValue=s),l=null;else if(12&a)for(var g=!1,p=0,v=s.length;p<v;++p){var C=s[p];t(l)||g&&(16&C.flags)>0?n._M(C,r,o,i,l,u,d):l=(l=h(C,r,l,o,i,u,d))?l.nextSibling:null,g=(16&C.flags)>0}if(0===(8192&m))for(var _=null;l;)_=l.nextSibling,r.removeChild(l),l=_}else t(r.firstChild)||f(r,c)||(r.textContent="",448&m&&(r.defaultValue=""))}function a(e,r,l,o,i,f,u){var a,s=e.props,c=e.className,h=e.flags,m=e.ref;return i=i||(32&h)>0,1!==l.nodeType||l.tagName.toLowerCase()!==e.type?(n._ME(e,null,o,i,null,f,u),r.replaceChild(e.dom,l)):(e.dom=l,d(e,l,l.firstChild,o,i,f,u),t(s)||n._MP(e,h,s,l,i,u),void 0===(a=c)||null===a?""!==l.className&&l.removeAttribute("class"):i?l.setAttribute("class",c):l.className=c,n._MR(m,l,f)),e.dom}function s(e,n,r){if(3!==r.nodeType)n.replaceChild(e.dom=document.createTextNode(e.children),r);else{var t=e.children;r.nodeValue!==t&&(r.nodeValue=t),e.dom=r}return e.dom}function c(e,n,r,t,l,o,f){var u=e.children;if(2===e.childFlags)return s(u,n,r),u.dom;return d(e,n,r,t,l,o,f),i(u[u.length-1])}function h(e,n,r,t,o,i,f){var d=e.flags|=16384;if(14&d)return u(e,n,r,t,o,(4&d)>0,i,f);if(481&d)return a(e,n,r,t,o,i,f);if(16&d)return s(e,n,r);if(8192&d)return c(e,n,r,t,o,i,f);return l(),null}e.hydrate=function(e,l,o){var i,f=l.firstChild;if(t(f))n.render(e,l,o);else{var u=[],d=new n.AnimationQueues;for(null!==(i=e)&&!1!==i&&!0!==i&&void 0!==i&&(f=h(e,l,f,{},!1,u,d));f&&(f=f.nextSibling);)l.removeChild(f);if(u.length>0)for(var a;void 0!==(a=u.shift());)a()}l.$V=e,r(o)&&o()}})); | ||
!function(e,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports,require("inferno")):"function"===typeof define&&define.amd?define(["exports","inferno"],n):n((e="undefined"!==typeof globalThis?globalThis:e||self).Inferno=e.Inferno||{},e.Inferno)}(this,(function(e,n){"use strict";var r="a runtime error occured! Use Inferno in development environment to find the error.";function t(e){return"function"===typeof e}function l(e){return null===e}function o(e){throw e||(e=r),new Error("Inferno Error: "+e)}function i(e,n){var r=document.createElement("i");return r.innerHTML=n,r.innerHTML===e.innerHTML}function f(e){for(var n,r;e;){if(1521&(n=e.flags))return e.dom;r=e.children,e=8192&n?2===e.childFlags?r:r[r.length-1]:4&n?r.$LI:r}return null}function u(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&&i(e,n.dangerouslySetInnerHTML.__html))}function d(e,r,t,l,o,i,f,u){var d,a=e.type,s=e.ref,c=e.props||n.EMPTY_OBJ;if(i){var h=n._CI(e,a,c,l,o,f);d=m(h.$LI,r,t,h.$CX,o,f,u),n._MCCC(s,h,f,u)}else{var v=n._HI(n._RFC(e,l));d=m(v,r,t,l,o,f,u),e.children=v,n._MFCC(e,f,u)}return d}function a(e,r,t,o,i,f,d){var a=e.childFlags,s=e.children,c=e.props,h=e.flags;if(1!==a){if(2===a)l(t)?n._M(s,r,o,i,null,f,d):t=(t=m(s,r,t,o,i,f,d))?t.nextSibling:null;else if(16===a)l(t)?r.appendChild(document.createTextNode(s)):1!==r.childNodes.length||3!==t.nodeType?r.textContent=s:t.nodeValue!==s&&(t.nodeValue=s),t=null;else if(12&a)for(var v=!1,g=0,p=s.length;g<p;++g){var C=s[g];l(t)||v&&(16&C.flags)>0?n._M(C,r,o,i,t,f,d):t=(t=m(C,r,t,o,i,f,d))?t.nextSibling:null,v=(16&C.flags)>0}if(0===(8192&h))for(var _=null;t;)_=t.nextSibling,r.removeChild(t),t=_}else l(r.firstChild)||u(r,c)||(r.textContent="",448&h&&(r.defaultValue=""))}function s(e,r,t,o,i,f,u){var d,s=e.props,c=e.className,h=e.flags,m=e.ref;return i=i||(32&h)>0,1!==t.nodeType||t.tagName.toLowerCase()!==e.type?(n._ME(e,null,o,i,null,f,u),r.replaceChild(e.dom,t)):(e.dom=t,a(e,t,t.firstChild,o,i,f,u),l(s)||n._MP(e,h,s,t,i,u),void 0===(d=c)||null===d?""!==t.className&&t.removeAttribute("class"):i?t.setAttribute("class",c):t.className=c,n._MR(m,t,f)),e.dom}function c(e,n,r){if(3!==r.nodeType)n.replaceChild(e.dom=document.createTextNode(e.children),r);else{var t=e.children;r.nodeValue!==t&&(r.nodeValue=t),e.dom=r}return e.dom}function h(e,n,r,t,l,o,i){var u=e.children;if(2===e.childFlags)return c(u,n,r),u.dom;return a(e,n,r,t,l,o,i),f(u[u.length-1])}function m(e,n,r,t,l,i,f){var u=e.flags|=16384;if(14&u)return d(e,n,r,t,l,(4&u)>0,i,f);if(481&u)return s(e,n,r,t,l,i,f);if(16&u)return c(e,n,r);if(8192&u)return h(e,n,r,t,l,i,f);return o(),null}e.hydrate=function(e,r,o){var i,f=r.firstChild;if(l(f))n.render(e,r,o);else{var u=[],d=new n.AnimationQueues;for(null!==(i=e)&&!1!==i&&!0!==i&&void 0!==i&&(f=m(e,r,f,{},!1,u,d));f&&(f=f.nextSibling);)r.removeChild(f);if(u.length>0)for(var a;void 0!==(a=u.shift());)a()}r.$V=e,t(o)&&o()}})); |
{ | ||
"name": "inferno-hydrate", | ||
"version": "8.0.5", | ||
"version": "8.0.6", | ||
"license": "MIT", | ||
@@ -40,9 +40,9 @@ "description": "Hydrate plugin to inferno. This package can be used to reuse server side rendered html", | ||
"dependencies": { | ||
"inferno": "8.0.5" | ||
"inferno": "8.0.6" | ||
}, | ||
"devDependencies": { | ||
"inferno-create-element": "8.0.5", | ||
"inferno-hyperscript": "8.0.5", | ||
"inferno-shared": "8.0.5", | ||
"inferno-vnode-flags": "8.0.5" | ||
"inferno-create-element": "8.0.6", | ||
"inferno-hyperscript": "8.0.6", | ||
"inferno-shared": "8.0.6", | ||
"inferno-vnode-flags": "8.0.6" | ||
}, | ||
@@ -59,3 +59,3 @@ "rollup": { | ||
}, | ||
"gitHead": "9a7b2c06b1894cde44d0762410872d3915803a4d" | ||
"gitHead": "f4a4e3b06f8853e9d91e7380aa9c94cf09c6afe5" | ||
} |
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
59641
13
+ Addedinferno@8.0.6(transitive)
+ Addedinferno-vnode-flags@8.0.6(transitive)
- Removedinferno@8.0.5(transitive)
- Removedinferno-vnode-flags@8.0.5(transitive)
Updatedinferno@8.0.6