Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awsm-mailer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awsm-mailer - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

5

lib/mailer.js

@@ -9,2 +9,3 @@ 'use strict';

var TEMPLATES_DIR = '../../../aws_modules/awsm-mailer/mailer/templates/';
var emailRegex = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

@@ -24,2 +25,6 @@ module.exports.send = function(event) {

if (!emailRegex.test(event.from) || !emailRegex.test(event.to)) {
return cb(new Error('Please provide valid email addresses.'));
}
var templateDir = path.join(__dirname, TEMPLATES_DIR, event.template);

@@ -26,0 +31,0 @@ var template = new EmailTemplate(templateDir);

2

package.json
{
"name": "awsm-mailer",
"version": "1.3.5",
"version": "1.3.6",
"description": "AWSM package for sending emails.",

@@ -5,0 +5,0 @@ "main": "lib/mailer.js",

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