dustjs-linkedin
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -190,3 +190,3 @@ var dust = {}; | ||
else { | ||
dust.log(new Error('Invalid filter [' + name + ']'), ERROR); | ||
dust.log('Invalid filter [' + name + ']', WARN); | ||
} | ||
@@ -377,3 +377,3 @@ } | ||
this.callback(chunk.error); | ||
dust.log(new Error('Chunk error [' + chunk.error + '] thrown. Ceasing to render this template.'), ERROR); | ||
dust.log('Chunk error [' + chunk.error + '] thrown. Ceasing to render this template.', WARN); | ||
this.flush = function() {}; | ||
@@ -402,3 +402,3 @@ return; | ||
this.emit('error', chunk.error); | ||
dust.log(new Error('Chunk error [' + chunk.error + '] thrown. Ceasing to render this template.'), ERROR); | ||
dust.log('Chunk error [' + chunk.error + '] thrown. Ceasing to render this template.', WARN); | ||
this.flush = function() {}; | ||
@@ -433,3 +433,3 @@ return; | ||
} else { | ||
dust.log(new Error('Event Handler [' + handler + '] is not of a type that is handled by emit'), ERROR); | ||
dust.log('Event Handler [' + handler + '] is not of a type that is handled by emit', WARN); | ||
} | ||
@@ -703,7 +703,8 @@ }; | ||
} else { | ||
dust.log(new Error('Invalid helper [' + name + ']'), ERROR); | ||
dust.log('Invalid helper [' + name + ']', WARN); | ||
return chunk; | ||
} | ||
} catch (err) { | ||
return dust.log(err, ERROR); | ||
dust.log(err, ERROR); | ||
return chunk; | ||
} | ||
@@ -710,0 +711,0 @@ }; |
{ | ||
"name": "dustjs-linkedin", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"author": "Aleksander Williams", | ||
@@ -5,0 +5,0 @@ "description": "Asynchronous templates for the browser and node.js ( LinkedIn fork )", |
@@ -81,3 +81,10 @@ describe ("Test the basic functionality of dust", function() { | ||
return function(callback) { | ||
setTimeout(callback,0); | ||
setTimeout(function() { | ||
try { | ||
callback(); | ||
} catch(error) { | ||
output = error.message; | ||
flag = true; | ||
} | ||
},0); | ||
}; | ||
@@ -165,3 +172,12 @@ } | ||
return function(callback) { | ||
setTimeout(callback,0); | ||
setTimeout(function() { | ||
try { | ||
callback(); | ||
} catch(error) { | ||
output = error.message; | ||
outputTwo = error.message; | ||
flag = true; | ||
flagTwo = true; | ||
} | ||
}, 0); | ||
}; | ||
@@ -168,0 +184,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3262815
112
78294
12
43