@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/cjs/index.js +7 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -40502,6 +40502,7 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
40502
40502
|
cc: input.cc ?? templateData.cc,
|
|
40503
40503
|
from: input.from ?? templateData.from,
|
|
40504
40504
|
to: input.to ?? templateData.to,
|
|
40505
|
+
attachments: input.attachments,
|
|
40505
40506
|
});
|
|
40506
40507
|
return;
|
|
40507
40508
|
}
|
|
@@ -40576,6 +40577,12 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
40576
40577
|
context: input.payload,
|
|
40577
40578
|
}),
|
|
40578
40579
|
replyTo: sanitizeValue(input.replyTo ?? sendgridSettings.value.defaultReplyTo),
|
|
40580
|
+
attachments: input.attachments?.map((attachment) => ({
|
|
40581
|
+
...attachment,
|
|
40582
|
+
content: attachment.content instanceof Buffer
|
|
40583
|
+
? attachment.content.toString("utf-8")
|
|
40584
|
+
: attachment.content,
|
|
40585
|
+
})),
|
|
40579
40586
|
});
|
|
40580
40587
|
if (sendgridSettings.value.loggingEnabled) {
|
|
40581
40588
|
this.logger.info("Sending html email", {
|