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.16 to 6.0.17

2

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

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

@@ -398,3 +398,3 @@ /** @license

{ let /** string */ oldx = "";
while (x !== oldx && x.indexOf("&") >= 0)
while (x !== oldx && x.includes("&"))
{ oldx = /** @type {string} */(x);

@@ -489,3 +489,3 @@ x = VE($, ["(" + substentities(/** @type {string} */(x)) + ")"]);

{ if (0 > expr.indexOf("("))
{ if ((expr = /** @type {string} */(JSON.parse(expr))).indexOf("_") >= 0)
{ if ((expr = /** @type {string} */(JSON.parse(expr))).includes("_"))
expr = "_=$._," + expr;

@@ -497,3 +497,3 @@ expr = protectjs(expr);

: (expr[0] === '"' ? expr.slice(1): '"+' + expr) + '+"';
if (expr.indexOf("{") >= 0)
if (expr.includes("{"))
expr = "(" + expr + ")";

@@ -500,0 +500,0 @@ expr = protectjs('eval("' + expr + '")');

@@ -406,3 +406,3 @@ /** @license

{ let /** string */ oldx = "";
while (x !== oldx && x.indexOf("&") >= 0)
while (x !== oldx && x.includes("&"))
{ oldx = /** @type {string} */(x);

@@ -497,3 +497,3 @@ x = VE($, ["(" + substentities(/** @type {string} */(x)) + ")"]);

{ if (0 > expr.indexOf("("))
{ if ((expr = /** @type {string} */(JSON.parse(expr))).indexOf("_") >= 0)
{ if ((expr = /** @type {string} */(JSON.parse(expr))).includes("_"))
expr = "_=$._," + expr;

@@ -505,3 +505,3 @@ expr = protectjs(expr);

: (expr[0] === '"' ? expr.slice(1): '"+' + expr) + '+"';
if (expr.indexOf("{") >= 0)
if (expr.includes("{"))
expr = "(" + expr + ")";

@@ -508,0 +508,0 @@ expr = protectjs('eval("' + expr + '")');

@@ -16,3 +16,3 @@ (function(){"use strict";

"."+a:'["'+a+'"]'}function ya(a){var b="",c="",e;for(za.lastIndex=0;e=aa(za,a);)b=e[1]?b+(c+"(function(){"+Aa(e)+'return x}catch(x){}return ""})()'):b+(c+JSON.stringify(e[0])),c="+";return b}function Ba(a,b,c){a="try{let x=Z($,"+da(a);b&&(a+=","+b);c&&(b||(a+=",0"),a+=","+c);return a+");"}function Aa(a){var b=a[2],c=a[3];return Ba(JSON.stringify(a[1]),ea(b)&&JSON.stringify(b),c&&JSON.stringify(c))}function la(a){return"(function(){try{return("+a+')}catch(x){D(x)}return ""})()'}function Ca(a){return"(_=$._,"+
(a?la(a):'""')+")"}function ca(a){a&&(0>a.indexOf("(")?(0<=(a=JSON.parse(a)).indexOf("_")&&(a="_=$._,"+a),a=la(a)):(a='"'===a.slice(-1)?'"'===a[0]?a.slice(1,-1):'"+'+a.slice(0,-1):('"'===a[0]?a.slice(1):'"+'+a)+'+"',0<=a.indexOf("{")&&(a="("+a+")"),a=la('eval("'+a+'")'),a=0>a.indexOf("_")?a:"(_=$._,"+a+")"));return a}function ka(a,b){function c(n,v){var ma=D,H=a.slice(0,t),fa=(H.match(Qa)||"").length+1;H=H.match(Ra)[0].length+1;ma(v+" at "+(fa+":"+H),a.substr(t-64,128+(n?n.length:0)))}function e(){2===
(a?la(a):'""')+")"}function ca(a){a&&(0>a.indexOf("(")?((a=JSON.parse(a)).includes("_")&&(a="_=$._,"+a),a=la(a)):(a='"'===a.slice(-1)?'"'===a[0]?a.slice(1,-1):'"+'+a.slice(0,-1):('"'===a[0]?a.slice(1):'"+'+a)+'+"',a.includes("{")&&(a="("+a+")"),a=la('eval("'+a+'")'),a=0>a.indexOf("_")?a:"(_=$._,"+a+")"));return a}function ka(a,b){function c(n,v){var ma=D,H=a.slice(0,t),fa=(H.match(Qa)||"").length+1;H=H.match(Ra)[0].length+1;ma(v+" at "+(fa+":"+H),a.substr(t-64,128+(n?n.length:0)))}function e(){2===
(p[2]&6)&&(p[2]|=4,d+="H._c=function(H,$){")}function l(n,v){I||(d+='H.push(W=L("'+n[0][0]+'"));W[0]='+JSON.stringify(n[v])+";")}var g=b&4;const u=g?"async ":"";var m=g?"await ":"",d="("+u+'function($){"use strict";var I,W,_,H=N($);',I=g=0;const na="w,v="+u+"function(){"+m+"w();",Da=")};w=("+u+"function(W){",Ea="});"+m+"v()}",Sa=m+"X(J,H,$)";m="do{if((k=Y(H))===m)break;H="+m+"E(m=k,$"+(b?","+b:"")+")}while(--n);J.push.apply(J,H)}";for(var x,p=[0,{},4,""],ba=[p],t=0;;){var q,f="";if(t>=a.length){var r=

@@ -37,3 +37,3 @@ p[0];if(r){c(r,"Missing </"+r+">");a+="</"+r+">";continue}break}a:switch(a[t]){case "<":r=function(){q=aa(ha,a);q[1]?c(0,'Skipping malformed parameter "'+q[1]+'"'):q||c(0,"Parse error");return y=q[2]};var z=function(v,ma){var H=h("mkmapping");if(H){let fa=H.slice(1,-1).split(Ta);for(d+=v;H=fa.pop();)d+=ma+xa(H)+"=k["+fa.length+"];"}else if(""===H)return 1},h=function(v){return(v=n[v])&&ya(v)};oa.lastIndex=++t;if(q=aa(oa,a)){t=oa.lastIndex;I||(q[1]?l(q,1):q[2]?(q[0]="<",l(q,2)):(pa.lastIndex=0,aa(pa,

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,
c)for(c="";b!==c&&b.includes("&");)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)+'"'));

@@ -40,0 +40,0 @@ 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"==

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