@dibs-tech/mail-client
Advanced tools
Comparing version 1.4.0 to 1.4.1
11
index.js
@@ -158,5 +158,12 @@ const SparkPost = require('sparkpost'); | ||
const optionsObj = { force: typeof options === 'boolean' ? options : (options.force || false), html }; | ||
if (typeof options !== 'boolean' && options.attachments) optionsObj.attachments = options.attachments; | ||
let optionsObj; | ||
if (typeof options === 'function') { | ||
cb = options; | ||
optionsObj = { html }; | ||
} else { | ||
optionsObj = { force: typeof options === 'boolean' ? options : (options.force || false), html }; | ||
if (typeof options !== 'boolean' && options.attachments) optionsObj.attachments = options.attachments; | ||
} | ||
this.sendEmail(recepient, subject, '', optionsObj, cb); | ||
@@ -163,0 +170,0 @@ }; |
{ | ||
"name": "@dibs-tech/mail-client", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
7454
159
5
1