winston-mail
Advanced tools
Comparing version 0.2.3 to 0.2.4
0.2.4 / 2013-02-12 | ||
================== | ||
* fixed; allow only single line messages in the subject [emergence] | ||
* fixed; changing global underscore templateSettings breaks underscore templating [shawnburke] | ||
0.2.3 / 2012-07-09 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -15,6 +15,9 @@ /* | ||
// Set Underscore to Mustache style templates | ||
_.templateSettings = { | ||
interpolate : /\{\{(.+?)\}\}/g | ||
}; | ||
function template(text, obj) { | ||
return _.template(text,obj, { | ||
interpolate : /\{\{(.+?)\}\}/g | ||
}); | ||
} | ||
/** | ||
@@ -37,3 +40,3 @@ * @constructs Mail | ||
this.silent = options.silent || false; | ||
this.subject = options.subject ? _.template(options.subject) : _.template("winston: {{level}} {{msg}}") | ||
this.subject = options.subject ? template(options.subject) : template("winston: {{level}} {{msg}}") | ||
@@ -81,3 +84,3 @@ this.handleExceptions = options.handleExceptions || false; | ||
to: this.to, | ||
subject: this.subject({level: level, msg: msg}), | ||
subject: this.subject({level: level, msg: msg.split('\n')[0]}), | ||
text: body | ||
@@ -84,0 +87,0 @@ }); |
{ | ||
"name": "winston-mail", | ||
"description": "A mail transport for winston", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"author": "Marc Harter <wavded@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
6763
106
0