@lowdefy/connection-smtp 5.3.0 → 6.0.0

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.
@@ -23,6 +23,7 @@ async function send({ connection, mail }) {
23
23
  if (filtered === null) {
24
24
  return {
25
25
  messageId: null,
26
+ to: null,
26
27
  filtered: true
27
28
  };
28
29
  }
@@ -39,8 +40,11 @@ async function send({ connection, mail }) {
39
40
  html: filtered.html,
40
41
  attachments: filtered.attachments
41
42
  });
43
+ // Return the post-filter to so callers can record where mail actually went
44
+ // when a connection filter (replaceAddress/allowlist/regex) rewrites it.
42
45
  return {
43
46
  messageId: info.messageId,
47
+ to: filtered.to,
44
48
  accepted: info.accepted,
45
49
  rejected: info.rejected
46
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/connection-smtp",
3
- "version": "5.3.0",
3
+ "version": "6.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -36,12 +36,12 @@
36
36
  "dist/*"
37
37
  ],
38
38
  "dependencies": {
39
- "@lowdefy/helpers": "5.3.0",
39
+ "@lowdefy/helpers": "6.0.0",
40
40
  "nodemailer": "9.0.3"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@jest/globals": "28.1.3",
44
- "@lowdefy/ajv": "5.3.0",
44
+ "@lowdefy/ajv": "6.0.0",
45
45
  "@swc/cli": "0.8.1",
46
46
  "@swc/core": "1.15.32",
47
47
  "@swc/jest": "0.2.39",