@prunellejs/mail 0.7.4 → 0.7.7

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/smtp.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prunellejs/mail",
3
- "version": "0.7.4",
3
+ "version": "0.7.7",
4
4
  "description": "Zero-dependency email delivery (JSX/TSX templates, SMTP/SMTPS, Resend, Postmark, MAIL_URL, @prunellejs/jobs retries) and dev outbox/preview plugin for Prunelle",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,6 +21,6 @@
21
21
  "directory": "packages/plugin-mail"
22
22
  },
23
23
  "peerDependencies": {
24
- "prunelle": "^0.7.4"
24
+ "prunelle": "^0.7.7"
25
25
  }
26
26
  }
package/src/smtp.ts CHANGED
@@ -184,6 +184,8 @@ class SmtpConnection {
184
184
  }
185
185
  else {
186
186
  this.unexpectedLines++
187
+ // Not part of a reply, so it counts only while it is on the wire, not against the replies after it.
188
+ this.replyBytes = Math.max(0, this.replyBytes - lineBytes)
187
189
  }
188
190
  return
189
191
  }