New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hpcc-js/preact-shim

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpcc-js/preact-shim - npm Package Compare versions

Comparing version 0.0.68 to 0.0.69

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="0.0.69"></a>
## [0.0.69](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/preact-shim@0.0.68...@hpcc-js/preact-shim@0.0.69) (2018-08-10)
**Note:** Version bump only for package @hpcc-js/preact-shim
<a name="0.0.68"></a>

@@ -8,0 +16,0 @@ ## [0.0.68](https://github.com/hpcc-systems/Visualization/compare/@hpcc-js/preact-shim@0.0.67...@hpcc-js/preact-shim@0.0.68) (2018-08-02)

10

dist/index.es6.js

@@ -84,5 +84,2 @@ /** Virtual DOM Node */

// if a "vnode hook" is defined, pass every created VNode to it
if (options.vnode !== undefined) options.vnode(p);
return p;

@@ -115,3 +112,3 @@ }

if (!component._dirty && (component._dirty = true) && items.push(component) == 1) {
(options.debounceRendering || defer)(rerender);
(defer)(rerender);
}

@@ -262,3 +259,3 @@ }

function eventProxy(e) {
return this._listeners[e.type](options.event && options.event(e) || e);
return this._listeners[e.type](e);
}

@@ -282,3 +279,2 @@

while (c = mounts.pop()) {
if (options.afterMount) options.afterMount(c);
if (c.componentDidMount) c.componentDidMount();

@@ -768,3 +764,2 @@ }

}
if (options.afterUpdate) options.afterUpdate(component);
}

@@ -830,3 +825,2 @@

function unmountComponent(component) {
if (options.beforeUnmount) options.beforeUnmount(component);

@@ -833,0 +827,0 @@ var base = component.base;

@@ -90,5 +90,2 @@ (function (global, factory) {

// if a "vnode hook" is defined, pass every created VNode to it
if (options.vnode !== undefined) options.vnode(p);
return p;

@@ -121,3 +118,3 @@ }

if (!component._dirty && (component._dirty = true) && items.push(component) == 1) {
(options.debounceRendering || defer)(rerender);
(defer)(rerender);
}

@@ -268,3 +265,3 @@ }

function eventProxy(e) {
return this._listeners[e.type](options.event && options.event(e) || e);
return this._listeners[e.type](e);
}

@@ -288,3 +285,2 @@

while (c = mounts.pop()) {
if (options.afterMount) options.afterMount(c);
if (c.componentDidMount) c.componentDidMount();

@@ -774,3 +770,2 @@ }

}
if (options.afterUpdate) options.afterUpdate(component);
}

@@ -836,3 +831,2 @@

