@open-source-initiative/notify-email
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@open-source-initiative/notify-email", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Nodemailer wrapper for simple \"send email\" cases", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
import nodemailer from 'nodemailer' | ||
export const BASE_CONFIGS = { | ||
secure: true, | ||
tls: { | ||
rejectUnauthorized: true | ||
} | ||
} | ||
export const buildBasicConfigs = ({ host, port, username, password }: { host: string, port?: number, username: string, password: string }, configs: nodemailer.TransportOptions) => { | ||
export const buildBasicConfigs = ({ host, port, username, password }: { host: string, port?: number, username: string, password: string }, configs?: nodemailer.TransportOptions) => { | ||
return { | ||
@@ -21,2 +14,10 @@ ...BASE_CONFIGS, | ||
} | ||
} | ||
} | ||
export const BASE_CONFIGS = { | ||
secure: true, | ||
tls: { | ||
rejectUnauthorized: true | ||
} | ||
} | ||
22726
247