@allthings/cloud-toolkit 2.2.0-dev.1 → 2.2.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +2 -4
- package/dist/lib.esm.js +2 -4
- package/dist/lib.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/lib.cjs.js
CHANGED
|
@@ -312,7 +312,7 @@ const parameterStore = (userConfig) => {
|
|
|
312
312
|
const DEFAULT_CLIENT_CONFIG = {
|
|
313
313
|
clientConfig: { region: 'eu-west-1' },
|
|
314
314
|
};
|
|
315
|
-
const sendMail = async (config, transport, options, from) => {
|
|
315
|
+
const sendMail = async (config, transport, options, from, responseCallback) => {
|
|
316
316
|
try {
|
|
317
317
|
if (!options.html && !options.text) {
|
|
318
318
|
if (config.logger) {
|
|
@@ -330,9 +330,7 @@ const sendMail = async (config, transport, options, from) => {
|
|
|
330
330
|
from,
|
|
331
331
|
...options,
|
|
332
332
|
});
|
|
333
|
-
if (
|
|
334
|
-
config.logger.info(`Transporter response: ${JSON.stringify(transportResponse)}`);
|
|
335
|
-
}
|
|
333
|
+
if (responseCallback) ;
|
|
336
334
|
if (!transportResponse) {
|
|
337
335
|
if (config.logger) {
|
|
338
336
|
config.logger.error('Sending email failed!');
|
package/dist/lib.esm.js
CHANGED
|
@@ -292,7 +292,7 @@ const parameterStore = (userConfig) => {
|
|
|
292
292
|
const DEFAULT_CLIENT_CONFIG = {
|
|
293
293
|
clientConfig: { region: 'eu-west-1' },
|
|
294
294
|
};
|
|
295
|
-
const sendMail = async (config, transport, options, from) => {
|
|
295
|
+
const sendMail = async (config, transport, options, from, responseCallback) => {
|
|
296
296
|
try {
|
|
297
297
|
if (!options.html && !options.text) {
|
|
298
298
|
if (config.logger) {
|
|
@@ -310,9 +310,7 @@ const sendMail = async (config, transport, options, from) => {
|
|
|
310
310
|
from,
|
|
311
311
|
...options,
|
|
312
312
|
});
|
|
313
|
-
if (
|
|
314
|
-
config.logger.info(`Transporter response: ${JSON.stringify(transportResponse)}`);
|
|
315
|
-
}
|
|
313
|
+
if (responseCallback) ;
|
|
316
314
|
if (!transportResponse) {
|
|
317
315
|
if (config.logger) {
|
|
318
316
|
config.logger.error('Sending email failed!');
|