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

literaljs

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

literaljs - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

build/index.js

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

var e,n,t,i={},r=[];function o(e){if((e="function"==typeof e?new e:e).children)for(var n=0;n<e.children.length;n++)e.children[n]=o(e.children[n]);return e}function d(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var i=n.initial;void 0===i&&(i=!1);var o=typeof e;if("string"===o||"number"===o)return document.createTextNode(e);if("boolean"===o)return document.createTextNode("");for(var c=document.createElement(e.element),l=0,a=Object.entries(e);l<a.length;l+=1){var s=a[l],v=s[0],f=s[1];if("events"===v&&m(f,c,t,i),["children","element","events"].includes(v)||c.setAttribute(v,f),"children"===v)for(var h=0;h<f.length;h++)c.appendChild(d(f[h],{mount:t,initial:i}))}return c;function m(e,n,t,i){for(var o=0,d=Object.entries(e);o<d.length;o+=1){var c=d[o],l=c[0],a=c[1];["mounted","unmounted","updated"].includes(l)||n.addEventListener(l,a),s(l,a,t,i)}function s(e,n,t,i){i&&(t&&"mounted"===e&&r.push(n),t||"updated"!==e||r.push(n),u())}}}function u(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}module.exports={component:function(c){void 0===c&&(c={});var l=c.methods;void 0===l&&(l=function(){});var a=c.render;return void 0===a&&(a=function(){}),function(c){return void 0===c&&(c={}),function(s){for(var v in void 0===s&&(s={}),a=a.bind(this),"function"==typeof l&&(l=l.bind(this)()),l)this[v]=l[v].bind(this);return this.getState=function(){return Object.assign({},i,s)},this.setState=function(c){var l,a,s=Object.assign({},this.getState(),c);i=s,l=o(n()),a=Object.assign({},t),t=Object.assign({},l),function e(n,t,i,o){if(void 0===o&&(o=0),n){var c,l,a,s,v=typeof t,f=typeof i,h=n.childNodes[o];if(void 0===i)return n.appendChild(d(t)),void b(t,"mounted");if(!1===i&&(t.element||"string"===v||"number"===v))return n.replaceChild(d(t),h),void b(t,"mounted");if(!1===t&&(i.element||"string"===f||"number"===f))return n.replaceChild(d(t),h),void b(i,"unmounted");if(function(e,n,t,i){return t!==i||"string"===t&&e!==n||e.element!==n.element}(t,i,v,f))return n.replaceChild(d(t,{mount:!1}),h),void b(t,"mounted");if(t.element&&(function(e,n,t,i){for(var r=0,o=Object.entries(t);r<o.length;r+=1){var d=o[r],u=d[0],c=d[1],l=i[u];["children","events"].includes(u)||l&&c===l||(n.setAttribute(u,c),b(t,"updated"))}}(0,h,t,i),t.children||i.children)){var m=(l=i.children,{nc:a=(c=t.children)?c.length:0,oc:s=l?l.length:0,longest:a>=s?a:s});if(m.nc!==m.longest){for(var g=m.oc-1;g>0;g--)t.children[g]||(h.lastChild.remove(),b(i.children[g],"unmounted"));m.longest=m.nc}for(var p=0;p<m.longest;p++)e(h,t.children[p],i.children[p],p)}}function b(e,n){if(e.events){for(var t=0,i=Object.entries(e.events);t<i.length;t+=1){var o=i[t],d=o[0],c=o[1];d===n&&r.push(c)}u()}}}(e,l,a)}.bind(this),this.props=c,a()}}},render:function(u,c,l){void 0===l&&(l={}),i=Object.assign({},i,l),e=document.getElementById(c),n=u;var a=o(u());function s(){for(var e;e=r.pop();)e()}t=Object.assign({},a),e.appendChild(d(a,{initial:!0})),s(),window.addEventListener("__LITERAL_LIFECYCLE__",s)},h:function(e,n){for(var t=[],i=arguments.length-2;i-- >0;)t[i]=arguments[i+2];return Object.assign({},{element:e},n,{children:function e(n,t){for(var i=0;i<n.length;i++)Array.isArray(n[i])?e(n[i],t):t.push(n[i]);return t}(t,[])})}};
var e,n,t,i={},r=[];function o(e){if((e="function"==typeof e?new e:e).children)for(var n=0;n<e.children.length;n++)e.children[n]=o(e.children[n]);return e}function d(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var i=n.initial;void 0===i&&(i=!1);var o=typeof e;if("string"===o||"number"===o)return document.createTextNode(e);if("boolean"===o)return document.createTextNode("");for(var c=document.createElement(e.element),l=0,a=Object.entries(e);l<a.length;l+=1){var s=a[l],v=s[0],f=s[1];if("events"===v&&m(f,c,t,i),["children","element","events"].includes(v)||c.setAttribute(v,f),"children"===v)for(var h=0;h<f.length;h++)c.appendChild(d(f[h],{mount:t,initial:i}))}return c;function m(e,n,t,i){for(var o=0,d=Object.entries(e);o<d.length;o+=1){var c=d[o],l=c[0],a=c[1];["mounted","unmounted","updated"].includes(l)||n.addEventListener(l,a),s(l,a,t,i)}function s(e,n,t,i){i&&(t&&"mounted"===e&&r.push(n),t||"updated"!==e||r.push(n),u())}}}function u(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}module.exports={component:function(c){void 0===c&&(c={});var l=c.methods;void 0===l&&(l=function(){});var a=c.render;return void 0===a&&(a=function(){}),function(c){return void 0===c&&(c={}),function(s){for(var v in void 0===s&&(s={}),a=a.bind(this),"function"==typeof l&&(l=l.bind(this)()),l)this[v]=l[v].bind(this);return this.getState=function(){return Object.assign({},i,s)},this.setState=function(c){var l,a,s=Object.assign({},this.getState(),c);i=s,l=o(n()),a=Object.assign({},t),t=Object.assign({},l),function e(n,t,i,o){if(void 0===o&&(o=0),n){var c,l,a,s,v=typeof t,f=typeof i,h=n.childNodes[o];if(void 0===i)return n.appendChild(d(t)),void b(t,"mounted");if(!1===i&&(t.element||"string"===v||"number"===v))return n.replaceChild(d(t),h),void b(t,"mounted");if(!1===t&&(i.element||"string"===f||"number"===f))return n.replaceChild(d(t),h),void b(i,"unmounted");if(function(e,n,t,i){return t!==i||"string"===t&&e!==n||e.element!==n.element}(t,i,v,f))return n.replaceChild(d(t,{mount:!1}),h),void b(t,"mounted");if(t.element&&(function(e,n,t,i){for(var r=0,o=Object.entries(t);r<o.length;r+=1){var d=o[r],u=d[0],c=d[1],l=i[u];["children","events"].includes(u)||l&&c===l||(n.setAttribute(u,c),b(t,"updated"))}}(0,h,t,i),t.children||i.children)){var m=(l=i.children,{nc:a=(c=t.children)?c.length:0,oc:s=l?l.length:0,longest:a>=s?a:s});if(m.nc!==m.longest){for(var g=m.oc-1;g>0;g--)void 0===t.children[g]&&(h.lastChild.remove(),b(i.children[g],"unmounted"));m.longest=m.nc}for(var p=0;p<m.longest;p++)e(h,t.children[p],i.children[p],p)}}function b(e,n){if(e.events){for(var t=0,i=Object.entries(e.events);t<i.length;t+=1){var o=i[t],d=o[0],c=o[1];d===n&&r.push(c)}u()}}}(e,l,a)}.bind(this),this.props=c,a()}}},render:function(u,c,l){void 0===l&&(l={}),i=Object.assign({},i,l),e=document.getElementById(c),n=u;var a=o(u());function s(){for(var e;e=r.pop();)e()}t=Object.assign({},a),e.appendChild(d(a,{initial:!0})),s(),window.addEventListener("__LITERAL_LIFECYCLE__",s)},h:function(e,n){for(var t=[],i=arguments.length-2;i-- >0;)t[i]=arguments[i+2];return Object.assign({},{element:e},n,{children:function e(n,t){for(var i=0;i<n.length;i++)Array.isArray(n[i])?e(n[i],t):t.push(n[i]);return t}(t,[])})}};
//# sourceMappingURL=index.js.map

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

