@allthings/cloud-toolkit 2.2.0-dev.1 → 2.2.0-dev.2

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 CHANGED
@@ -330,8 +330,8 @@ const sendMail = async (config, transport, options, from) => {
330
330
  from,
331
331
  ...options,
332
332
  });
333
- if (config.logger) {
334
- config.logger.info(`Transporter response: ${JSON.stringify(transportResponse)}`);
333
+ if (config.responseCallback) {
334
+ await config.responseCallback(transportResponse);
335
335
  }
336
336
  if (!transportResponse) {
337
337
  if (config.logger) {
package/dist/lib.esm.js CHANGED
@@ -310,8 +310,8 @@ const sendMail = async (config, transport, options, from) => {
310
310
  from,
311
311
  ...options,
312
312
  });
313
- if (config.logger) {
314
- config.logger.info(`Transporter response: ${JSON.stringify(transportResponse)}`);
313
+ if (config.responseCallback) {
314
+ await config.responseCallback(transportResponse);
315
315
  }
316
316
  if (!transportResponse) {
317
317
  if (config.logger) {