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

remixml

Package Overview
Dependencies
Maintainers
1
Versions
346
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remixml - npm Package Compare versions

Comparing version 6.0.15 to 6.0.16

2

package.json
{
"name": "remixml",
"version": "6.0.15",
"version": "6.0.16",
"description": "XML/HTML-like macro language/template compiler engine",

@@ -5,0 +5,0 @@ "main": "remixml.min.js",

@@ -33,3 +33,6 @@ /** @license

"&":"%26","'":"%27","+":"%2B","<":"%3C","?":"%3F"};
const /** !RegExp */ uricrx = /[ \t\n\r#%&'"+<?]/g;
const /** !Object */ htmlmapobj = {"&":"&amp;","<":"&lt;"};
const /** !RegExp */ htmlmaprx = /[&<]/g;

@@ -68,4 +71,2 @@ const /** string */ varinsert = "I=K($,H,x)}catch(x){I=0}";

const /** !RegExp */ ltrx = /</g;
const /** !RegExp */ uricrx = /[+ \t\n\r?&#<]/g;
const /** !RegExp */ htmlmaprx = /[&<]/g;
const /** !RegExp */ nonwordrx = /[^-:\w,]+/g;

@@ -72,0 +73,0 @@ const /** !RegExp */ escaperxrx = /([\\^$*+?.|()[{])/g;

@@ -41,3 +41,6 @@ /** @license

"&":"%26","'":"%27","+":"%2B","<":"%3C","?":"%3F"};
const /** !RegExp */ uricrx = /[ \t\n\r#%&'"+<?]/g;
const /** !Object */ htmlmapobj = {"&":"&amp;","<":"&lt;"};
const /** !RegExp */ htmlmaprx = /[&<]/g;

@@ -76,4 +79,2 @@ const /** string */ varinsert = "I=K($,H,x)}catch(x){I=0}";

const /** !RegExp */ ltrx = /</g;
const /** !RegExp */ uricrx = /[+ \t\n\r?&#<]/g;
const /** !RegExp */ htmlmaprx = /[&<]/g;
const /** !RegExp */ nonwordrx = /[^-:\w,]+/g;

@@ -80,0 +81,0 @@ const /** !RegExp */ escaperxrx = /([\\^$*+?.|()[{])/g;

@@ -29,13 +29,13 @@ (function(){"use strict";

"&";default:ra.lastIndex=t,(q=aa(ra,a))?(f+=q[0],t=ra.lastIndex):(c(0,"Parse error"),f+=a.substr(t),t=a.length),I||(!g&&b&1&&(f=va(f)),!f||p[2]&1&&"0}"!==d.slice(-2)&&f.match($a)||(d+="H.push("+JSON.stringify(f)+");"))}}return d+="return H})"}function ja(a){try{var b=eval(a)}catch(c){D(c,a),ab(a),b=function(){return""}}return b}function aa(a,b){return a.exec(b)}const bb=("object"==typeof document?document:null)&&window,w=Object,Ia={" ":"+","\t":"%09","\n":"%0A","\r":"%0D",'"':"%22","#":"%23","%":"%25",
"&":"%26","'":"%27","+":"%2B","<":"%3C","?":"%3F"},Ka={"&":"&amp;","<":"&lt;"},ta=/\s*,\s*/g,Ta=/\s*,\s*/,za=RegExp("(?:[^&]+|(?:&(?:\\w*;|[\\w$:.[\\]]+(?=[^%;\\w$:.[\\]])|(?=[^\\w$:.[\\]]))[^&]*))+|&([\\w$]+(?:[.[][\\w$]+]?)*\\.[\\w$]+)(?::([\\w$]*))?(?:%([^;]*))?;","y"),qa=/([\w$]+\.[\w$]+(?:[.[][\w$]+]?)*)(?::([\w$]*))?(?:%([^;]*))?;/y,oa=/!(?:--(.*?)(?:--|$)|([^-].*?))(?:>|$)|\?(.*?)(?:\?>|$)/ys,pa=/(?:noparse|comment)\s/y,ra=RegExp("[^&<]+(?:&(?:\\w*;|[\\w$:.[\\]]+(?=[^%;\\w$:.[\\]])|(?=[^\\w$:.[\\]]))[^&<]*)*",
"y"),ha=/\s*((?:[^-:_a-zA-Z<&>\s\/]\s*)*)(?:([-:_a-zA-Z][-:\w]*|\/)\s*(?:=\s*("[^"]*"|'[^']*'))?|[<&>])/y,Wa=/^[_a-zA-Z]\w*$/,Xa=/<\/script>/g,Ya=/<\/style>/g,Na=/^"([^(+]+)"$/,Pa=/^[A-Za-z_][\w]*$/,Qa=/\n/g,Ra=/[^\n]*$/,Za=/([^=]+=).+(".*")/,$a=/^\s+$/,Oa=/\s\s+/g,cb=/</g,db=/[+ \t\n\r?&#<]/g,eb=/[&<]/g,Ua=/[^-:\w,]+/g,Va=/([\\^$*+?.|()[{])/g,fb=/"/g,gb=/[.[\]]+/,Fa={};var sa,ab=console.debug,Ga=console.error;M=function(a,b){try{w.assign(a,b)}catch(c){}};D=function(a,b){Ga("Remixml expression: "+
(b?JSON.stringify(b):"")+"\n",a)};E=function(a,b,c){return ua(a,c)(b)};P=function(a,b,c){return function(e){return(Array.isArray(e)?e.join(", "):e).replace(RegExp(a,b),c)}};U=function(a){var b;ea(b=a[0])&&" "===b[0]&&!(a[0]=b.substr(1))&&a.splice(0,1);var c=a.length-1;ea(b=a[c])&&" "===b.slice(-1)&&!(a[c]=b.slice(0,-1))&&a.splice(c,1);return a};F=function(a,b,c){b=+(b||0);c=+c;return 0>c?a.slice(b,c):0<c?a.slice(b,b+c):0==c?a.slice(b):""};R=function(a,b){for(var c,e=a.length,l=b||va;e--;){switch((c=
a[e])[""]){case "!":case "<":case "?":if(!b)break;default:R(c,b);continue;case void 0:if(a[e]=l(c))continue}a.splice(e,1)}return a};S=function(a,b){b=L(b);w.assign(b,a);delete b["::"];(a=a["::"])&&w.assign(b,a);return b};L=function(a){var b=[];b[""]=a||1;return b};N=function(a){var b=a._;b||(a._=b={});b._tag||(b._tag={});!a["var"]&&a.__&&(a["var"]=a.__);return L()};C=function(a,b,c,e){if(1!==a[""])if(wa(a,"_contents",function(){let g=a._c;g?g(a.slice(),b):a[""]=1;return a}),c)wa(a,"_restargs",function(){var g,
u={};for(g in this)switch(g[0]){default:0<=g||c[g]||(u[g]=this[g]);case "_":case void 0:}return u});else return a;var l;(l=w.assign({},b))._=w.assign(a,{_:b._,_tag:w.assign({},b._._tag)});e&&(l[e]=a);return l};V=function(a,b,c){void 0===c[b]&&(c[b]=1!==a.length||a[0][""]?a.length?a:"":a[0])};X=function(a,b,c){var e=c._._tag[b[""]];if(e)return e(a,b,c);if(e=b._c)delete b._c,e(b,c);a.push(b)};Q=function(a,b,c){b._._tag[a]=c};G=function(a,b,c){if((b=(b=Array.isArray(b)?b[0]:VE(a,b))||0)&&0<=b.size)a=
b.entries();else if(a=w.entries(b),0<=b.length&&a.splice(b.length),c)try{a=a.sort(function(e,l){var g,u;e=c(e);l=c(l);var m=0;for(g=e.length;m<g;m++){var d=0;Array.isArray(e[m])&&(d=1,e[m]=e[m][0],l[m]=l[m][0]);if(u=e[m]>l[m]||-(e[m]!==l[m]))break}return d?-u:u})}catch(e){D(e,c)}return a[Symbol.iterator]()};B=function(a,b,c,e){for(var l=0;l<c.length;){let g=c[l++];switch(g[""]){default:B(a,b,g,e);return;case e:b.push(C(g,a));case void 0:}}};T=function(a){var b=a.split(gb),c;a="$";for(c of b)a+=xa(c);
return a};Z=function(a,b,c,e){b=Array.isArray(b)?b[0]:VE(a,b);null==b&&(b="");"function"===typeof b&&(b=b(a._,a));if(b[""])switch(c){case "r":case "recurse":case "":case "none":if(!e)break;default:b=Y(b)}else- -b==b&&(b+="");e&&!b[""]&&sa&&(b=sa(e,b,a));switch(c){case "json":b=JSON.stringify(b).replace(cb,"\\\\u003c");break;case "uric":b=b.replace(db,Ha);break;default:b[""]||(b=Array.isArray(b)?b.join(", "):b,b=(e=Fa[c])?e(b):b.replace(eb,Ja));case "":case "none":case "r":case "recurse":}switch(b.length){case 0:b=
"";break;case 1:1===b[""]&&(b=b[0])}if("r"===c)for(c="";b!==c&&0<=b.indexOf("&");)c=b,b=VE(a,["("+ya(b)+")"]);return b};O=function(a,b){var c;if(b)for(c in b)delete b[c];else b=[];Array.isArray(a)||(a.length=0);b=w.assign(b,a);for(c=b.length;c--;)b[c][""]&&(b[c]=O(b[c]));return b};K=function(a,b,c){c[""]?(1===c[""]?b.push.apply(b,O(c)):b.push(c),c=1):c||void 0!==c&&c?(b.push(c),c=1):c=0;return c};sizeof=function(a){return Number(a)===a?1:a?a.length||1!==a[""]||w.keys(a).length:0};desc=function(a){return- -a===
a?-a:[a,1]};abstract2dom=function(a,b){return ia.abstract2dom(a,b)};abstract2txt=Y=function(a,b){for(;;){switch(a[""]){case void 0:return a;case 1:switch(a.length){case 0:return"";case 1:a=a[0];continue}}break}var c,e=a[""];switch(e){case "!":return"\x3c!--"+a[0]+"--\x3e";case "<":return"<!"+a[0]+">";case "?":return"<?"+a[0]+"?>";case 1:e=c="";break;default:c="<"+e;for(var l of w.keys(a).splice(a.length))switch(l[0]){default:var g=a[l];null!=g&&(g[""]&&(g=g.join("")),c+=" "+l,l!==g&&(c+='="'+(g.replace?
g.replace(fb,"&dquot;"):g)+'"'));case "_":case void 0:}if(!a.length)return c+(b&&"br"!==e?"></"+e+">":"/>");c+=">"}for(g=0;void 0!==(l=a[g++]);)c+=l[""]?Y(l,b):l;e&&(c+="</"+e+">");return c};const ia={remixml2js:ka,js2obj:ja,compile:ua,parse2txt:function(a,b,c){ea(a)&&(a=ja(ka(a,c)));return Y(a(b))},abstract2txt:Y,add_filter:function(a,b){Fa[a]=b},set_proc_fmt:function(a){sa=a},set_tag:function(a,b,c,e,l){N(b);Ma(a,b,c,e,l)},set_log_callback:function(a){Ga=a}};"function"==typeof define&&define.amd?
define("remixml",[],ia):"object"==typeof exports?w.assign(exports,ia):bb.Remixml=ia}).call(this);
"&":"%26","'":"%27","+":"%2B","<":"%3C","?":"%3F"},cb=/[ \t\n\r#%&'"+<?]/g,Ka={"&":"&amp;","<":"&lt;"},db=/[&<]/g,ta=/\s*,\s*/g,Ta=/\s*,\s*/,za=RegExp("(?:[^&]+|(?:&(?:\\w*;|[\\w$:.[\\]]+(?=[^%;\\w$:.[\\]])|(?=[^\\w$:.[\\]]))[^&]*))+|&([\\w$]+(?:[.[][\\w$]+]?)*\\.[\\w$]+)(?::([\\w$]*))?(?:%([^;]*))?;","y"),qa=/([\w$]+\.[\w$]+(?:[.[][\w$]+]?)*)(?::([\w$]*))?(?:%([^;]*))?;/y,oa=/!(?:--(.*?)(?:--|$)|([^-].*?))(?:>|$)|\?(.*?)(?:\?>|$)/ys,pa=/(?:noparse|comment)\s/y,ra=RegExp("[^&<]+(?:&(?:\\w*;|[\\w$:.[\\]]+(?=[^%;\\w$:.[\\]])|(?=[^\\w$:.[\\]]))[^&<]*)*",
"y"),ha=/\s*((?:[^-:_a-zA-Z<&>\s\/]\s*)*)(?:([-:_a-zA-Z][-:\w]*|\/)\s*(?:=\s*("[^"]*"|'[^']*'))?|[<&>])/y,Wa=/^[_a-zA-Z]\w*$/,Xa=/<\/script>/g,Ya=/<\/style>/g,Na=/^"([^(+]+)"$/,Pa=/^[A-Za-z_][\w]*$/,Qa=/\n/g,Ra=/[^\n]*$/,Za=/([^=]+=).+(".*")/,$a=/^\s+$/,Oa=/\s\s+/g,eb=/</g,Ua=/[^-:\w,]+/g,Va=/([\\^$*+?.|()[{])/g,fb=/"/g,gb=/[.[\]]+/,Fa={};var sa,ab=console.debug,Ga=console.error;M=function(a,b){try{w.assign(a,b)}catch(c){}};D=function(a,b){Ga("Remixml expression: "+(b?JSON.stringify(b):"")+"\n",a)};
E=function(a,b,c){return ua(a,c)(b)};P=function(a,b,c){return function(e){return(Array.isArray(e)?e.join(", "):e).replace(RegExp(a,b),c)}};U=function(a){var b;ea(b=a[0])&&" "===b[0]&&!(a[0]=b.substr(1))&&a.splice(0,1);var c=a.length-1;ea(b=a[c])&&" "===b.slice(-1)&&!(a[c]=b.slice(0,-1))&&a.splice(c,1);return a};F=function(a,b,c){b=+(b||0);c=+c;return 0>c?a.slice(b,c):0<c?a.slice(b,b+c):0==c?a.slice(b):""};R=function(a,b){for(var c,e=a.length,l=b||va;e--;){switch((c=a[e])[""]){case "!":case "<":case "?":if(!b)break;
default:R(c,b);continue;case void 0:if(a[e]=l(c))continue}a.splice(e,1)}return a};S=function(a,b){b=L(b);w.assign(b,a);delete b["::"];(a=a["::"])&&w.assign(b,a);return b};L=function(a){var b=[];b[""]=a||1;return b};N=function(a){var b=a._;b||(a._=b={});b._tag||(b._tag={});!a["var"]&&a.__&&(a["var"]=a.__);return L()};C=function(a,b,c,e){if(1!==a[""])if(wa(a,"_contents",function(){let g=a._c;g?g(a.slice(),b):a[""]=1;return a}),c)wa(a,"_restargs",function(){var g,u={};for(g in this)switch(g[0]){default:0<=
g||c[g]||(u[g]=this[g]);case "_":case void 0:}return u});else return a;var l;(l=w.assign({},b))._=w.assign(a,{_:b._,_tag:w.assign({},b._._tag)});e&&(l[e]=a);return l};V=function(a,b,c){void 0===c[b]&&(c[b]=1!==a.length||a[0][""]?a.length?a:"":a[0])};X=function(a,b,c){var e=c._._tag[b[""]];if(e)return e(a,b,c);if(e=b._c)delete b._c,e(b,c);a.push(b)};Q=function(a,b,c){b._._tag[a]=c};G=function(a,b,c){if((b=(b=Array.isArray(b)?b[0]:VE(a,b))||0)&&0<=b.size)a=b.entries();else if(a=w.entries(b),0<=b.length&&
a.splice(b.length),c)try{a=a.sort(function(e,l){var g,u;e=c(e);l=c(l);var m=0;for(g=e.length;m<g;m++){var d=0;Array.isArray(e[m])&&(d=1,e[m]=e[m][0],l[m]=l[m][0]);if(u=e[m]>l[m]||-(e[m]!==l[m]))break}return d?-u:u})}catch(e){D(e,c)}return a[Symbol.iterator]()};B=function(a,b,c,e){for(var l=0;l<c.length;){let g=c[l++];switch(g[""]){default:B(a,b,g,e);return;case e:b.push(C(g,a));case void 0:}}};T=function(a){var b=a.split(gb),c;a="$";for(c of b)a+=xa(c);return a};Z=function(a,b,c,e){b=Array.isArray(b)?
b[0]:VE(a,b);null==b&&(b="");"function"===typeof b&&(b=b(a._,a));if(b[""])switch(c){case "r":case "recurse":case "":case "none":if(!e)break;default:b=Y(b)}else- -b==b&&(b+="");e&&!b[""]&&sa&&(b=sa(e,b,a));switch(c){case "json":b=JSON.stringify(b).replace(eb,"\\\\u003c");break;case "uric":b=b.replace(cb,Ha);break;default:b[""]||(b=Array.isArray(b)?b.join(", "):b,b=(e=Fa[c])?e(b):b.replace(db,Ja));case "":case "none":case "r":case "recurse":}switch(b.length){case 0:b="";break;case 1:1===b[""]&&(b=b[0])}if("r"===
c)for(c="";b!==c&&0<=b.indexOf("&");)c=b,b=VE(a,["("+ya(b)+")"]);return b};O=function(a,b){var c;if(b)for(c in b)delete b[c];else b=[];Array.isArray(a)||(a.length=0);b=w.assign(b,a);for(c=b.length;c--;)b[c][""]&&(b[c]=O(b[c]));return b};K=function(a,b,c){c[""]?(1===c[""]?b.push.apply(b,O(c)):b.push(c),c=1):c||void 0!==c&&c?(b.push(c),c=1):c=0;return c};sizeof=function(a){return Number(a)===a?1:a?a.length||1!==a[""]||w.keys(a).length:0};desc=function(a){return- -a===a?-a:[a,1]};abstract2dom=function(a,
b){return ia.abstract2dom(a,b)};abstract2txt=Y=function(a,b){for(;;){switch(a[""]){case void 0:return a;case 1:switch(a.length){case 0:return"";case 1:a=a[0];continue}}break}var c,e=a[""];switch(e){case "!":return"\x3c!--"+a[0]+"--\x3e";case "<":return"<!"+a[0]+">";case "?":return"<?"+a[0]+"?>";case 1:e=c="";break;default:c="<"+e;for(var l of w.keys(a).splice(a.length))switch(l[0]){default:var g=a[l];null!=g&&(g[""]&&(g=g.join("")),c+=" "+l,l!==g&&(c+='="'+(g.replace?g.replace(fb,"&dquot;"):g)+'"'));
case "_":case void 0:}if(!a.length)return c+(b&&"br"!==e?"></"+e+">":"/>");c+=">"}for(g=0;void 0!==(l=a[g++]);)c+=l[""]?Y(l,b):l;e&&(c+="</"+e+">");return c};const ia={remixml2js:ka,js2obj:ja,compile:ua,parse2txt:function(a,b,c){ea(a)&&(a=ja(ka(a,c)));return Y(a(b))},abstract2txt:Y,add_filter:function(a,b){Fa[a]=b},set_proc_fmt:function(a){sa=a},set_tag:function(a,b,c,e,l){N(b);Ma(a,b,c,e,l)},set_log_callback:function(a){Ga=a}};"function"==typeof define&&define.amd?define("remixml",[],ia):"object"==
typeof exports?w.assign(exports,ia):bb.Remixml=ia}).call(this);
}).call(this);

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