@coolgk/email
Advanced tools
Comparing version 2.0.7 to 3.0.0
@@ -18,3 +18,3 @@ /*! | ||
import { stripTags } from '@coolgk/string'; | ||
export interface IEmailConfig { | ||
export interface IEmailOptions { | ||
readonly host: string; | ||
@@ -52,3 +52,3 @@ readonly stripTags?: typeof stripTags; | ||
} | ||
export interface ISendConfig { | ||
export interface ISendOptions { | ||
readonly subject: string; | ||
@@ -67,6 +67,6 @@ readonly message?: string; | ||
private _getMimeType; | ||
constructor(options?: (IEmailConfig | IEmailConfigWithClient)); | ||
send(options: ISendConfig): Promise<any>; | ||
constructor(options?: (IEmailOptions | IEmailConfigWithClient)); | ||
send(options: ISendOptions): Promise<any>; | ||
private _formatEmailAddress(emails); | ||
} | ||
export default Email; |
@@ -1,1 +0,1 @@ | ||
{"name":"@coolgk/email","version":"2.0.7","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.0","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"} |
9970