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

crox

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crox - npm Package Compare versions

Comparing version 1.4.6 to 1.4.7

10

build/crox-all-min.js
/*
Crox v1.4.6
Crox v1.4.7
https://github.com/thx/crox
Released under the MIT license
md5: 69d567f2db57da947949558ab32d1fbc
md5: 70a0da69436018c598b888ea04b86f56
*/

@@ -28,4 +28,4 @@ (function(E){var t=function(){function t(a,c){this.row=a;this.col=c}function E(a,c){var e=a.substring(0,c),h=e.match(/\r\n?|\n/g),d=1;h&&(d+=h.length);e=1+/[^\r\n]*$/.exec(e)[0].length;return new t(d,e)}function J(a){return'"'+a.replace(/[\x00-\x1f"\\\u2028\u2029]/g,function(a){switch(a){case '"':return'\\"';case "\\":return"\\\\";case "\b":return"\\b";case "\f":return"\\f";case "\n":return"\\n";case "\r":return"\\r";case "\t":return"\\t"}return"\\u"+("000"+a.charCodeAt(0).toString(16)).slice(-4)})+

a+" ")||"null"==a)throw Error("Reserved: "+a+" "+E(this.source,this.index));return"realId"}}],[/"(?:[^"\\]|\\[\s\S])*"|'(?:[^'\\]|\\[\s\S])*'/,function(a){return"string"}],[/\d+(?:\.\d+)?(?:e-?\d+)?/,function(a){return"number"}],[/{(?!{)/,function(a){return"{"}],[/}(?!})/,function(a){return"}"}],[function(a){a.sort().reverse();for(var e=0;e<a.length;++e)a[e]=a[e].replace(/[()*+?.[\]|]/g,"\\$&");return RegExp(a.join("|"))}("! % && ( ) * + - . / < <= = > >= [ ] || === !== == != , : ?".split(" ")),function(a){return/[*/%]/.test(a)?
"mul":/[<>]/.test(a)?"rel":/[!=]=/.test(a)?"eq":a}]];return P({"":[[/(?:(?!{{)[\s\S])+/,function(a){return"text"}],[/{{{/,function(a){this.pushState(a);return a}],[/{{(?:\/if|else|\/each|\/forin|\/raw)}}/,function(a){return a}],[/{{#raw}}/,function(a){this.pushState("raw");return a}],[/{{<script>[\s\S]*?<\/script>}}/,function(a){return"script"}],[/{{(?:#(?:if|each|forin)(?=\s))?/,function(a){this.pushState("{{");return a}]],raw:[[/(?:(?!{{\/raw}})[\s\S])+/,function(a){this.popState();return"rawtext"}]],
"{{":a.concat([[/}}/,function(a){this.popState();return a}]]),"{{{":a.concat([[/}}}/,function(a){this.popState();return a}]])})}(),R=function(){var a={nStart:43,tSymbols:"$ ! && ( ) + , - . : = ? [ ] boolean eq include mul null number rawtext realId rel script set string text { {{ {{#each {{#forin {{#if {{#raw}} {{/each}} {{/forin}} {{/if}} {{/raw}} {{else}} {{{ || } }} }}} AdditiveExpression ArrayLiteral ConditionalExpression ElementList Elision EqualityExpression LogicalAndExpression LogicalOrExpression MemberExpression MultiplicativeExpression ObjectLiteral PrimaryExpression PropertyAssignment PropertyNameAndValueList RelationalExpression UnaryExpression _text args empty expr id name program statement statements texts program'".split(" "),
"mul":/[<>]/.test(a)?"rel":/[!=]=/.test(a)?"eq":a}]];return P({"":[[/(?:(?!{{)[\s\S])+/,function(a){return"text"}],[/{{{/,function(a){this.pushState(a);return a}],[/{{(?:\/if|else|\/each|\/forin|\/raw)}}/,function(a){return a}],[/{{#raw}}/,function(a){this.pushState("raw");return a}],[/{{<script>[\s\S]*?<\/script>}}/,function(a){return"script"}],[/{{\*[\s\S]*\*}}/],[/{{(?!\*)(?:#(?:if|each|forin)(?=\s))?/,function(a){this.pushState("{{");return a}]],raw:[[/(?:(?!{{\/raw}})[\s\S])+/,function(a){this.popState();
return"rawtext"}]],"{{":a.concat([[/}}/,function(a){this.popState();return a}]]),"{{{":a.concat([[/}}}/,function(a){this.popState();return a}]])})}(),R=function(){var a={nStart:43,tSymbols:"$ ! && ( ) + , - . : = ? [ ] boolean eq include mul null number rawtext realId rel script set string text { {{ {{#each {{#forin {{#if {{#raw}} {{/each}} {{/forin}} {{/if}} {{/raw}} {{else}} {{{ || } }} }}} AdditiveExpression ArrayLiteral ConditionalExpression ElementList Elision EqualityExpression LogicalAndExpression LogicalOrExpression MemberExpression MultiplicativeExpression ObjectLiteral PrimaryExpression PropertyAssignment PropertyNameAndValueList RelationalExpression UnaryExpression _text args empty expr id name program statement statements texts program'".split(" "),
actionList:[{_:-1},{23:5,26:11,28:9,29:7,30:8,31:6,32:12,38:10,_:-32768},{_:-2},{26:11,32:12,_:-15},{_:-19},{_:-3},{1:38,3:34,7:39,12:36,14:33,16:29,18:35,19:32,21:31,24:28,25:30,27:37,_:0},{1:38,3:34,7:39,12:36,14:33,16:44,18:35,19:32,21:31,24:43,25:30,27:37,_:0},{_:-21},{20:46,_:0},{_:-20},{_:-29},{_:-47},{_:-31},{_:-32},{3:47,8:49,12:48,_:-54},{_:-57},{17:50,_:-59},{5:52,7:51,_:-62},{22:53,_:-64},{15:54,_:-66},{2:55,_:-68},{11:57,39:56,_:-70},{_:-72},{41:58,_:0},{_:-24},{_:-25},{_:-26},{_:-23},

@@ -47,3 +47,3 @@ {_:-27},{_:-28},{_:-33},{6:64,13:63,_:-73},{16:29,21:31,24:28,25:69,40:70,_:0},{16:29,21:31,24:28,25:69,_:0},{41:75,_:0},{3:34,12:36,14:33,16:29,18:35,19:32,21:31,24:28,25:30,27:37,_:-24},{25:77,_:-25},{42:78,_:0},{36:79,_:0},{1:38,3:34,7:39,12:36,14:33,16:29,18:35,19:32,21:31,24:28,25:30,27:37,_:-73},{16:29,21:31,24:28,_:0},{_:-4},{4:94,_:0},{6:96,13:95,_:0},{1:38,3:34,6:98,7:39,12:36,14:33,16:29,18:35,19:32,21:31,24:28,25:30,27:37,_:0},{_:-34},{_:-40},{9:100,_:0},{_:-18},{6:101,40:102,_:0},{_:-44},

b,c){a.push(c);return a},,function(a,b){return["!",b]},function(a,b){return["u-",b]},,k,,k,k,,k,,k,,k,,k,,function(a,b,c,d,e){return["cond",a,c,e]}];B&&(t=function(a,b){var c=u[B[a]];return c[b]||c._});var F=0,v=[0],w=c.scan(),x=[],E={get:function(a){return x[x.length+a]},set:function(a,b){x[x.length+a]=b}};if(e)for(m in e)E[m]=e[m];for(;;)if(m=t(F,n[w.tag]))if(0<m)v.push(F=m),x.push(w),w=c.scan();else if(0>m&&-32768<m){var m=-m,F=A[m],y=F.length-1;v.length-=y;F=l[v[v.length-1]][F[0]];v.push(F);C[m]?
(m=C[m].apply(E,x.splice(x.length-y,y)),x.push(m)):1!=y&&x.splice(x.length-y,y,null)}else return w.tag!=D[0]&&r(),x[0];else{m=[];for(y=0;y<z;++y)t(F,y)&&m.push(D[y]);r("find "+w.tag+"\nexpect "+m.join(" "))}}}();return{parse:I,compile:O,render:function(a,c){return O(a)(c)},compileToPhp:function(a){return T(I(a),!0)},compileToVM:function(a,c){return U(I(a))},version:"1.4.6"}}();"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&(define.amd||
(m=C[m].apply(E,x.splice(x.length-y,y)),x.push(m)):1!=y&&x.splice(x.length-y,y,null)}else return w.tag!=D[0]&&r(),x[0];else{m=[];for(y=0;y<z;++y)t(F,y)&&m.push(D[y]);r("find "+w.tag+"\nexpect "+m.join(" "))}}}();return{parse:I,compile:O,render:function(a,c){return O(a)(c)},compileToPhp:function(a){return T(I(a),!0)},compileToVM:function(a,c){return U(I(a))},version:"1.4.7"}}();"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&(define.amd||
define.cmd)?define(function(){return t}):"undefined"!=typeof KISSY&&KISSY.add(function(){return t});E&&(E.Crox=t)})(this);
/**
* @preserve Crox v1.4.6
* @preserve Crox v1.4.7
* https://github.com/thx/crox
*
* Released under the MIT license
* md5: 69d567f2db57da947949558ab32d1fbc
* md5: 70a0da69436018c598b888ea04b86f56
*/

