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

nodemailer-express-handlebars

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer-express-handlebars - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

18

lib/generator.js

@@ -20,11 +20,21 @@ 'use strict';

var templatePath = path.join(this.viewPath, mail.data.template + this.extName);
var textTemplatePath='';
if (!!mail.data.text_template) {
textTemplatePath=path.join(this.viewPath, mail.data.text_template + this.extName);
}
var viewEngine=this.viewEngine;
this.viewEngine.renderView(templatePath, mail.data.context, function(err, body) {
if (err) return cb(err);
mail.data.html = body;
cb();
if(!mail.data.text_template)cb();
else{
viewEngine.renderView(textTemplatePath, mail.data.context, function(err, body) {
if (err) return cb(err);
mail.data.text = body;
cb();
});
}
});
};
module.exports = TemplateGenerator;
module.exports = TemplateGenerator;
{
"name": "nodemailer-express-handlebars",
"version": "4.0.0",
"version": "5.0.0",
"description": "A plugin for nodemailer that uses express-handlebars view engine to generate emails",

@@ -24,3 +24,3 @@ "main": "index.js",

"dependencies": {
"express-handlebars": "^4.0.0"
"express-handlebars": "^6.0.0"
},

@@ -27,0 +27,0 @@ "devDependencies": {

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