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.4.2 to 7.4.3

5

dist/index.cjs.js

@@ -60,5 +60,2 @@ 'use strict';

}
function renderFunctionalComponent(vNode, context, props) {
return vNode.flags & 32768 /* ForwardRef */ ? vNode.type.render(props, vNode.ref, context) : vNode.type(props, context);
}
function hydrateComponent(vNode, parentDOM, dom, context, isSVG, isClass, lifecycle) {

@@ -76,3 +73,3 @@ var type = vNode.type;

else {
var input$1 = inferno._HI(renderFunctionalComponent(vNode, context, props));
var input$1 = inferno._HI(inferno._RFC(vNode, context));
currentNode = hydrateVNode(input$1, parentDOM, dom, context, isSVG, lifecycle);

@@ -79,0 +76,0 @@ vNode.children = input$1;

2

dist/index.cjs.min.js

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

"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(e,n,r){return 32768&e.flags?e.type.render(r,e.ref,n):e.type(r,n)}function s(n,r,t,l,i,o,u){var f,a=n.type,s=n.ref,c=n.props||e.EMPTY_OBJ;if(o){var h=e._CI(n,a,c,l,i,u);f=g(h.$LI,r,t,h.$CX,i,u),e._MCCC(s,h,u)}else{var v=e._HI(d(n,l,c));f=g(v,r,t,l,i,u),n.children=v,e._MFCC(n,u)}return f}function c(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=g(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,m=d.length;v<m;++v){var p=d[v];i(t)||h&&(16&p.flags)>0?e._M(p,r,l,o,t,u):t=(t=g(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 h(n,t,l,o,u,f){var a=n.props,d=n.className,s=n.flags,h=n.ref;return u=u||(32&s)>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,c(n,l,l.firstChild,o,u,f),i(a)||e._MP(n,s,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 v(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 m(e,n,r,t,l,i){var o=e.children;if(2===e.childFlags)return v(o,n,r),o.dom;return c(e,n,r,t,l,i),f(o[o.length-1])}function g(e,n,r,t,l,i){var u=e.flags|=16384;if(14&u)return s(e,n,r,t,l,(4&u)>0,i);if(481&u)return h(e,n,r,t,l,i);if(16&u)return v(e,n,r);if(512&u)return e.dom=r;if(8192&u)return m(e,n,r,t,l,i);return o(),null}function p(n,r,o){var u=r.firstChild;if(i(u))e.render(n,r,o);else{var f=[];for(t(n)||(u=g(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=p;
"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 a(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 f(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 a,f=n.type,d=n.ref,s=n.props||e.EMPTY_OBJ;if(o){var c=e._CI(n,f,s,l,i,u);a=m(c.$LI,r,t,c.$CX,i,u),e._MCCC(d,c,u)}else{var h=e._HI(e._RFC(n,l));a=m(h,r,t,l,i,u),n.children=h,e._MFCC(n,u)}return a}function s(n,r,t,l,o,u){var a=n.childFlags,d=n.children,s=n.props,c=n.flags;if(1!==a){if(2===a)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===a)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&a)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)||f(r,s)||(r.textContent="",448&c&&(r.defaultValue=""))}function c(n,t,l,o,u,a){var f=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,a),t.replaceChild(n.dom,l)):(n.dom=l,s(n,l,l.firstChild,o,u,a),i(f)||e._MP(n,c,f,l,u),r(d)?""!==l.className&&l.removeAttribute("class"):u?l.setAttribute("class",d):l.className=d,e._MR(h,l,a)),n.dom}function h(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 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),a(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 a=[];for(t(n)||(u=m(n,r,u,{},!1,a));u&&(u=u.nextSibling);)r.removeChild(u);if(a.length>0)for(var f;void 0!==(f=a.shift());)f()}r.$V=n,l(o)&&o()}exports.hydrate=g;

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

import { render, EMPTY_OBJ, _CI, _MCCC, _HI, _MFCC, _ME, _MP, _MR, _M } from 'inferno';
import { render, EMPTY_OBJ, _CI, _MCCC, _HI, _RFC, _MFCC, _ME, _MP, _MR, _M } from 'inferno';

@@ -56,5 +56,2 @@ var ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';

}
function renderFunctionalComponent(vNode, context, props) {
return vNode.flags & 32768 /* ForwardRef */ ? vNode.type.render(props, vNode.ref, context) : vNode.type(props, context);
}
function hydrateComponent(vNode, parentDOM, dom, context, isSVG, isClass, lifecycle) {

@@ -72,3 +69,3 @@ var type = vNode.type;

else {
var input$1 = _HI(renderFunctionalComponent(vNode, context, props));
var input$1 = _HI(_RFC(vNode, context));
currentNode = hydrateVNode(input$1, parentDOM, dom, context, isSVG, lifecycle);

@@ -75,0 +72,0 @@ vNode.children = input$1;

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

import { render, EMPTY_OBJ, _CI, _MCCC, _HI, _MFCC, _ME, _MP, _MR, _M } from 'inferno';
import { render, EMPTY_OBJ, _CI, _MCCC, _HI, _RFC, _MFCC, _ME, _MP, _MR, _M } from 'inferno';

@@ -52,5 +52,2 @@ var ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';

}
function renderFunctionalComponent(vNode, context, props) {
return vNode.flags & 32768 /* ForwardRef */ ? vNode.type.render(props, vNode.ref, context) : vNode.type(props, context);
}
function hydrateComponent(vNode, parentDOM, dom, context, isSVG, isClass, lifecycle) {

@@ -68,3 +65,3 @@ var type = vNode.type;

else {
var input$1 = _HI(renderFunctionalComponent(vNode, context, props));
var input$1 = _HI(_RFC(vNode, context));
currentNode = hydrateVNode(input$1, parentDOM, dom, context, isSVG, lifecycle);

@@ -71,0 +68,0 @@ vNode.children = input$1;

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

import { render, EMPTY_OBJ, _CI, _MCCC, _HI, _MFCC, _ME, _MP, _MR, _M } from 'inferno';
import { render, EMPTY_OBJ, _CI, _MCCC, _HI, _RFC, _MFCC, _ME, _MP, _MR, _M } from 'inferno';

@@ -52,5 +52,2 @@ var ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';

}
function renderFunctionalComponent(vNode, context, props) {
return vNode.flags & 32768 /* ForwardRef */ ? vNode.type.render(props, vNode.ref, context) : vNode.type(props, context);
}
function hydrateComponent(vNode, parentDOM, dom, context, isSVG, isClass, lifecycle) {

@@ -68,3 +65,3 @@ const type = vNode.type;

else {
const input = _HI(renderFunctionalComponent(vNode, context, props));
const input = _HI(_RFC(vNode, context));
currentNode = hydrateVNode(input, parentDOM, dom, context, isSVG, lifecycle);

@@ -71,0 +68,0 @@ vNode.children = input;

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno')) :
typeof define === 'function' && define.amd ? define(['exports', 'inferno'], factory) :
(global = global || self, factory(global.Inferno = global.Inferno || {}, global.Inferno));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Inferno = {}, global.Inferno));
}(this, (function (exports, inferno) { 'use strict';

@@ -60,5 +60,2 @@

}
function renderFunctionalComponent(vNode, context, props) {
return vNode.flags & 32768 /* ForwardRef */ ? vNode.type.render(props, vNode.ref, context) : vNode.type(props, context);
}
function hydrateComponent(vNode, parentDOM, dom, context, isSVG, isClass, lifecycle) {

@@ -76,3 +73,3 @@ var type = vNode.type;

else {
var input$1 = inferno._HI(renderFunctionalComponent(vNode, context, props));
var input$1 = inferno._HI(inferno._RFC(vNode, context));
currentNode = hydrateVNode(input$1, parentDOM, dom, context, isSVG, lifecycle);

@@ -79,0 +76,0 @@ vNode.children = input$1;

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

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

},
"gitHead": "c295c9ddc1e5ff1fbf4a5d2ea1e0beab16b02023"
"gitHead": "5656a82ca9945ed5472724a8cde2857b27542927"
}
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