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

grunt-fest

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-fest - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

CHANGELOG.md

@@ -0,1 +1,3 @@

v0.1.4
Upgraded dependencies
v0.1.3

@@ -8,2 +10,2 @@ Support for function name within dynamic mappings

v0.1.0
Initial release.
Initial release
{
"name": "grunt-fest",
"description": "Compile Fest templates",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/eprev/grunt-fest",

@@ -28,8 +28,10 @@ "author": {

},
"dependencies": {
"fest": "0.8.0"
},
"devDependencies": {
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-nodeunit": "~0.1.2",
"grunt": "~0.4.0",
"fest": "~0.5.4"
"grunt-contrib-jshint": "0.7.2",
"grunt-contrib-clean": "0.5.0",
"grunt-contrib-nodeunit": "0.2.2",
"grunt": "0.4.2"
},

@@ -36,0 +38,0 @@ "peerDependencies": {

@@ -193,2 +193,6 @@ # grunt-fest [![Build Status](https://travis-ci.org/eprev/grunt-fest.png)](https://travis-ci.org/eprev/grunt-fest)

* 2013-02-22 v0.1.0 First official release.
* 2013-11-27 v0.1.4 Upgraded dependencies
* 2013-05-24 v0.1.3 Support for function name within dynamic mappings
* 2013-03-13 v0.1.2 Added option to name compiled function
* 2013-03-04 v0.1.1 Use of initial compile options
* 2013-02-22 v0.1.0 First official release

@@ -13,2 +13,3 @@ function(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

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

define("qux/bar/baz.js", function () { return function (__fest_context){"use strict";var __fest_self=this,__fest_buf="",__fest_chunks=[],__fest_chunk,__fest_attrs=[],__fest_select,__fest_if,__fest_iterator,__fest_to,__fest_fn,__fest_html="",__fest_blocks={},__fest_params,__fest_element,__fest_debug_file="",__fest_debug_line="",__fest_debug_block="",__fest_htmlchars=/[&<>"]/g,__fest_short_tags = {"area":true,"base":true,"br":true,"col":true,"command":true,"embed":true,"hr":true,"img":true,"input":true,"keygen":true,"link":true,"meta":true,"param":true,"source":true,"wbr":true},__fest_element_stack = [],__fest_htmlhash={"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;"},__fest_jschars=/[\\'"\/\n\r\t\b\f<>]/g,__fest_jshash={"\"":"\\\"","\\":"\\\\","/":"\\/","\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","'":"\\'","<":"\\u003C",">":"\\u003E"},___fest_log_error;if(typeof __fest_error === "undefined"){___fest_log_error = (typeof console !== "undefined" && console.error) ? function(){return Function.prototype.apply.call(console.error, console, arguments)} : function(){};}else{___fest_log_error=__fest_error};function __fest_log_error(msg){___fest_log_error(msg+"\nin block \""+__fest_debug_block+"\" at line: "+__fest_debug_line+"\nfile: "+__fest_debug_file)}function __fest_replaceHTML(chr){return __fest_htmlhash[chr]}function __fest_replaceJS(chr){return __fest_jshash[chr]}function __fest_extend(dest, src){for(var i in src)if(src.hasOwnProperty(i))dest[i]=src[i];}function __fest_param(fn){fn.param=true;return fn}function __fest_call(fn, params,cp){if(cp)for(var i in params)if(typeof params[i]=="function"&&params[i].param)params[i]=params[i]();return fn.call(__fest_self,params)}function __fest_escapeJS(s){if (typeof s==="string") {if (__fest_jschars.test(s))return s.replace(__fest_jschars,__fest_replaceJS);} else if (typeof s==="undefined")return "";return s;}function __fest_escapeHTML(s){if (typeof s==="string") {if (__fest_htmlchars.test(s))return s.replace(__fest_htmlchars,__fest_replaceHTML);} else if (typeof s==="undefined")return "";return s;}__fest_select="block";__fest_params={};try{__fest_params=Grunt}catch(e){__fest_log_error(e.message)}__fest_chunks.push(__fest_buf,{name:__fest_select,params:__fest_params,cp:false});__fest_buf="";__fest_blocks.block=function(params){var __fest_buf="";__fest_buf+=("Hello, ");try{__fest_buf+=(__fest_escapeHTML(params))}catch(e){__fest_log_error(e.message + "3");}__fest_buf+=("!");return __fest_buf;};__fest_to=__fest_chunks.length;if (__fest_to) {__fest_iterator = 0;for (;__fest_iterator<__fest_to;__fest_iterator++) {__fest_chunk=__fest_chunks[__fest_iterator];if (typeof __fest_chunk==="string") {__fest_html+=__fest_chunk;} else {__fest_fn=__fest_blocks[__fest_chunk.name];if (__fest_fn) __fest_html+=__fest_call(__fest_fn,__fest_chunk.params,__fest_chunk.cp);}}return __fest_html+__fest_buf;} else {return __fest_buf;}} ; });
define("qux/bar/baz.js", function () { return function (__fest_context){"use strict";var __fest_self=this,__fest_buf="",__fest_chunks=[],__fest_chunk,__fest_attrs=[],__fest_select,__fest_if,__fest_iterator,__fest_to,__fest_fn,__fest_html="",__fest_blocks={},__fest_params,__fest_element,__fest_debug_file="",__fest_debug_line="",__fest_debug_block="",__fest_htmlchars=/[&<>"]/g,__fest_htmlchars_test=/[&<>"]/,__fest_short_tags = {"area":true,"base":true,"br":true,"col":true,"command":true,"embed":true,"hr":true,"img":true,"input":true,"keygen":true,"link":true,"meta":true,"param":true,"source":true,"wbr":true},__fest_element_stack = [],__fest_htmlhash={"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;"},__fest_jschars=/[\\'"\/\n\r\t\b\f<>]/g,__fest_jschars_test=/[\\'"\/\n\r\t\b\f<>]/,__fest_jshash={"\"":"\\\"","\\":"\\\\","/":"\\/","\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","'":"\\'","<":"\\u003C",">":"\\u003E"},___fest_log_error;if(typeof __fest_error === "undefined"){___fest_log_error = (typeof console !== "undefined" && console.error) ? function(){return Function.prototype.apply.call(console.error, console, arguments)} : function(){};}else{___fest_log_error=__fest_error};function __fest_log_error(msg){___fest_log_error(msg+"\nin block \""+__fest_debug_block+"\" at line: "+__fest_debug_line+"\nfile: "+__fest_debug_file)}function __fest_replaceHTML(chr){return __fest_htmlhash[chr]}function __fest_replaceJS(chr){return __fest_jshash[chr]}function __fest_extend(dest, src){for(var i in src)if(src.hasOwnProperty(i))dest[i]=src[i];}function __fest_param(fn){fn.param=true;return fn}function __fest_call(fn, params,cp){if(cp)for(var i in params)if(typeof params[i]=="function"&&params[i].param)params[i]=params[i]();return fn.call(__fest_self,params)}function __fest_escapeJS(s){if (typeof s==="string") {if (__fest_jschars_test.test(s))return s.replace(__fest_jschars,__fest_replaceJS);} else if (typeof s==="undefined")return "";return s;}function __fest_escapeHTML(s){if (typeof s==="string") {if (__fest_htmlchars_test.test(s))return s.replace(__fest_htmlchars,__fest_replaceHTML);} else if (typeof s==="undefined")return "";return s;}__fest_select="block";__fest_params={};try{__fest_params=Grunt}catch(e){__fest_log_error(e.message)}__fest_chunks.push(__fest_buf,{name:__fest_select,params:__fest_params,cp:false});__fest_buf="";__fest_blocks.block=function(params){var __fest_buf="";__fest_buf+=("Hello, ");try{__fest_buf+=(__fest_escapeHTML(params))}catch(e){__fest_log_error(e.message + "3");}__fest_buf+=("!");return __fest_buf;};__fest_to=__fest_chunks.length;if (__fest_to) {__fest_iterator = 0;for (;__fest_iterator<__fest_to;__fest_iterator++) {__fest_chunk=__fest_chunks[__fest_iterator];if (typeof __fest_chunk==="string") {__fest_html+=__fest_chunk;} else {__fest_fn=__fest_blocks[__fest_chunk.name];if (__fest_fn) __fest_html+=__fest_call(__fest_fn,__fest_chunk.params,__fest_chunk.cp);}}return __fest_html+__fest_buf;} else {return __fest_buf;}} ; });

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

define("qux/foo.js", function () { return function (__fest_context){"use strict";var __fest_self=this,__fest_buf="",__fest_chunks=[],__fest_chunk,__fest_attrs=[],__fest_select,__fest_if,__fest_iterator,__fest_to,__fest_fn,__fest_html="",__fest_blocks={},__fest_params,__fest_element,__fest_debug_file="",__fest_debug_line="",__fest_debug_block="",__fest_htmlchars=/[&<>"]/g,__fest_short_tags = {"area":true,"base":true,"br":true,"col":true,"command":true,"embed":true,"hr":true,"img":true,"input":true,"keygen":true,"link":true,"meta":true,"param":true,"source":true,"wbr":true},__fest_element_stack = [],__fest_htmlhash={"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;"},__fest_jschars=/[\\'"\/\n\r\t\b\f<>]/g,__fest_jshash={"\"":"\\\"","\\":"\\\\","/":"\\/","\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","'":"\\'","<":"\\u003C",">":"\\u003E"},___fest_log_error;if(typeof __fest_error === "undefined"){___fest_log_error = (typeof console !== "undefined" && console.error) ? function(){return Function.prototype.apply.call(console.error, console, arguments)} : function(){};}else{___fest_log_error=__fest_error};function __fest_log_error(msg){___fest_log_error(msg+"\nin block \""+__fest_debug_block+"\" at line: "+__fest_debug_line+"\nfile: "+__fest_debug_file)}function __fest_replaceHTML(chr){return __fest_htmlhash[chr]}function __fest_replaceJS(chr){return __fest_jshash[chr]}function __fest_extend(dest, src){for(var i in src)if(src.hasOwnProperty(i))dest[i]=src[i];}function __fest_param(fn){fn.param=true;return fn}function __fest_call(fn, params,cp){if(cp)for(var i in params)if(typeof params[i]=="function"&&params[i].param)params[i]=params[i]();return fn.call(__fest_self,params)}function __fest_escapeJS(s){if (typeof s==="string") {if (__fest_jschars.test(s))return s.replace(__fest_jschars,__fest_replaceJS);} else if (typeof s==="undefined")return "";return s;}function __fest_escapeHTML(s){if (typeof s==="string") {if (__fest_htmlchars.test(s))return s.replace(__fest_htmlchars,__fest_replaceHTML);} else if (typeof s==="undefined")return "";return s;}__fest_buf+=("Test");__fest_to=__fest_chunks.length;if (__fest_to) {__fest_iterator = 0;for (;__fest_iterator<__fest_to;__fest_iterator++) {__fest_chunk=__fest_chunks[__fest_iterator];if (typeof __fest_chunk==="string") {__fest_html+=__fest_chunk;} else {__fest_fn=__fest_blocks[__fest_chunk.name];if (__fest_fn) __fest_html+=__fest_call(__fest_fn,__fest_chunk.params,__fest_chunk.cp);}}return __fest_html+__fest_buf;} else {return __fest_buf;}} ; });
define("qux/foo.js", function () { return function (__fest_context){"use strict";var __fest_self=this,__fest_buf="",__fest_chunks=[],__fest_chunk,__fest_attrs=[],__fest_select,__fest_if,__fest_iterator,__fest_to,__fest_fn,__fest_html="",__fest_blocks={},__fest_params,__fest_element,__fest_debug_file="",__fest_debug_line="",__fest_debug_block="",__fest_htmlchars=/[&<>"]/g,__fest_htmlchars_test=/[&<>"]/,__fest_short_tags = {"area":true,"base":true,"br":true,"col":true,"command":true,"embed":true,"hr":true,"img":true,"input":true,"keygen":true,"link":true,"meta":true,"param":true,"source":true,"wbr":true},__fest_element_stack = [],__fest_htmlhash={"&":"&amp;","<":"&lt;",">":"&gt;","\"":"&quot;"},__fest_jschars=/[\\'"\/\n\r\t\b\f<>]/g,__fest_jschars_test=/[\\'"\/\n\r\t\b\f<>]/,__fest_jshash={"\"":"\\\"","\\":"\\\\","/":"\\/","\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","'":"\\'","<":"\\u003C",">":"\\u003E"},___fest_log_error;if(typeof __fest_error === "undefined"){___fest_log_error = (typeof console !== "undefined" && console.error) ? function(){return Function.prototype.apply.call(console.error, console, arguments)} : function(){};}else{___fest_log_error=__fest_error};function __fest_log_error(msg){___fest_log_error(msg+"\nin block \""+__fest_debug_block+"\" at line: "+__fest_debug_line+"\nfile: "+__fest_debug_file)}function __fest_replaceHTML(chr){return __fest_htmlhash[chr]}function __fest_replaceJS(chr){return __fest_jshash[chr]}function __fest_extend(dest, src){for(var i in src)if(src.hasOwnProperty(i))dest[i]=src[i];}function __fest_param(fn){fn.param=true;return fn}function __fest_call(fn, params,cp){if(cp)for(var i in params)if(typeof params[i]=="function"&&params[i].param)params[i]=params[i]();return fn.call(__fest_self,params)}function __fest_escapeJS(s){if (typeof s==="string") {if (__fest_jschars_test.test(s))return s.replace(__fest_jschars,__fest_replaceJS);} else if (typeof s==="undefined")return "";return s;}function __fest_escapeHTML(s){if (typeof s==="string") {if (__fest_htmlchars_test.test(s))return s.replace(__fest_htmlchars,__fest_replaceHTML);} else if (typeof s==="undefined")return "";return s;}__fest_buf+=("Test");__fest_to=__fest_chunks.length;if (__fest_to) {__fest_iterator = 0;for (;__fest_iterator<__fest_to;__fest_iterator++) {__fest_chunk=__fest_chunks[__fest_iterator];if (typeof __fest_chunk==="string") {__fest_html+=__fest_chunk;} else {__fest_fn=__fest_blocks[__fest_chunk.name];if (__fest_fn) __fest_html+=__fest_call(__fest_fn,__fest_chunk.params,__fest_chunk.cp);}}return __fest_html+__fest_buf;} else {return __fest_buf;}} ; });

@@ -13,2 +13,3 @@ function baz(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function foo(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function foo(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -13,2 +13,3 @@ function(__fest_context) {

__fest_htmlchars = /[&<>"]/g,
__fest_htmlchars_test = /[&<>"]/,
__fest_short_tags = {

@@ -39,2 +40,3 @@ "area": true,

__fest_jschars = /[\\'"\/\n\r\t\b\f<>]/g,
__fest_jschars_test = /[\\'"\/\n\r\t\b\f<>]/,
__fest_jshash = {

@@ -85,3 +87,3 @@ "\"": "\\\"",

if (typeof s === "string") {
if (__fest_jschars.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
if (__fest_jschars_test.test(s)) return s.replace(__fest_jschars, __fest_replaceJS);
} else if (typeof s === "undefined") return "";

@@ -92,3 +94,3 @@ return s;

if (typeof s === "string") {
if (__fest_htmlchars.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
if (__fest_htmlchars_test.test(s)) return s.replace(__fest_htmlchars, __fest_replaceHTML);
} else if (typeof s === "undefined") return "";

@@ -95,0 +97,0 @@ return s;

@@ -32,5 +32,7 @@ 'use strict';

this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/expected/fixtures/' + tpl + '.js');
var expected = grunt.file.read('test/fixtures/' + tpl + '.js');
test.equal(actual, expected);
var actualFn = 'test/expected/fixtures/' + tpl + '.js',
expectedFn = 'test/fixtures/' + tpl + '.js',
actual = grunt.file.read(actualFn),
expected = grunt.file.read(expectedFn);
test.equal(actual, expected, actualFn + ' != ' + expectedFn);
});

@@ -41,5 +43,7 @@ test.done();

this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/expected/fixtures/' + tpl + '.xml.js');
var expected = grunt.file.read('test/fixtures/' + tpl + '.xml.js');
test.equal(actual, expected);
var actualFn = 'test/expected/fixtures/' + tpl + '.xml.js',
expectedFn = 'test/fixtures/' + tpl + '.xml.js',
actual = grunt.file.read(actualFn),
expected = grunt.file.read(expectedFn);
test.equal(actual, expected, actualFn + ' != ' + expectedFn);
});

@@ -50,5 +54,7 @@ test.done();

this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/tmp/test/fixtures/' + tpl + '.js');
var expected = grunt.file.read('test/expected/tmp/test/fixtures/' + tpl + '.js');
test.equal(actual, expected);
var actualFn = 'test/tmp/test/fixtures/' + tpl + '.js',
expectedFn = 'test/expected/tmp/test/fixtures/' + tpl + '.js',
actual = grunt.file.read(actualFn),
expected = grunt.file.read(expectedFn);
test.equal(actual, expected, actualFn + ' != ' + expectedFn);
});

@@ -59,5 +65,7 @@ test.done();

this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/tmp/dynamic/test/fixtures/' + tpl + '.js');
var expected = grunt.file.read('test/expected/tmp/dynamic/test/fixtures/' + tpl + '.js');
test.equal(actual, expected);
var actualFn = 'test/tmp/dynamic/test/fixtures/' + tpl + '.js',
expectedFn = 'test/expected/tmp/dynamic/test/fixtures/' + tpl + '.js',
actual = grunt.file.read(actualFn),
expected = grunt.file.read(expectedFn);
test.equal(actual, expected, actualFn + ' != ' + expectedFn);
});

@@ -68,5 +76,7 @@ test.done();

this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/tmp/dynamic-compiled/' + tpl + '.js');
var expected = grunt.file.read('test/expected/tmp/dynamic-compiled/' + tpl + '.js');
test.equal(actual, expected);
var actualFn = 'test/tmp/dynamic-compiled/' + tpl + '.js',
expectedFn = 'test/expected/tmp/dynamic-compiled/' + tpl + '.js',
actual = grunt.file.read(actualFn),
expected = grunt.file.read(expectedFn);
test.equal(actual, expected, actualFn + ' != ' + expectedFn);
});

@@ -77,5 +87,7 @@ test.done();

['foo'].forEach(function (tpl) {
var actual = grunt.file.read('test/tmp/named/' + tpl + '.js');
var expected = grunt.file.read('test/expected/tmp/named/' + tpl + '.js');
test.equal(actual, expected);
var actualFn = 'test/tmp/named/' + tpl + '.js',
expectedFn = 'test/expected/tmp/named/' + tpl + '.js',
actual = grunt.file.read(actualFn),
expected = grunt.file.read(expectedFn);
test.equal(actual, expected, actualFn + ' != ' + expectedFn);
});

@@ -86,5 +98,7 @@ test.done();

this.templates.forEach(function (tpl) {
var actual = grunt.file.read('test/tmp/dynamic-named/test/fixtures/' + tpl + '.js');
var expected = grunt.file.read('test/expected/tmp/dynamic-named/test/fixtures/' + tpl + '.js');
test.equal(actual, expected);
var actualFn = 'test/tmp/dynamic-named/test/fixtures/' + tpl + '.js',
expectedFn = 'test/expected/tmp/dynamic-named/test/fixtures/' + tpl + '.js',
actual = grunt.file.read(actualFn),
expected = grunt.file.read(expectedFn);
test.equal(actual, expected, actualFn + ' != ' + expectedFn);
});

@@ -91,0 +105,0 @@ test.done();

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