function unmountComponent(component) {
if (options.beforeUnmount) options.beforeUnmount(component);

@@ -839,0 +833,0 @@ var base = component.base;

2

dist/index.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e["@hpcc-js/preact-shim"]={})}(this,function(e){"use strict";var t={},n=[],o=[];function r(e,t){for(var n in t)e[n]=t[n];return e}var i="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,l=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,a=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==a.push(e)&&(t.debounceRendering||i)(s)}function s(){var e,t=a;for(a=[];e=t.pop();)e._dirty&&L(e)}function c(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function u(e){var t=r({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function d(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),o&&o(e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var i in n)i in o||(e.style[i]="");for(var i in o)e.style[i]="number"==typeof o[i]&&!1===l.test(i)?o[i]+"px":o[i]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,_,a):e.removeEventListener(t,_,a),(e._listeners||(e._listeners={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e)!function(e,t,n){try{e[t]=n}catch(e){}}(e,t,null==o?"":o),null!=o&&!1!==o||e.removeAttribute(t);else{var p=r&&t!==(t=t.replace(/^xlink\:?/,""));null==o||!1===o?p?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(p?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function _(e){return this._listeners[e.type](t.event&&t.event(e)||e)}var v=[],m=0,h=!1,y=!1;function b(){for(var e;e=v.pop();)t.afterMount&&t.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,n,o,r,i){m++||(h=null!=r&&void 0!==r.ownerSVGElement,y=null!=e&&!("__preactattr_"in e));var l=g(e,t,n,o,i);return r&&l.parentNode!==r&&r.appendChild(l),--m||(y=!1,i||b()),l}function g(e,t,n,o,r){var i=e,l=h;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),x(e,!0))),i.__preactattr_=!0,i;var a,p,s=t.nodeName;if("function"==typeof s)return function(e,t,n,o){var r=e&&e._component,i=r,l=e,a=r&&e._componentConstructor===t.nodeName,p=a,s=u(t);for(;r&&!p&&(r=r._parentComponent);)p=r.constructor===t.nodeName;r&&p&&(!o||r._component)?(U(r,s,3,n,o),e=r.base):(i&&!a&&(M(i),e=l=null),r=w(t.nodeName,s,n),e&&!r.nextBase&&(r.nextBase=e,l=null),U(r,s,1,n,o),e=r.base,l&&e!==l&&(l._component=null,x(l,!1)));return e}(e,t,n,o);if(h="svg"===s||"foreignObject"!==s&&h,s=String(s),(!e||!c(e,s))&&(a=s,(p=h?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=p,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),x(e,!0)}var _=i.firstChild,v=i.__preactattr_,m=t.children;if(null==v){v=i.__preactattr_={};for(var b=i.attributes,C=b.length;C--;)v[b[C].name]=b[C].value}return!y&&m&&1===m.length&&"string"==typeof m[0]&&null!=_&&void 0!==_.splitText&&null==_.nextSibling?_.nodeValue!=m[0]&&(_.nodeValue=m[0]):(m&&m.length||null!=_)&&function(e,t,n,o,r){var i,l,a,p,s,u=e.childNodes,d=[],_={},v=0,m=0,h=u.length,y=0,b=t?t.length:0;if(0!==h)for(var C=0;C<h;C++){var N=u[C],k=N.__preactattr_,w=b&&k?N._component?N._component.__key:k.key:null;null!=w?(v++,_[w]=N):(k||(void 0!==N.splitText?!r||N.nodeValue.trim():r))&&(d[y++]=N)}if(0!==b)for(var C=0;C<b;C++){p=t[C],s=null;var w=p.key;if(null!=w)v&&void 0!==_[w]&&(s=_[w],_[w]=void 0,v--);else if(!s&&m<y)for(i=m;i<y;i++)if(void 0!==d[i]&&(S=l=d[i],L=r,"string"==typeof(U=p)||"number"==typeof U?void 0!==S.splitText:"string"==typeof U.nodeName?!S._componentConstructor&&c(S,U.nodeName):L||S._componentConstructor===U.nodeName)){s=l,d[i]=void 0,i===y-1&&y--,i===m&&m++;break}s=g(s,p,n,o),a=u[C],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?f(a):e.insertBefore(s,a))}var S,U,L;if(v)for(var C in _)void 0!==_[C]&&x(_[C],!1);for(;m<=y;)void 0!==(s=d[y--])&&x(s,!1)}(i,m,n,o,y||null!=v.dangerouslySetInnerHTML),function(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||d(e,o,n[o],n[o]=void 0,h);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||d(e,o,n[o],n[o]=t[o],h)}(i,t.attributes,v),h=l,i}function x(e,t){var n=e._component;n?M(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||f(e),N(e))}function N(e){for(e=e.lastChild;e;){var t=e.previousSibling;x(e,!0),e=t}}var k={};function w(e,t,n){var o,r=k[e.name];if(e.prototype&&e.prototype.render?(o=new e(t,n),P.call(o,t,n)):((o=new P(t,n)).constructor=e,o.render=S),r)for(var i=r.length;i--;)if(r[i].constructor===e){o.nextBase=r[i].nextBase,r.splice(i,1);break}return o}function S(e,t,n){return this.constructor(e,n)}function U(e,n,o,r,i){e._disable||(e._disable=!0,(e.__ref=n.ref)&&delete n.ref,(e.__key=n.key)&&delete n.key,!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=n,e._disable=!1,0!==o&&(1!==o&&!1===t.syncComponentUpdates&&e.base?p(e):L(e,1,i)),e.__ref&&e.__ref(e))}function L(e,n,o,i){if(!e._disable){var l,a,p,s=e.props,c=e.state,f=e.context,d=e.prevProps||s,_=e.prevState||c,h=e.prevContext||f,y=e.base,g=e.nextBase,N=y||g,k=e._component,S=!1;if(y&&(e.props=d,e.state=_,e.context=h,2!==n&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(s,c,f)?S=!0:e.componentWillUpdate&&e.componentWillUpdate(s,c,f),e.props=s,e.state=c,e.context=f),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!S){l=e.render(s,c,f),e.getChildContext&&(f=r(r({},f),e.getChildContext()));var P,T,B=l&&l.nodeName;if("function"==typeof B){var W=u(l);(a=k)&&a.constructor===B&&W.key==a.__key?U(a,W,1,f,!1):(P=a,e._component=a=w(B,W,f),a.nextBase=a.nextBase||g,a._parentComponent=e,U(a,W,0,f,!1),L(a,1,o,!0)),T=a.base}else p=N,(P=k)&&(p=e._component=null),(N||1===n)&&(p&&(p._component=null),T=C(p,l,f,o||!y,N&&N.parentNode,!0));if(N&&T!==N&&a!==k){var V=N.parentNode;V&&T!==V&&(V.replaceChild(T,N),P||(N._component=null,x(N,!1)))}if(P&&M(P),e.base=T,T&&!i){for(var j=e,A=e;A=A._parentComponent;)(j=A).base=T;T._component=j,T._componentConstructor=j.constructor}}if(!y||o?v.unshift(e):S||(e.componentDidUpdate&&e.componentDidUpdate(d,_,h),t.afterUpdate&&t.afterUpdate(e)),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);m||i||b()}}function M(e){t.beforeUnmount&&t.beforeUnmount(e);var n=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var o=e._component;o?M(o):n&&(n.__preactattr_&&n.__preactattr_.ref&&n.__preactattr_.ref(null),e.nextBase=n,f(n),function(e){var t=e.constructor.name;(k[t]||(k[t]=[])).push(e)}(e),N(n)),e.__ref&&e.__ref(null)}function P(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}r(P.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=r({},n)),r(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),p(this)},forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),L(this,2)},render:function(){}}),e.h=function(e,r){var i,l,a,p,s=o;for(p=arguments.length;p-- >2;)n.push(arguments[p]);for(r&&null!=r.children&&(n.length||n.push(r.children),delete r.children);n.length;)if((l=n.pop())&&void 0!==l.pop)for(p=l.length;p--;)n.push(l[p]);else"boolean"==typeof l&&(l=null),(a="function"!=typeof e)&&(null==l?l="":"number"==typeof l?l=String(l):"string"!=typeof l&&(a=!1)),a&&i?s[s.length-1]+=l:s===o?s=[l]:s.push(l),i=a;var c=new function(){};return c.nodeName=e,c.children=s,c.attributes=null==r?void 0:r,c.key=null==r?void 0:r.key,void 0!==t.vnode&&t.vnode(c),c},e.Component=P,e.render=function(e,t,n){return C(n,e,{},!1,t,!1)},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e["@hpcc-js/preact-shim"]={})}(this,function(e){"use strict";var t={},n=[],o=[];function r(e,t){for(var n in t)e[n]=t[n];return e}var i="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,l=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,a=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==a.push(e)&&i(s)}function s(){var e,t=a;for(a=[];e=t.pop();)e._dirty&&P(e)}function c(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function u(e){var t=r({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function d(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),o&&o(e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var i in n)i in o||(e.style[i]="");for(var i in o)e.style[i]="number"==typeof o[i]&&!1===l.test(i)?o[i]+"px":o[i]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,_,a):e.removeEventListener(t,_,a),(e._listeners||(e._listeners={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e)!function(e,t,n){try{e[t]=n}catch(e){}}(e,t,null==o?"":o),null!=o&&!1!==o||e.removeAttribute(t);else{var p=r&&t!==(t=t.replace(/^xlink\:?/,""));null==o||!1===o?p?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(p?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function _(e){return this._listeners[e.type](e)}var v=[],m=0,h=!1,y=!1;function b(){for(var e;e=v.pop();)e.componentDidMount&&e.componentDidMount()}function C(e,t,n,o,r,i){m++||(h=null!=r&&void 0!==r.ownerSVGElement,y=null!=e&&!("__preactattr_"in e));var l=x(e,t,n,o,i);return r&&l.parentNode!==r&&r.appendChild(l),--m||(y=!1,i||b()),l}function x(e,t,n,o,r){var i=e,l=h;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),g(e,!0))),i.__preactattr_=!0,i;var a,p,s=t.nodeName;if("function"==typeof s)return function(e,t,n,o){var r=e&&e._component,i=r,l=e,a=r&&e._componentConstructor===t.nodeName,p=a,s=u(t);for(;r&&!p&&(r=r._parentComponent);)p=r.constructor===t.nodeName;r&&p&&(!o||r._component)?(L(r,s,3,n,o),e=r.base):(i&&!a&&(T(i),e=l=null),r=w(t.nodeName,s,n),e&&!r.nextBase&&(r.nextBase=e,l=null),L(r,s,1,n,o),e=r.base,l&&e!==l&&(l._component=null,g(l,!1)));return e}(e,t,n,o);if(h="svg"===s||"foreignObject"!==s&&h,s=String(s),(!e||!c(e,s))&&(a=s,(p=h?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=p,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),g(e,!0)}var _=i.firstChild,v=i.__preactattr_,m=t.children;if(null==v){v=i.__preactattr_={};for(var b=i.attributes,C=b.length;C--;)v[b[C].name]=b[C].value}return!y&&m&&1===m.length&&"string"==typeof m[0]&&null!=_&&void 0!==_.splitText&&null==_.nextSibling?_.nodeValue!=m[0]&&(_.nodeValue=m[0]):(m&&m.length||null!=_)&&function(e,t,n,o,r){var i,l,a,p,s,u=e.childNodes,d=[],_={},v=0,m=0,h=u.length,y=0,b=t?t.length:0;if(0!==h)for(var C=0;C<h;C++){var N=u[C],k=N.__preactattr_,w=b&&k?N._component?N._component.__key:k.key:null;null!=w?(v++,_[w]=N):(k||(void 0!==N.splitText?!r||N.nodeValue.trim():r))&&(d[y++]=N)}if(0!==b)for(var C=0;C<b;C++){p=t[C],s=null;var w=p.key;if(null!=w)v&&void 0!==_[w]&&(s=_[w],_[w]=void 0,v--);else if(!s&&m<y)for(i=m;i<y;i++)if(void 0!==d[i]&&(S=l=d[i],P=r,"string"==typeof(L=p)||"number"==typeof L?void 0!==S.splitText:"string"==typeof L.nodeName?!S._componentConstructor&&c(S,L.nodeName):P||S._componentConstructor===L.nodeName)){s=l,d[i]=void 0,i===y-1&&y--,i===m&&m++;break}s=x(s,p,n,o),a=u[C],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?f(a):e.insertBefore(s,a))}var S,L,P;if(v)for(var C in _)void 0!==_[C]&&g(_[C],!1);for(;m<=y;)void 0!==(s=d[y--])&&g(s,!1)}(i,m,n,o,y||null!=v.dangerouslySetInnerHTML),function(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||d(e,o,n[o],n[o]=void 0,h);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||d(e,o,n[o],n[o]=t[o],h)}(i,t.attributes,v),h=l,i}function g(e,t){var n=e._component;n?T(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||f(e),N(e))}function N(e){for(e=e.lastChild;e;){var t=e.previousSibling;g(e,!0),e=t}}var k={};function w(e,t,n){var o,r=k[e.name];if(e.prototype&&e.prototype.render?(o=new e(t,n),B.call(o,t,n)):((o=new B(t,n)).constructor=e,o.render=S),r)for(var i=r.length;i--;)if(r[i].constructor===e){o.nextBase=r[i].nextBase,r.splice(i,1);break}return o}function S(e,t,n){return this.constructor(e,n)}function L(e,n,o,r,i){e._disable||(e._disable=!0,(e.__ref=n.ref)&&delete n.ref,(e.__key=n.key)&&delete n.key,!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=n,e._disable=!1,0!==o&&(1!==o&&!1===t.syncComponentUpdates&&e.base?p(e):P(e,1,i)),e.__ref&&e.__ref(e))}function P(e,t,n,o){if(!e._disable){var i,l,a,p=e.props,s=e.state,c=e.context,f=e.prevProps||p,d=e.prevState||s,_=e.prevContext||c,h=e.base,y=e.nextBase,x=h||y,N=e._component,k=!1;if(h&&(e.props=f,e.state=d,e.context=_,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(p,s,c)?k=!0:e.componentWillUpdate&&e.componentWillUpdate(p,s,c),e.props=p,e.state=s,e.context=c),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!k){i=e.render(p,s,c),e.getChildContext&&(c=r(r({},c),e.getChildContext()));var S,B,U=i&&i.nodeName;if("function"==typeof U){var M=u(i);(l=N)&&l.constructor===U&&M.key==l.__key?L(l,M,1,c,!1):(S=l,e._component=l=w(U,M,c),l.nextBase=l.nextBase||y,l._parentComponent=e,L(l,M,0,c,!1),P(l,1,n,!0)),B=l.base}else a=x,(S=N)&&(a=e._component=null),(x||1===t)&&(a&&(a._component=null),B=C(a,i,c,n||!h,x&&x.parentNode,!0));if(x&&B!==x&&l!==N){var W=x.parentNode;W&&B!==W&&(W.replaceChild(B,x),S||(x._component=null,g(x,!1)))}if(S&&T(S),e.base=B,B&&!o){for(var V=e,j=e;j=j._parentComponent;)(V=j).base=B;B._component=V,B._componentConstructor=V.constructor}}if(!h||n?v.unshift(e):k||e.componentDidUpdate&&e.componentDidUpdate(f,d,_),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);m||o||b()}}function T(e){var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?T(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,f(t),function(e){var t=e.constructor.name;(k[t]||(k[t]=[])).push(e)}(e),N(t)),e.__ref&&e.__ref(null)}function B(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}r(B.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=r({},n)),r(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),p(this)},forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),P(this,2)},render:function(){}}),e.h=function(e,t){var r,i,l,a,p=o;for(a=arguments.length;a-- >2;)n.push(arguments[a]);for(t&&null!=t.children&&(n.length||n.push(t.children),delete t.children);n.length;)if((i=n.pop())&&void 0!==i.pop)for(a=i.length;a--;)n.push(i[a]);else"boolean"==typeof i&&(i=null),(l="function"!=typeof e)&&(null==i?i="":"number"==typeof i?i=String(i):"string"!=typeof i&&(l=!1)),l&&r?p[p.length-1]+=i:p===o?p=[i]:p.push(i),r=l;var s=new function(){};return s.nodeName=e,s.children=p,s.attributes=null==t?void 0:t,s.key=null==t?void 0:t.key,s},e.Component=B,e.render=function(e,t,n){return C(n,e,{},!1,t,!1)},Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "@hpcc-js/preact-shim",
"version": "0.0.68",
"version": "0.0.69",
"description": "hpcc-js - preact shim",

@@ -31,9 +31,9 @@ "main": "dist/index.js",

"devDependencies": {
"@hpcc-js/bundle": "^0.0.44",
"@hpcc-js/bundle": "^0.0.45",
"rimraf": "2.6.2",
"rollup": "0.58.2",
"rollup": "0.63.5",
"rollup-plugin-alias": "1.4.0",
"rollup-plugin-commonjs": "9.1.0",
"rollup-plugin-commonjs": "9.1.4",
"rollup-plugin-node-resolve": "3.3.0",
"rollup-plugin-postcss": "1.6.1",
"rollup-plugin-postcss": "1.6.2",
"rollup-plugin-sourcemaps": "0.4.2",

@@ -40,0 +40,0 @@ "tslint": "5.9.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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