@@ -322,3 +322,4 @@ (function(root) {var Crox = (function() {

}],
[/{{(?:#(?:if|each|forin)(?=\s))?/, function(a) {
[/{{\*[\s\S]*\*}}/],
[/{{(?!\*)(?:#(?:if|each|forin)(?=\s))?/, function(a) {
this.pushState('{{');

@@ -1081,2 +1082,2 @@ return a;

Crox.version = "1.4.6";return Crox;})();if ( typeof module == "object" && module && typeof module.exports == "object" ) module.exports = Crox;else if (typeof define == "function" && (define.amd || define.cmd) ) define(function () { return Crox; } );else if (typeof KISSY != "undefined") KISSY.add(function(){ return Crox; });if (root) root.Crox = Crox; })(this);
Crox.version = "1.4.7";return Crox;})();if ( typeof module == "object" && module && typeof module.exports == "object" ) module.exports = Crox;else if (typeof define == "function" && (define.amd || define.cmd) ) define(function () { return Crox; } );else if (typeof KISSY != "undefined") KISSY.add(function(){ return Crox; });if (root) root.Crox = Crox; })(this);
/*
Crox v1.4.6
Crox v1.4.7
https://github.com/thx/crox
Released under the MIT license
md5: b43312b4facbfcc1de6e08bb420b1df3
md5: ad46af2f62fc3e903f9fd5dbf59e6d19
*/

@@ -21,4 +21,4 @@ (function(x){var q=function(){function q(a,c){this.row=a;this.col=c}function x(a,c){var e=a.substring(0,c),h=e.match(/\r\n?|\n/g),d=1;h&&(d+=h.length);e=1+/[^\r\n]*$/.exec(e)[0].length;return new q(d,e)}function H(a){return'"'+a.replace(/[\x00-\x1f"\\\u2028\u2029]/g,function(a){switch(a){case '"':return'\\"';case "\\":return"\\\\";case "\b":return"\\b";case "\f":return"\\f";case "\n":return"\\n";case "\r":return"\\r";case "\t":return"\\t"}return"\\u"+("000"+a.charCodeAt(0).toString(16)).slice(-4)})+

a+" ")||"null"==a)throw Error("Reserved: "+a+" "+x(this.source,this.index));return"realId"}}],[/"(?:[^"\\]|\\[\s\S])*"|'(?:[^'\\]|\\[\s\S])*'/,function(a){return"string"}],[/\d+(?:\.\d+)?(?:e-?\d+)?/,function(a){return"number"}],[/{(?!{)/,function(a){return"{"}],[/}(?!})/,function(a){return"}"}],[function(a){a.sort().reverse();for(var e=0;e<a.length;++e)a[e]=a[e].replace(/[()*+?.[\]|]/g,"\\$&");return RegExp(a.join("|"))}("! % && ( ) * + - . / < <= = > >= [ ] || === !== == != , : ?".split(" ")),function(a){return/[*/%]/.test(a)?
"mul":/[<>]/.test(a)?"rel":/[!=]=/.test(a)?"eq":a}]];return S({"":[[/(?:(?!{{)[\s\S])+/,function(a){return"text"}],[/{{{/,function(a){this.pushState(a);return a}],[/{{(?:\/if|else|\/each|\/forin|\/raw)}}/,function(a){return a}],[/{{#raw}}/,function(a){this.pushState("raw");return a}],[/{{<script>[\s\S]*?<\/script>}}/,function(a){return"script"}],[/{{(?:#(?:if|each|forin)(?=\s))?/,function(a){this.pushState("{{");return a}]],raw:[[/(?:(?!{{\/raw}})[\s\S])+/,function(a){this.popState();return"rawtext"}]],
"{{":a.concat([[/}}/,function(a){this.popState();return a}]]),"{{{":a.concat([[/}}}/,function(a){this.popState();return a}]])})}(),U=function(){var a={nStart:43,tSymbols:"$ ! && ( ) + , - . : = ? [ ] boolean eq include mul null number rawtext realId rel script set string text { {{ {{#each {{#forin {{#if {{#raw}} {{/each}} {{/forin}} {{/if}} {{/raw}} {{else}} {{{ || } }} }}} AdditiveExpression ArrayLiteral ConditionalExpression ElementList Elision EqualityExpression LogicalAndExpression LogicalOrExpression MemberExpression MultiplicativeExpression ObjectLiteral PrimaryExpression PropertyAssignment PropertyNameAndValueList RelationalExpression UnaryExpression _text args empty expr id name program statement statements texts program'".split(" "),
"mul":/[<>]/.test(a)?"rel":/[!=]=/.test(a)?"eq":a}]];return S({"":[[/(?:(?!{{)[\s\S])+/,function(a){return"text"}],[/{{{/,function(a){this.pushState(a);return a}],[/{{(?:\/if|else|\/each|\/forin|\/raw)}}/,function(a){return a}],[/{{#raw}}/,function(a){this.pushState("raw");return a}],[/{{<script>[\s\S]*?<\/script>}}/,function(a){return"script"}],[/{{\*[\s\S]*\*}}/],[/{{(?!\*)(?:#(?:if|each|forin)(?=\s))?/,function(a){this.pushState("{{");return a}]],raw:[[/(?:(?!{{\/raw}})[\s\S])+/,function(a){this.popState();
return"rawtext"}]],"{{":a.concat([[/}}/,function(a){this.popState();return a}]]),"{{{":a.concat([[/}}}/,function(a){this.popState();return a}]])})}(),U=function(){var a={nStart:43,tSymbols:"$ ! && ( ) + , - . : = ? [ ] boolean eq include mul null number rawtext realId rel script set string text { {{ {{#each {{#forin {{#if {{#raw}} {{/each}} {{/forin}} {{/if}} {{/raw}} {{else}} {{{ || } }} }}} AdditiveExpression ArrayLiteral ConditionalExpression ElementList Elision EqualityExpression LogicalAndExpression LogicalOrExpression MemberExpression MultiplicativeExpression ObjectLiteral PrimaryExpression PropertyAssignment PropertyNameAndValueList RelationalExpression UnaryExpression _text args empty expr id name program statement statements texts program'".split(" "),
actionList:[{_:-1},{23:5,26:11,28:9,29:7,30:8,31:6,32:12,38:10,_:-32768},{_:-2},{26:11,32:12,_:-15},{_:-19},{_:-3},{1:38,3:34,7:39,12:36,14:33,16:29,18:35,19:32,21:31,24:28,25:30,27:37,_:0},{1:38,3:34,7:39,12:36,14:33,16:44,18:35,19:32,21:31,24:43,25:30,27:37,_:0},{_:-21},{20:46,_:0},{_:-20},{_:-29},{_:-47},{_:-31},{_:-32},{3:47,8:49,12:48,_:-54},{_:-57},{17:50,_:-59},{5:52,7:51,_:-62},{22:53,_:-64},{15:54,_:-66},{2:55,_:-68},{11:57,39:56,_:-70},{_:-72},{41:58,_:0},{_:-24},{_:-25},{_:-26},{_:-23},

@@ -40,3 +40,3 @@ {_:-27},{_:-28},{_:-33},{6:64,13:63,_:-73},{16:29,21:31,24:28,25:69,40:70,_:0},{16:29,21:31,24:28,25:69,_:0},{41:75,_:0},{3:34,12:36,14:33,16:29,18:35,19:32,21:31,24:28,25:30,27:37,_:-24},{25:77,_:-25},{42:78,_:0},{36:79,_:0},{1:38,3:34,7:39,12:36,14:33,16:29,18:35,19:32,21:31,24:28,25:30,27:37,_:-73},{16:29,21:31,24:28,_:0},{_:-4},{4:94,_:0},{6:96,13:95,_:0},{1:38,3:34,6:98,7:39,12:36,14:33,16:29,18:35,19:32,21:31,24:28,25:30,27:37,_:0},{_:-34},{_:-40},{9:100,_:0},{_:-18},{6:101,40:102,_:0},{_:-44},

b,c){a.push(c);return a},,function(a,b){return["!",b]},function(a,b){return["u-",b]},,y,,y,y,,y,,y,,y,,y,,function(a,b,c,d,e){return["cond",a,c,e]}];z&&(C=function(a,b){var c=p[z[a]];return c[b]||c._});var w=0,G=[0],F=c.scan(),t=[],A={get:function(a){return t[t.length+a]},set:function(a,b){t[t.length+a]=b}};if(e)for(b in e)A[b]=e[b];for(;;)if(b=C(w,l[F.tag]))if(0<b)G.push(w=b),t.push(F),F=c.scan();else if(0>b&&-32768<b){var b=-b,w=x[b],u=w.length-1;G.length-=u;w=f[G[G.length-1]][w[0]];G.push(w);r[b]?
(b=r[b].apply(A,t.splice(t.length-u,u)),t.push(b)):1!=u&&t.splice(t.length-u,u,null)}else return F.tag!=v[0]&&m(),t[0];else{b=[];for(u=0;u<E;++u)C(w,u)&&b.push(v[u]);m("find "+F.tag+"\nexpect "+b.join(" "))}}}();return{parse:Q,compile:R,render:function(a,c){return R(a)(c)},version:"1.4.6"}}();"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=q:"function"==typeof define&&(define.amd||define.cmd)?define(function(){return q}):"undefined"!=typeof KISSY&&KISSY.add(function(){return q});
(b=r[b].apply(A,t.splice(t.length-u,u)),t.push(b)):1!=u&&t.splice(t.length-u,u,null)}else return F.tag!=v[0]&&m(),t[0];else{b=[];for(u=0;u<E;++u)C(w,u)&&b.push(v[u]);m("find "+F.tag+"\nexpect "+b.join(" "))}}}();return{parse:Q,compile:R,render:function(a,c){return R(a)(c)},version:"1.4.7"}}();"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=q:"function"==typeof define&&(define.amd||define.cmd)?define(function(){return q}):"undefined"!=typeof KISSY&&KISSY.add(function(){return q});
x&&(x.Crox=q)})(this);
/**
* @preserve Crox v1.4.6
* @preserve Crox v1.4.7
* https://github.com/thx/crox
*
* Released under the MIT license
* md5: b43312b4facbfcc1de6e08bb420b1df3
* md5: ad46af2f62fc3e903f9fd5dbf59e6d19
*/

