@punks/backend-entity-manager 0.0.359 → 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,12 +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?.map((attachment) => ({
40491
- ...attachment,
40492
- content: attachment.content instanceof Buffer
40493
- ? attachment.content.toString("utf-8")
40494
- : attachment.content,
40495
- })),
40490
+ attachments: input.attachments,
40496
40491
  });
40497
40492
  return;
40498
40493
  }
@@ -40567,6 +40562,12 @@ let SendgridEmailProvider = class SendgridEmailProvider {
40567
40562
  context: input.payload,
40568
40563
  }),
40569
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
+ })),
40570
40571
  });
40571
40572
  if (sendgridSettings.value.loggingEnabled) {
40572
40573
  this.logger.info("Sending html email", {