@coolgk/email
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -22,2 +22,3 @@ /*! | ||
const string_1 = require("@coolgk/string"); | ||
const array_1 = require("@coolgk/array"); | ||
class Email { | ||
@@ -33,7 +34,7 @@ constructor(options = { host: 'localhost' }) { | ||
if (options[field]) { | ||
options[field] = this._formatEmailAddress(field === 'from' ? [options[field]] : options[field]); | ||
options[field] = this._formatEmailAddress(array_1.toArray(options[field])); | ||
} | ||
}); | ||
if (options.attachments) { | ||
options.attachments.forEach((attachment) => { | ||
array_1.toArray(options.attachments).forEach((attachment) => { | ||
if (!attachment.name) { | ||
@@ -40,0 +41,0 @@ attachment.name = path_1.basename(attachment.path); |
@@ -1,1 +0,1 @@ | ||
{"name":"@coolgk/email","version":"3.0.1","author":"Daniel Gong <daniel.k.gong@gmail.com>","homepage":"https://github.com/coolgk/node-utils","bugs":{"url":"https://github.com/coolgk/node-utils/issues"},"repository":{"type":"git","url":"https://github.com/coolgk/node-utils.git"},"description":"a email sender wrapper class","keywords":["email","smtp sender","typescript"],"dependencies":{"mime-types":"^2.1.17","emailjs":"^2.0.0","@coolgk/string":"^2","@types/mime-types":"^2.1.0"},"main":"./email.js","types":"./email.d.ts","license":"MIT"} | ||
{"name":"@coolgk/email","version":"3.0.2","author":"Daniel Gong <daniel.k.gong@gmail.com>","homepage":"https://github.com/coolgk/node-utils","bugs":{"url":"https://github.com/coolgk/node-utils/issues"},"repository":{"type":"git","url":"https://github.com/coolgk/node-utils.git"},"description":"a email sender wrapper class","keywords":["email","smtp sender","typescript"],"dependencies":{"mime-types":"^2.1.17","emailjs":"^2.0.0","@coolgk/string":"^2","@coolgk/array":"^2","@types/mime-types":"^2.1.0"},"main":"./email.js","types":"./email.d.ts","license":"MIT"} |
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
9813
140
5
+ Added@coolgk/array@^2
+ Added@coolgk/array@2.0.5(transitive)