New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

email-cg-lib

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-cg-lib - npm Package Compare versions

Comparing version 0.0.5-SNAPSHOT to 1.0.0

20

lib/email.js

@@ -7,4 +7,2 @@ let nodemailer = require('nodemailer');

return new Promise(async (resolve, reject) => {
let transporter=null;
try {

@@ -28,3 +26,3 @@ log.info('Inside email lib');

transporter = nodemailer.createTransport({
const transporter = nodemailer.createTransport({
//Para GMail ---> host: 'smtp.gmail.com', port: 465,

@@ -51,12 +49,11 @@ //Para Outlook ---> "host":"smtp.gmail.com", "port":465

await transporter.sendMail(mailOptions, function(error, info){
if (error) {return reject(error);}
else {
log.info(constants.SUCCESS_TRANS, info.response);
return resolve({response:'Correo enviado: ' + info.response});}
const result = transporter.sendMail(mailOptions, function(error, info){
if (error) {reject(error);}
else {resolve({response:'Correo enviado: ' + info.response});}
transporter.close();
});
//resolve(result);
resolve(result);
log.info(constants.SUCCESS_TRANS, result)

@@ -69,6 +66,3 @@ }

}
finally{
transporter.close();
}
});
};
{
"name": "email-cg-lib",
"version": "0.0.5-SNAPSHOT",
"version": "1.0.0",
"description": "Email to send emails with basic information.",

@@ -22,2 +22,3 @@ "main": "index.js",

"dependencies": {
"msgbroker-nxg-cg": "^0.1.0",
"nodemailer": "^6.7.5",

@@ -24,0 +25,0 @@ "utils-nxg-cg": "^1.0.7"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc