@coolgk/email
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -19,12 +19,12 @@ /*! | ||
export interface IEmailOptions { | ||
readonly host: string; | ||
readonly stripTags?: typeof stripTags; | ||
readonly getMimeType?: typeof lookup; | ||
readonly user?: string; | ||
readonly password?: string; | ||
readonly port?: number; | ||
readonly ssl?: boolean; | ||
readonly tls?: boolean; | ||
readonly domain?: string; | ||
readonly authentication?: string[]; | ||
host: string; | ||
stripTags?: typeof stripTags; | ||
getMimeType?: typeof lookup; | ||
user?: string; | ||
password?: string; | ||
port?: number; | ||
ssl?: boolean; | ||
tls?: boolean; | ||
domain?: string; | ||
authentication?: string[]; | ||
} | ||
@@ -35,16 +35,16 @@ export interface IEmailClient { | ||
export interface IEmailConfigWithClient { | ||
readonly emailClient: IEmailClient; | ||
readonly stripTags?: typeof stripTags; | ||
readonly getMimeType?: typeof lookup; | ||
emailClient: IEmailClient; | ||
stripTags?: typeof stripTags; | ||
getMimeType?: typeof lookup; | ||
} | ||
export interface IEmailAddress { | ||
name?: string; | ||
readonly email: string; | ||
email: string; | ||
} | ||
export interface IEmailAttachment { | ||
readonly path: string; | ||
path: string; | ||
name?: string; | ||
type?: string; | ||
readonly method?: string; | ||
readonly headers?: { | ||
method?: string; | ||
headers?: { | ||
[propName: string]: string; | ||
@@ -54,9 +54,9 @@ }; | ||
export interface ISendOptions { | ||
readonly subject: string; | ||
readonly message?: string; | ||
readonly from: string | IEmailAddress; | ||
readonly to: (string | IEmailAddress)[]; | ||
readonly cc?: (string | IEmailAddress)[]; | ||
readonly bcc?: (string | IEmailAddress)[]; | ||
readonly attachments?: IEmailAttachment[]; | ||
subject: string; | ||
message?: string; | ||
from: string | IEmailAddress; | ||
to: (string | IEmailAddress)[]; | ||
cc?: (string | IEmailAddress)[]; | ||
bcc?: (string | IEmailAddress)[]; | ||
attachments?: IEmailAttachment[]; | ||
[key: string]: any; | ||
@@ -63,0 +63,0 @@ } |
@@ -1,1 +0,1 @@ | ||
{"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"} | ||
{"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"} |
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
9754