@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/cjs/index.js +7 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -40502,12 +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
|
|
40506
|
-
...attachment,
|
|
40507
|
-
content: attachment.content instanceof Buffer
|
|
40508
|
-
? attachment.content.toString("utf-8")
|
|
40509
|
-
: attachment.content,
|
|
40510
|
-
})),
|
|
40505
|
+
attachments: input.attachments,
|
|
40511
40506
|
});
|
|
40512
40507
|
return;
|
|
40513
40508
|
}
|
|
@@ -40582,6 +40577,12 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
40582
40577
|
context: input.payload,
|
|
40583
40578
|
}),
|
|
40584
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
|
+
})),
|
|
40585
40586
|
});
|
|
40586
40587
|
if (sendgridSettings.value.loggingEnabled) {
|
|
40587
40588
|
this.logger.info("Sending html email", {
|