@@ -322,3 +322,4 @@ (function(root) {var Crox = (function() {

}],
[/{{(?:#(?:if|each|forin)(?=\s))?/, function(a) {
[/{{\*[\s\S]*\*}}/],
[/{{(?!\*)(?:#(?:if|each|forin)(?=\s))?/, function(a) {
this.pushState('{{');

@@ -813,2 +814,2 @@ return a;

Crox.version = "1.4.6";return Crox;})();if ( typeof module == "object" && module && typeof module.exports == "object" ) module.exports = Crox;else if (typeof define == "function" && (define.amd || define.cmd) ) define(function () { return Crox; } );else if (typeof KISSY != "undefined") KISSY.add(function(){ return Crox; });if (root) root.Crox = Crox; })(this);
Crox.version = "1.4.7";return Crox;})();if ( typeof module == "object" && module && typeof module.exports == "object" ) module.exports = Crox;else if (typeof define == "function" && (define.amd || define.cmd) ) define(function () { return Crox; } );else if (typeof KISSY != "undefined") KISSY.add(function(){ return Crox; });if (root) root.Crox = Crox; })(this);
/*
Crox v1.4.6
Crox v1.4.7
https://github.com/thx/crox
Released under the MIT license
md5: f833184c125c428c92d517eb4c65698d
md5: e146a5d78a6b80dd7324ca8bfbf01967
*/

@@ -14,5 +14,5 @@ KISSY.add("crox",function(){function v(b,a){this.row=b;this.col=a}function x(b,a){var e=b.substring(0,a),h=e.match(/\r\n?|\n/g),q=1;h&&(q+=h.length);e=1+/[^\r\n]*$/.exec(e)[0].length;return new v(q,e)}function A(b){return'"'+b.replace(/[\x00-\x1f"\\\u2028\u2029]/g,function(a){switch(a){case '"':return'\\"';case "\\":return"\\\\";case "\b":return"\\b";case "\f":return"\\f";case "\n":return"\\n";case "\r":return"\\r";case "\t":return"\\t"}return"\\u"+("000"+a.charCodeAt(0).toString(16)).slice(-4)})+

a+" ")||"null"==a)throw Error("Reserved: "+a+" "+x(this.source,this.index));return"realId"}}],[/"(?:[^"\\]|\\[\s\S])*"|'(?:[^'\\]|\\[\s\S])*'/,function(a){return"string"}],[/\d+(?:\.\d+)?(?:e-?\d+)?/,function(a){return"number"}],[/{(?!{)/,function(a){return"{"}],[/}(?!})/,function(a){return"}"}],[function(a){a.sort().reverse();for(var b=0;b<a.length;++b)a[b]=a[b].replace(/[()*+?.[\]|]/g,"\\$&");return RegExp(a.join("|"))}("! % && ( ) * + - . / < <= = > >= [ ] || === !== == != , : ?".split(" ")),function(a){return/[*/%]/.test(a)?
"mul":/[<>]/.test(a)?"rel":/[!=]=/.test(a)?"eq":a}]];return C({"":[[/(?:(?!{{)[\s\S])+/,function(a){return"text"}],[/{{{/,function(a){this.pushState(a);return a}],[/{{(?:\/if|else|\/each|\/forin|\/raw)}}/,function(a){return a}],[/{{#raw}}/,function(a){this.pushState("raw");return a}],[/{{<script>[\s\S]*?<\/script>}}/,function(a){return"script"}],[/{{(?:#(?:if|each|forin)(?=\s))?/,function(a){this.pushState("{{");return a}]],raw:[[/(?:(?!{{\/raw}})[\s\S])+/,function(a){this.popState();return"rawtext"}]],
"{{":b.concat([[/}}/,function(a){this.popState();return a}]]),"{{{":b.concat([[/}}}/,function(a){this.popState();return a}]])})}(),D=function(){return function(b){function a(a,b){return d[a][b]}for(var e=b.nStart,h=b.tSymbols,q={},f=0;f<h.length;++f)q[h[f]]=f;var d=b.tAction,t=b.tGoto,u=b.tRules,c=b.tFuncs,r=b.actionIndex;r&&(a=function(a,b){var t=d[r[a]];return t[b]||t._});return function(b,k){function d(a){throw Error("Syntax error: "+b.getPos(m.index)+(a?"\n"+a:""));}var r=0,l=[0],m=b.scan(),g=
[],p={get:function(a){return g[g.length+a]},set:function(a,b){g[g.length+a]=b}};if(k)for(var n in k)p[n]=k[n];for(;;)if(n=a(r,q[m.tag]))if(0<n)l.push(r=n),g.push(m),m=b.scan();else if(0>n&&-32768<n){n=-n;var r=u[n],f=r.length-1;l.length-=f;r=t[l[l.length-1]][r[0]-e];l.push(r);c[n]?(n=c[n].apply(p,g.splice(g.length-f,f)),g.push(n)):1!=f&&g.splice(g.length-f,f,null)}else return m.tag!=h[0]&&d(),g[0];else{n=[];for(f=0;f<e;++f)a(r,f)&&n.push(h[f]);d("find "+m.tag+"\nexpect "+n.join(" "))}}}({nStart:37,
"mul":/[<>]/.test(a)?"rel":/[!=]=/.test(a)?"eq":a}]];return C({"":[[/(?:(?!{{)[\s\S])+/,function(a){return"text"}],[/{{{/,function(a){this.pushState(a);return a}],[/{{(?:\/if|else|\/each|\/forin|\/raw)}}/,function(a){return a}],[/{{#raw}}/,function(a){this.pushState("raw");return a}],[/{{<script>[\s\S]*?<\/script>}}/,function(a){return"script"}],[/{{\*[\s\S]*\*}}/],[/{{(?!\*)(?:#(?:if|each|forin)(?=\s))?/,function(a){this.pushState("{{");return a}]],raw:[[/(?:(?!{{\/raw}})[\s\S])+/,function(a){this.popState();
return"rawtext"}]],"{{":b.concat([[/}}/,function(a){this.popState();return a}]]),"{{{":b.concat([[/}}}/,function(a){this.popState();return a}]])})}(),D=function(){return function(b){function a(a,b){return d[a][b]}for(var e=b.nStart,h=b.tSymbols,q={},f=0;f<h.length;++f)q[h[f]]=f;var d=b.tAction,t=b.tGoto,u=b.tRules,c=b.tFuncs,r=b.actionIndex;r&&(a=function(a,b){var t=d[r[a]];return t[b]||t._});return function(b,k){function d(a){throw Error("Syntax error: "+b.getPos(m.index)+(a?"\n"+a:""));}var r=0,
l=[0],m=b.scan(),g=[],p={get:function(a){return g[g.length+a]},set:function(a,b){g[g.length+a]=b}};if(k)for(var n in k)p[n]=k[n];for(;;)if(n=a(r,q[m.tag]))if(0<n)l.push(r=n),g.push(m),m=b.scan();else if(0>n&&-32768<n){n=-n;var r=u[n],f=r.length-1;l.length-=f;r=t[l[l.length-1]][r[0]-e];l.push(r);c[n]?(n=c[n].apply(p,g.splice(g.length-f,f)),g.push(n)):1!=f&&g.splice(g.length-f,f,null)}else return m.tag!=h[0]&&d(),g[0];else{n=[];for(f=0;f<e;++f)a(r,f)&&n.push(h[f]);d("find "+m.tag+"\nexpect "+n.join(" "))}}}({nStart:37,
tSymbols:"$ ! && ( ) + , - . = [ ] boolean eq include mul number rawtext realId rel set string text {{ {{#each {{#forin {{#if {{#raw}} {{/each}} {{/forin}} {{/if}} {{/raw}} {{else}} {{{ || }} }}} AdditiveExpression EqualityExpression LogicalAndExpression LogicalOrExpression MemberExpression MultiplicativeExpression PrimaryExpression RelationalExpression UnaryExpression _text args epsilon expr id name program statement statements texts".split(" "),tAction:[{_:-2},{_:-32768},{22:3,23:4,24:5,25:6,26:7,

@@ -19,0 +19,0 @@ 27:8,33:9,_:-1},{_:-19},{1:13,3:14,7:15,12:16,14:17,16:18,18:19,20:20,21:21,_:0},{1:13,3:14,7:15,12:16,14:33,16:18,18:19,20:34,21:21,_:0},{17:38,_:0},{_:-17},{_:-3},{22:3,27:8,_:-13},{_:-26},{21:44,_:-23},{_:-25},{_:-21},{14:33,18:19,20:34,_:-22},{_:-24},{5:46,7:47,_:-44},{13:48,_:-48},{2:49,_:-50},{34:50,_:-52},{3:51,8:52,10:53,_:-36},{15:54,_:-41},{_:-29},{19:55,_:-46},{_:-39},{35:56,_:0},{_:-27},{_:-23},{_:-22},{14:33,18:19,20:34,21:57,_:0},{35:61,_:0},{31:62,_:0},{36:63,_:0},{_:-18},{_:-37},{4:64,

/**
* @preserve Crox v1.4.6
* @preserve Crox v1.4.7
* https://github.com/thx/crox
*
* Released under the MIT license
* md5: f833184c125c428c92d517eb4c65698d
* md5: e146a5d78a6b80dd7324ca8bfbf01967
*/

@@ -321,3 +321,4 @@ KISSY.add("crox", function(){function Class(base, constructor, methods) {

}],
[/{{(?:#(?:if|each|forin)(?=\s))?/, function(a) {
[/{{\*[\s\S]*\*}}/],
[/{{(?!\*)(?:#(?:if|each|forin)(?=\s))?/, function(a) {
this.pushState('{{');

@@ -324,0 +325,0 @@ return a;

{
"name": "crox",
"version": "1.4.6",
"version": "1.4.7",
"description": "Crox is a high performance cross-language template engine, written by the JavaScript.",

@@ -5,0 +5,0 @@ "homepage": "http://thx.github.io/crox/",

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