@coolgk/email
Advanced tools
Comparing version 3.0.2 to 3.0.3
/*! | ||
* @package @coolgk/utils | ||
* @version 2.2.2 | ||
* @version 3.1.4 | ||
* @link https://github.com/coolgk/node-utils | ||
@@ -65,3 +65,3 @@ * @license MIT | ||
private _getMimeType; | ||
constructor(options?: (IEmailOptions | IEmailConfigWithClient)); | ||
constructor(options?: IEmailOptions | IEmailConfigWithClient); | ||
send(options: ISendOptions): Promise<any>; | ||
@@ -68,0 +68,0 @@ private _formatEmailAddress(emails); |
/*! | ||
* @package @coolgk/utils | ||
* @version 2.2.2 | ||
* @version 3.1.4 | ||
* @link https://github.com/coolgk/node-utils | ||
@@ -25,4 +25,5 @@ * @license MIT | ||
constructor(options = { host: 'localhost' }) { | ||
this._emailClient = options.emailClient ? | ||
options.emailClient : emailjs.server.connect(options); | ||
this._emailClient = options.emailClient | ||
? options.emailClient | ||
: emailjs.server.connect(options); | ||
this._stripTags = options.stripTags || string_1.stripTags; | ||
@@ -29,0 +30,0 @@ this._getMimeType = options.getMimeType || mime_types_1.lookup; |
@@ -1,1 +0,1 @@ | ||
{"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"} | ||
{"name":"@coolgk/email","version":"3.0.3","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.18","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
9823
141
Updatedmime-types@^2.1.18