@punks/backend-entity-manager 0.0.358 → 0.0.360

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/esm/index.js CHANGED
@@ -40487,6 +40487,7 @@ let SendgridEmailProvider = class SendgridEmailProvider {
40487
40487
  cc: input.cc ?? templateData.cc,
40488
40488
  from: input.from ?? templateData.from,
40489
40489
  to: input.to ?? templateData.to,
40490
+ attachments: input.attachments,
40490
40491
  });
40491
40492
  return;
40492
40493
  }
@@ -40561,6 +40562,12 @@ let SendgridEmailProvider = class SendgridEmailProvider {
40561
40562
  context: input.payload,
40562
40563
  }),
40563
40564
  replyTo: sanitizeValue(input.replyTo ?? sendgridSettings.value.defaultReplyTo),
40565
+ attachments: input.attachments?.map((attachment) => ({
40566
+ ...attachment,
40567
+ content: attachment.content instanceof Buffer
40568
+ ? attachment.content.toString("utf-8")
40569
+ : attachment.content,
40570
+ })),
40564
40571
  });
40565
40572
  if (sendgridSettings.value.loggingEnabled) {
40566
40573
  this.logger.info("Sending html email", {