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

winston-mail

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-mail - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

6

changelog.md
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 @@ ==================

13

lib/winston-mail.js

@@ -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": [

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