var e,n,t,i={},r=[],o=function(e,n){for(var t=[],i=arguments.length-2;i-- >0;)t[i]=arguments[i+2];return Object.assign({},{element:e},n,{children:function e(n,t){for(var i=0;i<n.length;i++)Array.isArray(n[i])?e(n[i],t):t.push(n[i]);return t}(t,[])})},d=function(o,d,u){void 0===u&&(u={}),i=Object.assign({},i,u),e=document.getElementById(d),n=o;var l=c(o());function s(){for(var e;e=r.pop();)e()}t=Object.assign({},l),e.appendChild(a(l,{initial:!0})),s(),window.addEventListener("__LITERAL_LIFECYCLE__",s)},u=function(o){void 0===o&&(o={});var d=o.methods;void 0===d&&(d=function(){});var u=o.render;return void 0===u&&(u=function(){}),function(o){return void 0===o&&(o={}),function(s){for(var f in void 0===s&&(s={}),u=u.bind(this),"function"==typeof d&&(d=d.bind(this)()),d)this[f]=d[f].bind(this);return this.getState=function(){return Object.assign({},i,s)},this.setState=function(o){var d,u,s=Object.assign({},this.getState(),o);i=s,d=c(n()),u=Object.assign({},t),t=Object.assign({},d),function e(n,t,i,o){if(void 0===o&&(o=0),n){var d,u,c,s,f=typeof t,v=typeof i,h=n.childNodes[o];if(void 0===i)return n.appendChild(a(t)),void b(t,"mounted");if(!1===i&&(t.element||"string"===f||"number"===f))return n.replaceChild(a(t),h),void b(t,"mounted");if(!1===t&&(i.element||"string"===v||"number"===v))return n.replaceChild(a(t),h),void b(i,"unmounted");if(function(e,n,t,i){return t!==i||"string"===t&&e!==n||e.element!==n.element}(t,i,f,v))return n.replaceChild(a(t,{mount:!1}),h),void b(t,"mounted");if(t.element&&(function(e,n,t,i){for(var r=0,o=Object.entries(t);r<o.length;r+=1){var d=o[r],u=d[0],c=d[1],a=i[u];["children","events"].includes(u)||a&&c===a||(n.setAttribute(u,c),b(t,"updated"))}}(0,h,t,i),t.children||i.children)){var m=(u=i.children,{nc:c=(d=t.children)?d.length:0,oc:s=u?u.length:0,longest:c>=s?c:s});if(m.nc!==m.longest){for(var p=m.oc-1;p>0;p--)t.children[p]||(h.lastChild.remove(),b(i.children[p],"unmounted"));m.longest=m.nc}for(var g=0;g<m.longest;g++)e(h,t.children[g],i.children[g],g)}}function b(e,n){if(e.events){for(var t=0,i=Object.entries(e.events);t<i.length;t+=1){var o=i[t],d=o[0],u=o[1];d===n&&r.push(u)}l()}}}(e,d,u)}.bind(this),this.props=o,u()}}};function c(e){if((e="function"==typeof e?new e:e).children)for(var n=0;n<e.children.length;n++)e.children[n]=c(e.children[n]);return e}function a(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var i=n.initial;void 0===i&&(i=!1);var o=typeof e;if("string"===o||"number"===o)return document.createTextNode(e);if("boolean"===o)return document.createTextNode("");for(var d=document.createElement(e.element),u=0,c=Object.entries(e);u<c.length;u+=1){var s=c[u],f=s[0],v=s[1];if("events"===f&&m(v,d,t,i),["children","element","events"].includes(f)||d.setAttribute(f,v),"children"===f)for(var h=0;h<v.length;h++)d.appendChild(a(v[h],{mount:t,initial:i}))}return d;function m(e,n,t,i){for(var o=0,d=Object.entries(e);o<d.length;o+=1){var u=d[o],c=u[0],a=u[1];["mounted","unmounted","updated"].includes(c)||n.addEventListener(c,a),s(c,a,t,i)}function s(e,n,t,i){i&&(t&&"mounted"===e&&r.push(n),t||"updated"!==e||r.push(n),l())}}}function l(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}export default{component:u,render:d,h:o};export{o as h,d as render,u as component};
var e,n,t,i={},r=[],o=function(e,n){for(var t=[],i=arguments.length-2;i-- >0;)t[i]=arguments[i+2];return Object.assign({},{element:e},n,{children:function e(n,t){for(var i=0;i<n.length;i++)Array.isArray(n[i])?e(n[i],t):t.push(n[i]);return t}(t,[])})},d=function(o,d,u){void 0===u&&(u={}),i=Object.assign({},i,u),e=document.getElementById(d),n=o;var l=c(o());function s(){for(var e;e=r.pop();)e()}t=Object.assign({},l),e.appendChild(a(l,{initial:!0})),s(),window.addEventListener("__LITERAL_LIFECYCLE__",s)},u=function(o){void 0===o&&(o={});var d=o.methods;void 0===d&&(d=function(){});var u=o.render;return void 0===u&&(u=function(){}),function(o){return void 0===o&&(o={}),function(s){for(var v in void 0===s&&(s={}),u=u.bind(this),"function"==typeof d&&(d=d.bind(this)()),d)this[v]=d[v].bind(this);return this.getState=function(){return Object.assign({},i,s)},this.setState=function(o){var d,u,s=Object.assign({},this.getState(),o);i=s,d=c(n()),u=Object.assign({},t),t=Object.assign({},d),function e(n,t,i,o){if(void 0===o&&(o=0),n){var d,u,c,s,v=typeof t,f=typeof i,h=n.childNodes[o];if(void 0===i)return n.appendChild(a(t)),void b(t,"mounted");if(!1===i&&(t.element||"string"===v||"number"===v))return n.replaceChild(a(t),h),void b(t,"mounted");if(!1===t&&(i.element||"string"===f||"number"===f))return n.replaceChild(a(t),h),void b(i,"unmounted");if(function(e,n,t,i){return t!==i||"string"===t&&e!==n||e.element!==n.element}(t,i,v,f))return n.replaceChild(a(t,{mount:!1}),h),void b(t,"mounted");if(t.element&&(function(e,n,t,i){for(var r=0,o=Object.entries(t);r<o.length;r+=1){var d=o[r],u=d[0],c=d[1],a=i[u];["children","events"].includes(u)||a&&c===a||(n.setAttribute(u,c),b(t,"updated"))}}(0,h,t,i),t.children||i.children)){var m=(u=i.children,{nc:c=(d=t.children)?d.length:0,oc:s=u?u.length:0,longest:c>=s?c:s});if(m.nc!==m.longest){for(var p=m.oc-1;p>0;p--)void 0===t.children[p]&&(h.lastChild.remove(),b(i.children[p],"unmounted"));m.longest=m.nc}for(var g=0;g<m.longest;g++)e(h,t.children[g],i.children[g],g)}}function b(e,n){if(e.events){for(var t=0,i=Object.entries(e.events);t<i.length;t+=1){var o=i[t],d=o[0],u=o[1];d===n&&r.push(u)}l()}}}(e,d,u)}.bind(this),this.props=o,u()}}};function c(e){if((e="function"==typeof e?new e:e).children)for(var n=0;n<e.children.length;n++)e.children[n]=c(e.children[n]);return e}function a(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var i=n.initial;void 0===i&&(i=!1);var o=typeof e;if("string"===o||"number"===o)return document.createTextNode(e);if("boolean"===o)return document.createTextNode("");for(var d=document.createElement(e.element),u=0,c=Object.entries(e);u<c.length;u+=1){var s=c[u],v=s[0],f=s[1];if("events"===v&&m(f,d,t,i),["children","element","events"].includes(v)||d.setAttribute(v,f),"children"===v)for(var h=0;h<f.length;h++)d.appendChild(a(f[h],{mount:t,initial:i}))}return d;function m(e,n,t,i){for(var o=0,d=Object.entries(e);o<d.length;o+=1){var u=d[o],c=u[0],a=u[1];["mounted","unmounted","updated"].includes(c)||n.addEventListener(c,a),s(c,a,t,i)}function s(e,n,t,i){i&&(t&&"mounted"===e&&r.push(n),t||"updated"!==e||r.push(n),l())}}}function l(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}export default{component:u,render:d,h:o};export{o as h,d as render,u as component};
//# sourceMappingURL=index.m.js.map

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.literaljs=n()}(this,function(){var e,n,t,i={},r=[];function o(e){if((e="function"==typeof e?new e:e).children)for(var n=0;n<e.children.length;n++)e.children[n]=o(e.children[n]);return e}function d(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var i=n.initial;void 0===i&&(i=!1);var o=typeof e;if("string"===o||"number"===o)return document.createTextNode(e);if("boolean"===o)return document.createTextNode("");for(var c=document.createElement(e.element),l=0,s=Object.entries(e);l<s.length;l+=1){var a=s[l],f=a[0],v=a[1];if("events"===f&&m(v,c,t,i),["children","element","events"].includes(f)||c.setAttribute(f,v),"children"===f)for(var h=0;h<v.length;h++)c.appendChild(d(v[h],{mount:t,initial:i}))}return c;function m(e,n,t,i){for(var o=0,d=Object.entries(e);o<d.length;o+=1){var c=d[o],l=c[0],s=c[1];["mounted","unmounted","updated"].includes(l)||n.addEventListener(l,s),a(l,s,t,i)}function a(e,n,t,i){i&&(t&&"mounted"===e&&r.push(n),t||"updated"!==e||r.push(n),u())}}}function u(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}return{component:function(c){void 0===c&&(c={});var l=c.methods;void 0===l&&(l=function(){});var s=c.render;return void 0===s&&(s=function(){}),function(c){return void 0===c&&(c={}),function(a){for(var f in void 0===a&&(a={}),s=s.bind(this),"function"==typeof l&&(l=l.bind(this)()),l)this[f]=l[f].bind(this);return this.getState=function(){return Object.assign({},i,a)},this.setState=function(c){var l,s,a=Object.assign({},this.getState(),c);i=a,l=o(n()),s=Object.assign({},t),t=Object.assign({},l),function e(n,t,i,o){if(void 0===o&&(o=0),n){var c,l,s,a,f=typeof t,v=typeof i,h=n.childNodes[o];if(void 0===i)return n.appendChild(d(t)),void b(t,"mounted");if(!1===i&&(t.element||"string"===f||"number"===f))return n.replaceChild(d(t),h),void b(t,"mounted");if(!1===t&&(i.element||"string"===v||"number"===v))return n.replaceChild(d(t),h),void b(i,"unmounted");if(function(e,n,t,i){return t!==i||"string"===t&&e!==n||e.element!==n.element}(t,i,f,v))return n.replaceChild(d(t,{mount:!1}),h),void b(t,"mounted");if(t.element&&(function(e,n,t,i){for(var r=0,o=Object.entries(t);r<o.length;r+=1){var d=o[r],u=d[0],c=d[1],l=i[u];["children","events"].includes(u)||l&&c===l||(n.setAttribute(u,c),b(t,"updated"))}}(0,h,t,i),t.children||i.children)){var m=(l=i.children,{nc:s=(c=t.children)?c.length:0,oc:a=l?l.length:0,longest:s>=a?s:a});if(m.nc!==m.longest){for(var p=m.oc-1;p>0;p--)t.children[p]||(h.lastChild.remove(),b(i.children[p],"unmounted"));m.longest=m.nc}for(var g=0;g<m.longest;g++)e(h,t.children[g],i.children[g],g)}}function b(e,n){if(e.events){for(var t=0,i=Object.entries(e.events);t<i.length;t+=1){var o=i[t],d=o[0],c=o[1];d===n&&r.push(c)}u()}}}(e,l,s)}.bind(this),this.props=c,s()}}},render:function(u,c,l){void 0===l&&(l={}),i=Object.assign({},i,l),e=document.getElementById(c),n=u;var s=o(u());function a(){for(var e;e=r.pop();)e()}t=Object.assign({},s),e.appendChild(d(s,{initial:!0})),a(),window.addEventListener("__LITERAL_LIFECYCLE__",a)},h:function(e,n){for(var t=[],i=arguments.length-2;i-- >0;)t[i]=arguments[i+2];return Object.assign({},{element:e},n,{children:function e(n,t){for(var i=0;i<n.length;i++)Array.isArray(n[i])?e(n[i],t):t.push(n[i]);return t}(t,[])})}}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.literaljs=n()}(this,function(){var e,n,t,i={},r=[];function o(e){if((e="function"==typeof e?new e:e).children)for(var n=0;n<e.children.length;n++)e.children[n]=o(e.children[n]);return e}function d(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var i=n.initial;void 0===i&&(i=!1);var o=typeof e;if("string"===o||"number"===o)return document.createTextNode(e);if("boolean"===o)return document.createTextNode("");for(var c=document.createElement(e.element),l=0,s=Object.entries(e);l<s.length;l+=1){var a=s[l],f=a[0],v=a[1];if("events"===f&&m(v,c,t,i),["children","element","events"].includes(f)||c.setAttribute(f,v),"children"===f)for(var h=0;h<v.length;h++)c.appendChild(d(v[h],{mount:t,initial:i}))}return c;function m(e,n,t,i){for(var o=0,d=Object.entries(e);o<d.length;o+=1){var c=d[o],l=c[0],s=c[1];["mounted","unmounted","updated"].includes(l)||n.addEventListener(l,s),a(l,s,t,i)}function a(e,n,t,i){i&&(t&&"mounted"===e&&r.push(n),t||"updated"!==e||r.push(n),u())}}}function u(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}return{component:function(c){void 0===c&&(c={});var l=c.methods;void 0===l&&(l=function(){});var s=c.render;return void 0===s&&(s=function(){}),function(c){return void 0===c&&(c={}),function(a){for(var f in void 0===a&&(a={}),s=s.bind(this),"function"==typeof l&&(l=l.bind(this)()),l)this[f]=l[f].bind(this);return this.getState=function(){return Object.assign({},i,a)},this.setState=function(c){var l,s,a=Object.assign({},this.getState(),c);i=a,l=o(n()),s=Object.assign({},t),t=Object.assign({},l),function e(n,t,i,o){if(void 0===o&&(o=0),n){var c,l,s,a,f=typeof t,v=typeof i,h=n.childNodes[o];if(void 0===i)return n.appendChild(d(t)),void b(t,"mounted");if(!1===i&&(t.element||"string"===f||"number"===f))return n.replaceChild(d(t),h),void b(t,"mounted");if(!1===t&&(i.element||"string"===v||"number"===v))return n.replaceChild(d(t),h),void b(i,"unmounted");if(function(e,n,t,i){return t!==i||"string"===t&&e!==n||e.element!==n.element}(t,i,f,v))return n.replaceChild(d(t,{mount:!1}),h),void b(t,"mounted");if(t.element&&(function(e,n,t,i){for(var r=0,o=Object.entries(t);r<o.length;r+=1){var d=o[r],u=d[0],c=d[1],l=i[u];["children","events"].includes(u)||l&&c===l||(n.setAttribute(u,c),b(t,"updated"))}}(0,h,t,i),t.children||i.children)){var m=(l=i.children,{nc:s=(c=t.children)?c.length:0,oc:a=l?l.length:0,longest:s>=a?s:a});if(m.nc!==m.longest){for(var p=m.oc-1;p>0;p--)void 0===t.children[p]&&(h.lastChild.remove(),b(i.children[p],"unmounted"));m.longest=m.nc}for(var g=0;g<m.longest;g++)e(h,t.children[g],i.children[g],g)}}function b(e,n){if(e.events){for(var t=0,i=Object.entries(e.events);t<i.length;t+=1){var o=i[t],d=o[0],c=o[1];d===n&&r.push(c)}u()}}}(e,l,s)}.bind(this),this.props=c,s()}}},render:function(u,c,l){void 0===l&&(l={}),i=Object.assign({},i,l),e=document.getElementById(c),n=u;var s=o(u());function a(){for(var e;e=r.pop();)e()}t=Object.assign({},s),e.appendChild(d(s,{initial:!0})),a(),window.addEventListener("__LITERAL_LIFECYCLE__",a)},h:function(e,n){for(var t=[],i=arguments.length-2;i-- >0;)t[i]=arguments[i+2];return Object.assign({},{element:e},n,{children:function e(n,t){for(var i=0;i<n.length;i++)Array.isArray(n[i])?e(n[i],t):t.push(n[i]);return t}(t,[])})}}});
//# sourceMappingURL=index.umd.js.map
{
"name": "literaljs",
"version": "3.0.1",
"version": "3.0.2",
"description": "~1kb JavaScript library for building user interfaces.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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