@fastnloud/nest-mail
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -14,7 +14,15 @@ "use strict"; | ||
const validationResult = Joi.object({ | ||
defaultFromAddress: Joi.string().required(), | ||
defaultFromName: Joi.string().required(), | ||
defaultFromAddress: Joi.string().required().messages({ | ||
'*': 'Environment varable MAIL_DEFAULT_FROM_ADDRESS is required (string; e.g. j.doe@example.com)', | ||
}), | ||
defaultFromName: Joi.string().required().messages({ | ||
'*': 'Environment varable MAIL_DEFAULT_FROM_NAME is required (string; e.g. John Doe)', | ||
}), | ||
recipients: Joi.string().optional().allow(''), | ||
url: Joi.string().required(), | ||
}).validate(config, { abortEarly: false }); | ||
url: Joi.string().required().messages({ | ||
'*': 'Environment varable MAIL_URL is required (string; e.g. smtp://localhost:1025)', | ||
}), | ||
}).validate(config, { | ||
abortEarly: false, | ||
}); | ||
if (validationResult.error) { | ||
@@ -21,0 +29,0 @@ throw validationResult.error; |
{ | ||
"name": "@fastnloud/nest-mail", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
93343
139