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.0 to 3.0.1

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),a=0,s=Object.entries(e);a<s.length;a+=1){var l=s[a],v=l[0],f=l[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],a=c[0],s=c[1];["mounted","unmounted","updated"].includes(a)||n.addEventListener(a,s),l(a,s,t,i)}function l(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 a=c.methods;void 0===a&&(a=function(){});var s=c.render;return void 0===s&&(s=function(){}),function(c){return void 0===c&&(c={}),function(l){for(var v in void 0===l&&(l={}),s=s.bind(this),"function"==typeof a&&(a=a.bind(this)()),a)this[v]=a[v].bind(this);return this.getState=function(){return Object.assign({},i,l)},this.setState=function(c){var a,s,l=Object.assign({},this.getState(),c);i=l,a=o(n()),s=Object.assign({},t),t=Object.assign({},a),function e(n,t,i,o){if(void 0===o&&(o=0),n){var c,a,s,l,v=typeof t,f=typeof i,h=n.childNodes[o];if(void 0===i)return n.appendChild(d(t)),void p(t,"mounted");if(void 0===t)return n.removeChild(h),void p(i,"unmounted");if(!1===i&&(t.element||"string"===v||"number"===v))return n.replaceChild(d(t),h),void p(t,"mounted");if(!1===t&&(i.element||"string"===f||"number"===f))return n.replaceChild(d(t),h),void p(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 p(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),p(t,"updated"))}}(0,h,t,i),t.children||i.children))for(var m=0;m<(a=i.children,(s=(c=t.children)?c.length:0)>=(l=a?a.length:0)?s:l);m++)e(h,t.children[m],i.children[m],m)}function p(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,a,s)}.bind(this),this.props=c,s()}}},render:function(u,c,a){void 0===a&&(a={}),i=Object.assign({},i,a),e=document.getElementById(c),n=u;var s=o(u());function l(){for(var e;e=r.pop();)e()}t=Object.assign({},s),e.appendChild(d(s,{initial:!0})),l(),window.addEventListener("__LITERAL_LIFECYCLE__",l)},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--)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 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 p(t,"mounted");if(void 0===t)return n.removeChild(h),void p(i,"unmounted");if(!1===i&&(t.element||"string"===v||"number"===v))return n.replaceChild(a(t),h),void p(t,"mounted");if(!1===t&&(i.element||"string"===f||"number"===f))return n.replaceChild(a(t),h),void p(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 p(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),p(t,"updated"))}}(0,h,t,i),t.children||i.children))for(var m=0;m<(u=i.children,(c=(d=t.children)?d.length:0)>=(s=u?u.length:0)?c:s);m++)e(h,t.children[m],i.children[m],m)}function p(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};
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};
//# 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),f=0,a=Object.entries(e);f<a.length;f+=1){var s=a[f],l=s[0],v=s[1];if("events"===l&&m(v,c,t,i),["children","element","events"].includes(l)||c.setAttribute(l,v),"children"===l)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],f=c[0],a=c[1];["mounted","unmounted","updated"].includes(f)||n.addEventListener(f,a),s(f,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)}return{component:function(c){void 0===c&&(c={});var f=c.methods;void 0===f&&(f=function(){});var a=c.render;return void 0===a&&(a=function(){}),function(c){return void 0===c&&(c={}),function(s){for(var l in void 0===s&&(s={}),a=a.bind(this),"function"==typeof f&&(f=f.bind(this)()),f)this[l]=f[l].bind(this);return this.getState=function(){return Object.assign({},i,s)},this.setState=function(c){var f,a,s=Object.assign({},this.getState(),c);i=s,f=o(n()),a=Object.assign({},t),t=Object.assign({},f),function e(n,t,i,o){if(void 0===o&&(o=0),n){var c,f,a,s,l=typeof t,v=typeof i,h=n.childNodes[o];if(void 0===i)return n.appendChild(d(t)),void p(t,"mounted");if(void 0===t)return n.removeChild(h),void p(i,"unmounted");if(!1===i&&(t.element||"string"===l||"number"===l))return n.replaceChild(d(t),h),void p(t,"mounted");if(!1===t&&(i.element||"string"===v||"number"===v))return n.replaceChild(d(t),h),void p(i,"unmounted");if(function(e,n,t,i){return t!==i||"string"===t&&e!==n||e.element!==n.element}(t,i,l,v))return n.replaceChild(d(t,{mount:!1}),h),void p(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],f=i[u];["children","events"].includes(u)||f&&c===f||(n.setAttribute(u,c),p(t,"updated"))}}(0,h,t,i),t.children||i.children))for(var m=0;m<(f=i.children,(a=(c=t.children)?c.length:0)>=(s=f?f.length:0)?a:s);m++)e(h,t.children[m],i.children[m],m)}function p(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,f,a)}.bind(this),this.props=c,a()}}},render:function(u,c,f){void 0===f&&(f={}),i=Object.assign({},i,f),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,[])})}}});
!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,[])})}}});
//# sourceMappingURL=index.umd.js.map
{
"name": "literaljs",
"version": "3.0.0",
"version": "3.0.1",
"description": "~1kb JavaScript library for building user interfaces.",

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

@@ -15,5 +15,5 @@ <p align="center">

Build output to build:
1.3 kB: index.js
1.31 kB: index.m.js
1.36 kB: index.umd.js
1.36 kB: index.js
1.37 kB: index.m.js
1.42 kB: index.umd.js
```

@@ -20,0 +20,0 @@ ### [Features and stuff](#features)

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