@punks/backend-entity-manager 0.0.386 → 0.0.388
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 +2 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/serializer.d.ts +4 -0
- package/dist/cjs/types/platforms/nest/services/email/utils.d.ts +1 -1
- package/dist/esm/index.js +2 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/serializer.d.ts +4 -0
- package/dist/esm/types/platforms/nest/services/email/utils.d.ts +1 -1
- package/dist/index.d.ts +4 -0
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -347,7 +347,7 @@ class EntitySerializer {
|
|
|
347
347
|
contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
348
348
|
content: Buffer.from(backendCore.excelBuild({
|
|
349
349
|
data: [{}],
|
|
350
|
-
sheetName: this.entityName,
|
|
350
|
+
sheetName: definition?.sheet?.name ?? this.entityName,
|
|
351
351
|
columns: [
|
|
352
352
|
...(this.options?.useTypeColumn
|
|
353
353
|
? [
|
|
@@ -22671,7 +22671,6 @@ const normalizeAddressField = (values, invalidValues) => {
|
|
|
22671
22671
|
};
|
|
22672
22672
|
const normalizeAddresses = (input) => {
|
|
22673
22673
|
return {
|
|
22674
|
-
...input,
|
|
22675
22674
|
to: normalizeAddressField(input.to, []),
|
|
22676
22675
|
cc: normalizeAddressField(input.cc, [...(input.to ?? [])]),
|
|
22677
22676
|
bcc: normalizeAddressField(input.bcc, [
|
|
@@ -22696,7 +22695,7 @@ exports.EmailService = class EmailService {
|
|
|
22696
22695
|
const transformedInput = (await this.templateMiddleware?.processInput(sendInput)) ?? sendInput;
|
|
22697
22696
|
const normalizedInput = {
|
|
22698
22697
|
...transformedInput,
|
|
22699
|
-
...normalizeAddresses(
|
|
22698
|
+
...normalizeAddresses(transformedInput),
|
|
22700
22699
|
};
|
|
22701
22700
|
await this.provider.sendTemplatedEmail(normalizedInput, template);
|
|
22702
22701
|
await this.logger.logTemplatedEmail(normalizedInput);
|