arn-rawmime 0.1.1 → 0.1.2
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 +1 -1
- package/src/rawmimeBuilder.js +3 -2
package/package.json
CHANGED
package/src/rawmimeBuilder.js
CHANGED
|
@@ -491,7 +491,7 @@ class MimeMessage {
|
|
|
491
491
|
data,
|
|
492
492
|
encoding = "quoted-printable",
|
|
493
493
|
autoTextPart = false,
|
|
494
|
-
autoMinify =
|
|
494
|
+
autoMinify = null,
|
|
495
495
|
markdownToHtml = false,
|
|
496
496
|
charset = "UTF-8",
|
|
497
497
|
}) {
|
|
@@ -532,7 +532,8 @@ class MimeMessage {
|
|
|
532
532
|
|
|
533
533
|
let finalHtml = data;
|
|
534
534
|
|
|
535
|
-
|
|
535
|
+
const shouldMinify = autoMinify !== null && autoMinify !== undefined ? autoMinify : (this.boundaryStyle !== "outlook");
|
|
536
|
+
if (shouldMinify) {
|
|
536
537
|
finalHtml = this._minifyHtml(finalHtml);
|
|
537
538
|
}
|
|
538
539
|
|