arn-rawmime 0.1.2 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arn-rawmime",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "A lightweight, dependency-free raw MIME email builder with DKIM support.",
5
5
  "author": "ARNDESK",
6
6
  "type": "module",
@@ -491,7 +491,7 @@ class MimeMessage {
491
491
  data,
492
492
  encoding = "quoted-printable",
493
493
  autoTextPart = false,
494
- autoMinify = null,
494
+ autoMinify = true,
495
495
  markdownToHtml = false,
496
496
  charset = "UTF-8",
497
497
  }) {
@@ -532,8 +532,7 @@ class MimeMessage {
532
532
 
533
533
  let finalHtml = data;
534
534
 
535
- const shouldMinify = autoMinify !== null && autoMinify !== undefined ? autoMinify : (this.boundaryStyle !== "outlook");
536
- if (shouldMinify) {
535
+ if (autoMinify) {
537
536
  finalHtml = this._minifyHtml(finalHtml);
538
537
  }
539
538