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

inferno-hydrate

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inferno-hydrate - npm Package Compare versions

Comparing version 7.1.13 to 7.2.0

10

dist/index.cjs.js

@@ -9,6 +9,6 @@ 'use strict';

function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return o === void 0 || o === null;
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return o === null || o === false || o === true || o === void 0;
}

@@ -21,8 +21,2 @@ function isFunction(o) {

}
function isTrue(o) {
return o === true;
}
function isUndefined(o) {
return o === void 0;
}
function throwError(message) {

@@ -29,0 +23,0 @@ if (!message) {

2

dist/index.cjs.min.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var m=require("inferno"),n="a runtime error occured! Use Inferno in development environment to find the error.";function d(e){return t(e)||g(e)}function i(e){return g(e)||!1===e||r(e)||t(e)}function u(e){return"function"==typeof e}function g(e){return null===e}function r(e){return!0===e}function t(e){return void 0===e}function a(e){throw e=e||n,new Error("Inferno Error: "+e)}function l(e,n){var r=document.createElement("i");return r.innerHTML=n,r.innerHTML===e.innerHTML}function f(e){for(var n,r;e;){if(2033&(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 p(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&&l(e,n.dangerouslySetInnerHTML.__html))}function s(e,n,r,t,l,o,i){var u,a=e.type,f=e.ref,d=e.props||{};if(o){var s=m._CI(e,a,d,t,l,i);u=_(s.$LI,n,r,s.$CX,l,i),m._MCCC(f,s,i)}else{var c=m._HI(a(d,t));u=_(c,n,r,t,l,i),e.children=c,m._MFCC(d,f,e,i)}return u}function c(e,n,r,t,l,o){var i=e.childFlags,u=e.children,a=e.props,f=e.flags;if(1!==i){if(2===i)g(r)?m._M(u,n,t,l,null,o):r=(r=_(u,n,r,t,l,o))?r.nextSibling:null;else if(16===i)g(r)?n.appendChild(document.createTextNode(u)):1!==n.childNodes.length||3!==r.nodeType?n.textContent=u:r.nodeValue!==u&&(r.nodeValue=u),r=null;else if(12&i)for(var d=!1,s=0,c=u.length;s<c;++s){var h=u[s];g(r)||d&&0<(16&h.flags)?m._M(h,n,t,l,r,o):r=(r=_(h,n,r,t,l,o))?r.nextSibling:null,d=0<(16&h.flags)}if(0==(8192&f))for(var v=null;r;)v=r.nextSibling,n.removeChild(r),r=v}else g(n.firstChild)||p(n,a)||(n.textContent="",448&f&&(n.defaultValue=""))}function h(e,n,r,t,l,o){var i=e.props,u=e.className,a=e.flags,f=e.ref;return l=l||0<(32&a),1!==r.nodeType||r.tagName.toLowerCase()!==e.type?(m._ME(e,null,t,l,null,o),n.replaceChild(e.dom,r)):(e.dom=r,c(e,r,r.firstChild,t,l,o),g(i)||m._MP(e,a,i,r,l),d(u)?""!==r.className&&r.removeAttribute("class"):l?r.setAttribute("class",u):r.className=u,m._MR(f,r,o)),e.dom}function v(e,n,r){if(3!==r.nodeType)m._MT(e,null,null),n.replaceChild(e.dom,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){var i=e.children;return 2===e.childFlags?(v(i,n,r),i.dom):(c(e,n,r,t,l,o),f(i[i.length-1]))}function _(e,n,r,t,l,o){var i=e.flags|=16384;return 14&i?s(e,n,r,t,l,0<(4&i),o):481&i?h(e,n,r,t,l,o):16&i?v(e,n,r):512&i?e.dom=r:8192&i?C(e,n,r,t,l,o):(a(),null)}function e(e,n,r){var t=n.firstChild;if(g(t))m.render(e,n,r);else{var l=[];for(i(e)||(t=_(e,n,t,{},!1,l));t=t&&t.nextSibling;)n.removeChild(t);if(0<l.length)for(var o;void 0!==(o=l.shift());)o()}n.$V=e,u(r)&&r()}exports.hydrate=e;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("inferno"),n="a runtime error occured! Use Inferno in development environment to find the error.";function r(e){return void 0===e||null===e}function t(e){return null===e||!1===e||!0===e||void 0===e}function l(e){return"function"===typeof e}function i(e){return null===e}function o(e){throw e||(e=n),new Error("Inferno Error: "+e)}function u(e,n){var r=document.createElement("i");return r.innerHTML=n,r.innerHTML===e.innerHTML}function f(e){for(var n,r;e;){if(2033&(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 a(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&&u(e,n.dangerouslySetInnerHTML.__html))}function d(n,r,t,l,i,o,u){var f,a=n.type,d=n.ref,s=n.props||{};if(o){var c=e._CI(n,a,s,l,i,u);f=m(c.$LI,r,t,c.$CX,i,u),e._MCCC(d,c,u)}else{var h=e._HI(a(s,l));f=m(h,r,t,l,i,u),n.children=h,e._MFCC(s,d,n,u)}return f}function s(n,r,t,l,o,u){var f=n.childFlags,d=n.children,s=n.props,c=n.flags;if(1!==f){if(2===f)i(t)?e._M(d,r,l,o,null,u):t=(t=m(d,r,t,l,o,u))?t.nextSibling:null;else if(16===f)i(t)?r.appendChild(document.createTextNode(d)):1!==r.childNodes.length||3!==t.nodeType?r.textContent=d:t.nodeValue!==d&&(t.nodeValue=d),t=null;else if(12&f)for(var h=!1,v=0,g=d.length;v<g;++v){var p=d[v];i(t)||h&&(16&p.flags)>0?e._M(p,r,l,o,t,u):t=(t=m(p,r,t,l,o,u))?t.nextSibling:null,h=(16&p.flags)>0}if(0===(8192&c))for(var C=null;t;)C=t.nextSibling,r.removeChild(t),t=C}else i(r.firstChild)||a(r,s)||(r.textContent="",448&c&&(r.defaultValue=""))}function c(n,t,l,o,u,f){var a=n.props,d=n.className,c=n.flags,h=n.ref;return u=u||(32&c)>0,1!==l.nodeType||l.tagName.toLowerCase()!==n.type?(e._ME(n,null,o,u,null,f),t.replaceChild(n.dom,l)):(n.dom=l,s(n,l,l.firstChild,o,u,f),i(a)||e._MP(n,c,a,l,u),r(d)?""!==l.className&&l.removeAttribute("class"):u?l.setAttribute("class",d):l.className=d,e._MR(h,l,f)),n.dom}function h(n,r,t){if(3!==t.nodeType)e._MT(n,null,null),r.replaceChild(n.dom,t);else{var l=n.children;t.nodeValue!==l&&(t.nodeValue=l),n.dom=t}return n.dom}function v(e,n,r,t,l,i){var o=e.children;if(2===e.childFlags)return h(o,n,r),o.dom;return s(e,n,r,t,l,i),f(o[o.length-1])}function m(e,n,r,t,l,i){var u=e.flags|=16384;if(14&u)return d(e,n,r,t,l,(4&u)>0,i);if(481&u)return c(e,n,r,t,l,i);if(16&u)return h(e,n,r);if(512&u)return e.dom=r;if(8192&u)return v(e,n,r,t,l,i);return o(),null}function g(n,r,o){var u=r.firstChild;if(i(u))e.render(n,r,o);else{var f=[];for(t(n)||(u=m(n,r,u,{},!1,f));u&&(u=u.nextSibling);)r.removeChild(u);if(f.length>0)for(var a;void 0!==(a=f.shift());)a()}r.$V=n,l(o)&&o()}exports.hydrate=g;

@@ -5,6 +5,6 @@ import { render, _CI, _MCCC, _HI, _MFCC, _ME, _MP, _MR, _MT, _M } from 'inferno';

function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return o === void 0 || o === null;
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return o === null || o === false || o === true || o === void 0;
}

@@ -17,8 +17,2 @@ function isFunction(o) {

}
function isTrue(o) {
return o === true;
}
function isUndefined(o) {
return o === void 0;
}
function throwError(message) {

@@ -25,0 +19,0 @@ if (!message) {

@@ -5,6 +5,6 @@ import { render, _CI, _MCCC, _HI, _MFCC, _ME, _MP, _MR, _MT, _M } from 'inferno';

function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return o === void 0 || o === null;
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return o === null || o === false || o === true || o === void 0;
}

@@ -17,8 +17,2 @@ function isFunction(o) {

}
function isTrue(o) {
return o === true;
}
function isUndefined(o) {
return o === void 0;
}
function throwError(message) {

@@ -25,0 +19,0 @@ if (!message) {

@@ -5,6 +5,6 @@ import { render, _CI, _MCCC, _HI, _MFCC, _ME, _MP, _MR, _MT, _M } from 'inferno';

function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return o === void 0 || o === null;
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return o === null || o === false || o === true || o === void 0;
}

@@ -17,8 +17,2 @@ function isFunction(o) {

}
function isTrue(o) {
return o === true;
}
function isUndefined(o) {
return o === void 0;
}
function throwError(message) {

@@ -25,0 +19,0 @@ if (!message) {

@@ -9,6 +9,6 @@ (function (global, factory) {

function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return o === void 0 || o === null;
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return o === null || o === false || o === true || o === void 0;
}

@@ -21,8 +21,2 @@ function isFunction(o) {

}
function isTrue(o) {
return o === true;
}
function isUndefined(o) {
return o === void 0;
}
function throwError(message) {

@@ -29,0 +23,0 @@ if (!message) {

@@ -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=e||self).Inferno=e.Inferno||{},e.Inferno)}(this,function(e,L){"use strict";var b="a runtime error occured! Use Inferno in development environment to find the error.";function H(e){return null===e}function S(e){return void 0===e}function N(e,n,r,l,t,o){var i,f,d,a,u,s=e.childFlags,c=e.children,h=e.props,m=e.flags;if(1!==s){if(2===s)H(r)?L._M(c,n,l,t,null,o):r=(r=E(c,n,r,l,t,o))?r.nextSibling:null;else if(16===s)H(r)?n.appendChild(document.createTextNode(c)):1!==n.childNodes.length||3!==r.nodeType?n.textContent=c:r.nodeValue!==c&&(r.nodeValue=c),r=null;else if(12&s)for(var p=!1,g=0,v=c.length;g<v;++g){var C=c[g];H(r)||p&&0<(16&C.flags)?L._M(C,n,l,t,r,o):r=(r=E(C,n,r,l,t,o))?r.nextSibling:null,p=0<(16&C.flags)}if(0==(8192&m))for(var _=null;r;)_=r.nextSibling,n.removeChild(r),r=_}else H(n.firstChild)||(i=n,f=h,Boolean(f&&f.dangerouslySetInnerHTML&&f.dangerouslySetInnerHTML.__html&&(d=i,a=f.dangerouslySetInnerHTML.__html,(u=document.createElement("i")).innerHTML=a,u.innerHTML===d.innerHTML)))||(n.textContent="",448&m&&(n.defaultValue=""))}function V(e,n,r){if(3!==r.nodeType)L._MT(e,null,null),n.replaceChild(e.dom,r);else{var l=e.children;r.nodeValue!==l&&(r.nodeValue=l),e.dom=r}return e.dom}function E(e,n,r,l,t,o){var i,f,d,a,u,s,c,h,m,p,g,v,C,_,M,y,I,T,x=e.flags|=16384;return 14&x?function(e,n,r,l,t,o,i){var f,d=e.type,a=e.ref,u=e.props||{};if(o){var s=L._CI(e,d,u,l,t,i);f=E(s.$LI,n,r,s.$CX,t,i),L._MCCC(a,s,i)}else{var c=L._HI(d(u,l));f=E(c,n,r,l,t,i),e.children=c,L._MFCC(u,a,e,i)}return f}(e,n,r,l,t,0<(4&x),o):481&x?(m=n,p=r,g=l,v=t,C=o,M=(h=e).props,y=h.className,I=h.flags,T=h.ref,v=v||0<(32&I),1!==p.nodeType||p.tagName.toLowerCase()!==h.type?(L._ME(h,null,g,v,null,C),m.replaceChild(h.dom,p)):(h.dom=p,N(h,p,p.firstChild,g,v,C),H(M)||L._MP(h,I,M,p,v),S(_=y)||H(_)?""!==p.className&&p.removeAttribute("class"):v?p.setAttribute("class",y):p.className=y,L._MR(T,p,C)),h.dom):16&x?V(e,n,r):512&x?e.dom=r:8192&x?(f=n,d=r,a=l,u=t,s=o,c=(i=e).children,2===i.childFlags?(V(c,f,d),c.dom):(N(i,f,d,a,u,s),function(e){for(var n,r;e;){if(2033&(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}(c[c.length-1]))):(function(e){throw e=e||b,new Error("Inferno Error: "+e)}(),null)}e.hydrate=function(e,n,r){var l,t=n.firstChild;if(H(t))L.render(e,n,r);else{var o=[];for(H(l=e)||!1===l||!0===l||S(l)||(t=E(e,n,t,{},!1,o));t=t&&t.nextSibling;)n.removeChild(t);if(0<o.length)for(var i;void 0!==(i=o.shift());)i()}n.$V=e,"function"==typeof r&&r()},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports,require("inferno")):"function"===typeof define&&define.amd?define(["exports","inferno"],n):n((e=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(2033&(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){var u,d=e.type,a=e.ref,s=e.props||{};if(i){var c=n._CI(e,d,s,l,o,f);u=m(c.$LI,r,t,c.$CX,o,f),n._MCCC(a,c,f)}else{var h=n._HI(d(s,l));u=m(h,r,t,l,o,f),e.children=h,n._MFCC(s,a,e,f)}return u}function a(e,r,t,o,i,f){var d=e.childFlags,a=e.children,s=e.props,c=e.flags;if(1!==d){if(2===d)l(t)?n._M(a,r,o,i,null,f):t=(t=m(a,r,t,o,i,f))?t.nextSibling:null;else if(16===d)l(t)?r.appendChild(document.createTextNode(a)):1!==r.childNodes.length||3!==t.nodeType?r.textContent=a:t.nodeValue!==a&&(t.nodeValue=a),t=null;else if(12&d)for(var h=!1,v=0,p=a.length;v<p;++v){var g=a[v];l(t)||h&&(16&g.flags)>0?n._M(g,r,o,i,t,f):t=(t=m(g,r,t,o,i,f))?t.nextSibling:null,h=(16&g.flags)>0}if(0===(8192&c))for(var C=null;t;)C=t.nextSibling,r.removeChild(t),t=C}else l(r.firstChild)||u(r,s)||(r.textContent="",448&c&&(r.defaultValue=""))}function s(e,r,t,o,i,f){var u,d=e.props,s=e.className,c=e.flags,h=e.ref;return i=i||(32&c)>0,1!==t.nodeType||t.tagName.toLowerCase()!==e.type?(n._ME(e,null,o,i,null,f),r.replaceChild(e.dom,t)):(e.dom=t,a(e,t,t.firstChild,o,i,f),l(d)||n._MP(e,c,d,t,i),void 0===(u=s)||null===u?""!==t.className&&t.removeAttribute("class"):i?t.setAttribute("class",s):t.className=s,n._MR(h,t,f)),e.dom}function c(e,r,t){if(3!==t.nodeType)n._MT(e,null,null),r.replaceChild(e.dom,t);else{var l=e.children;t.nodeValue!==l&&(t.nodeValue=l),e.dom=t}return e.dom}function h(e,n,r,t,l,o){var i=e.children;if(2===e.childFlags)return c(i,n,r),i.dom;return a(e,n,r,t,l,o),f(i[i.length-1])}function m(e,n,r,t,l,i){var f=e.flags|=16384;if(14&f)return d(e,n,r,t,l,(4&f)>0,i);if(481&f)return s(e,n,r,t,l,i);if(16&f)return c(e,n,r);if(512&f)return e.dom=r;if(8192&f)return h(e,n,r,t,l,i);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=[];for(null!==(i=e)&&!1!==i&&!0!==i&&void 0!==i&&(f=m(e,r,f,{},!1,u));f&&(f=f.nextSibling);)r.removeChild(f);if(u.length>0)for(var d;void 0!==(d=u.shift());)d()}r.$V=e,t(o)&&o()},Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "inferno-hydrate",
"version": "7.1.13",
"version": "7.2.0",
"license": "MIT",

@@ -35,9 +35,9 @@ "description": "Hydrate plugin to inferno. This package can be used to reuse server side rendered html",

"dependencies": {
"inferno": "7.1.13"
"inferno": "7.2.0"
},
"devDependencies": {
"inferno-create-element": "7.1.13",
"inferno-hyperscript": "7.1.13",
"inferno-shared": "7.1.13",
"inferno-vnode-flags": "7.1.13"
"inferno-create-element": "7.2.0",
"inferno-hyperscript": "7.2.0",
"inferno-shared": "7.2.0",
"inferno-vnode-flags": "7.2.0"
},

@@ -54,3 +54,3 @@ "rollup": {

},
"gitHead": "52edc9703cc9d7ff3163fac20d3dc3da4bdd4a0d"
"gitHead": "fabfe9a399a04851b302c505416170c6bdf405d8"
}
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