@dibs-tech/mail-client
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -153,3 +153,3 @@ const SparkPost = require('sparkpost'); | ||
*/ | ||
MailClient.prototype.sendCustomTemplatedEmail = function(recipient, subject, templateLink, data, options, cb) { | ||
MailClient.prototype.sendCustomTemplatedEmail = function sendCustomTemplatedEmail(recipient, subject, templateLink, data, options, cb) { | ||
axios | ||
@@ -178,3 +178,3 @@ .get(templateLink) | ||
* @instance | ||
* @param {string} recepient the recip | ||
* @param {string} recipient the recip | ||
* @param {string} subject the subject | ||
@@ -188,5 +188,3 @@ * @param {string} templateName the template name | ||
*/ | ||
MailClient.prototype.sendTemplatedEmail = function sendTemplatedEmail(isCustomTemplate = false, recipient, subject, templateLink, data, options, cb) { // eslint-disable-line max-len | ||
if (isCustomTemplate) return this.sendCustomTemplatedEmail(recipient, subject, templateLink, data, options, cb); | ||
MailClient.prototype.sendTemplatedEmail = function sendTemplatedEmail(recipient, subject, templateName, data, options, cb) { // eslint-disable-line max-len | ||
const source = fs.readFileSync(path.join(path.resolve('.'), 'email/templates/', `${templateName}.hbs`), 'utf-8'); | ||
@@ -193,0 +191,0 @@ const template = handlebars.compile(source); |
{ | ||
"name": "@dibs-tech/mail-client", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "A mail client implementation, using sparkpost", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
8857
193