lambda-monitor-logger
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -5,7 +5,8 @@ "use strict"; | ||
const emailFormat = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/; | ||
module.exports = { | ||
notify: obj => { | ||
Joi.assert(obj, Joi.object().keys({ | ||
from: Joi.string().email(), | ||
to: Joi.string().email(), | ||
from: Joi.string().pattern(emailFormat), | ||
to: Joi.string().pattern(emailFormat), | ||
subject: Joi.string(), | ||
@@ -12,0 +13,0 @@ body: Joi.string() |
{ | ||
"name": "lambda-monitor-logger", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Logging designed to be used with lambda-monitor", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
9334
101