@punks/backend-entity-manager 0.0.43 → 0.0.45
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 +18 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +18 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -25048,6 +25048,7 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
25048
25048
|
}
|
|
25049
25049
|
const request = backendCore.removeUndefinedProps({
|
|
25050
25050
|
from: input.from ?? templateData.from ?? sendgridSettings.value.defaultSender,
|
|
25051
|
+
to: sanitizeArray(input.to ?? templateData.to),
|
|
25051
25052
|
cc: sanitizeArray([
|
|
25052
25053
|
...(input.cc ?? templateData.cc ?? []),
|
|
25053
25054
|
...(sendgridSettings.value.defaultCc ?? []),
|
|
@@ -25069,16 +25070,23 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
25069
25070
|
templateId: templateData.sendgridTemplateId,
|
|
25070
25071
|
});
|
|
25071
25072
|
if (sendgridSettings.value.loggingEnabled) {
|
|
25072
|
-
this.logger.info("Sending templated email",
|
|
25073
|
+
this.logger.info("Sending templated email", {
|
|
25074
|
+
input,
|
|
25075
|
+
request,
|
|
25076
|
+
});
|
|
25073
25077
|
}
|
|
25074
25078
|
await this.client.send(request);
|
|
25075
25079
|
if (sendgridSettings.value.loggingEnabled) {
|
|
25076
|
-
this.logger.info("Templated email sent",
|
|
25080
|
+
this.logger.info("Templated email sent", {
|
|
25081
|
+
input,
|
|
25082
|
+
request,
|
|
25083
|
+
});
|
|
25077
25084
|
}
|
|
25078
25085
|
}
|
|
25079
25086
|
async sendHtmlEmail(input) {
|
|
25080
25087
|
const request = backendCore.removeUndefinedProps({
|
|
25081
25088
|
from: input.from ?? sendgridSettings.value.defaultSender,
|
|
25089
|
+
to: sanitizeArray(input.to),
|
|
25082
25090
|
cc: sanitizeArray(input.cc),
|
|
25083
25091
|
bcc: sanitizeArray([
|
|
25084
25092
|
...(input.bcc ?? []),
|
|
@@ -25095,11 +25103,17 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
25095
25103
|
replyTo: sanitizeValue(input.replyTo ?? sendgridSettings.value.defaultReplyTo),
|
|
25096
25104
|
});
|
|
25097
25105
|
if (sendgridSettings.value.loggingEnabled) {
|
|
25098
|
-
this.logger.info("Sending html email",
|
|
25106
|
+
this.logger.info("Sending html email", {
|
|
25107
|
+
input,
|
|
25108
|
+
request,
|
|
25109
|
+
});
|
|
25099
25110
|
}
|
|
25100
25111
|
await this.client.send(request);
|
|
25101
25112
|
if (sendgridSettings.value.loggingEnabled) {
|
|
25102
|
-
this.logger.info("Html email sent",
|
|
25113
|
+
this.logger.info("Html email sent", {
|
|
25114
|
+
input,
|
|
25115
|
+
request,
|
|
25116
|
+
});
|
|
25103
25117
|
}
|
|
25104
25118
|
}
|
|
25105
25119
|
};
|