dustjs-linkedin
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -201,3 +201,3 @@ /*global console */ | ||
else { | ||
dust.log(new Error('Invalid filter [' + name + ']'), ERROR); | ||
dust.log('Invalid filter [' + name + ']', WARN); | ||
} | ||
@@ -425,3 +425,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() {}; | ||
@@ -450,3 +450,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() {}; | ||
@@ -481,3 +481,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); | ||
} | ||
@@ -752,3 +752,3 @@ }; | ||
} else { | ||
dust.log(new Error('Invalid helper [' + name + ']'), ERROR); | ||
dust.log('Invalid helper [' + name + ']', WARN); | ||
return chunk; | ||
@@ -755,0 +755,0 @@ } |
{ | ||
"name": "dustjs-linkedin", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"author": "Aleksander Williams", | ||
@@ -5,0 +5,0 @@ "description": "Asynchronous templates for the browser and node.js ( LinkedIn fork )", |
@@ -22,2 +22,7 @@ dust.testHelpers = {}; | ||
return output; | ||
}; | ||
dust.helpers = {}; | ||
dust.helpers.error = function(chunk, context, bodies, params) { | ||
throw params.errorMessage; | ||
}; |
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
4142535
131
100220
20
61