mikromail 0.0.3 → 0.0.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/lib/MikroMail.js CHANGED
@@ -629,13 +629,10 @@ ${encodeQuotedPrintable(html || "")}\r
629
629
  --${boundary}--\r
630
630
  `;
631
631
  }
632
- if (html) {
633
- headers.push("Content-Type: text/html; charset=utf-8");
634
- return `${headers.join("\r\n")}\r
632
+ headers.push("Content-Type: text/html; charset=utf-8");
633
+ if (html) return `${headers.join("\r\n")}\r
635
634
  \r
636
635
  ${html}`;
637
- }
638
- headers.push("Content-Type: text/plain; charset=utf-8");
639
636
  return `${headers.join("\r\n")}\r
640
637
  \r
641
638
  ${text || ""}`;
package/lib/MikroMail.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  MikroMail
3
- } from "./chunk-6FVSAIJD.mjs";
3
+ } from "./chunk-TBZ7DVGE.mjs";
4
4
  import "./chunk-YVXB6HCK.mjs";
5
- import "./chunk-LKO73BCK.mjs";
5
+ import "./chunk-5JI6BRUL.mjs";
6
6
  import "./chunk-47VXJTWV.mjs";
7
7
  import "./chunk-UDLJWUFN.mjs";
8
8
  export {
package/lib/SMTPClient.js CHANGED
@@ -485,13 +485,10 @@ ${encodeQuotedPrintable(html || "")}\r
485
485
  --${boundary}--\r
486
486
  `;
487
487
  }
488
- if (html) {
489
- headers.push("Content-Type: text/html; charset=utf-8");
490
- return `${headers.join("\r\n")}\r
488
+ headers.push("Content-Type: text/html; charset=utf-8");
489
+ if (html) return `${headers.join("\r\n")}\r
491
490
  \r
492
491
  ${html}`;
493
- }
494
- headers.push("Content-Type: text/plain; charset=utf-8");
495
492
  return `${headers.join("\r\n")}\r
496
493
  \r
497
494
  ${text || ""}`;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SMTPClient
3
- } from "./chunk-LKO73BCK.mjs";
3
+ } from "./chunk-5JI6BRUL.mjs";
4
4
  import "./chunk-UDLJWUFN.mjs";
5
5
  export {
6
6
  SMTPClient
@@ -394,13 +394,10 @@ ${encodeQuotedPrintable(html || "")}\r
394
394
  --${boundary}--\r
395
395
  `;
396
396
  }
397
- if (html) {
398
- headers.push("Content-Type: text/html; charset=utf-8");
399
- return `${headers.join("\r\n")}\r
397
+ headers.push("Content-Type: text/html; charset=utf-8");
398
+ if (html) return `${headers.join("\r\n")}\r
400
399
  \r
401
400
  ${html}`;
402
- }
403
- headers.push("Content-Type: text/plain; charset=utf-8");
404
401
  return `${headers.join("\r\n")}\r
405
402
  \r
406
403
  ${text || ""}`;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YVXB6HCK.mjs";
4
4
  import {
5
5
  SMTPClient
6
- } from "./chunk-LKO73BCK.mjs";
6
+ } from "./chunk-5JI6BRUL.mjs";
7
7
  import {
8
8
  verifyEmailDomain
9
9
  } from "./chunk-UDLJWUFN.mjs";
package/lib/index.js CHANGED
@@ -629,13 +629,10 @@ ${encodeQuotedPrintable(html || "")}\r
629
629
  --${boundary}--\r
630
630
  `;
631
631
  }
632
- if (html) {
633
- headers.push("Content-Type: text/html; charset=utf-8");
634
- return `${headers.join("\r\n")}\r
632
+ headers.push("Content-Type: text/html; charset=utf-8");
633
+ if (html) return `${headers.join("\r\n")}\r
635
634
  \r
636
635
  ${html}`;
637
- }
638
- headers.push("Content-Type: text/plain; charset=utf-8");
639
636
  return `${headers.join("\r\n")}\r
640
637
  \r
641
638
  ${text || ""}`;
package/lib/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  MikroMail
3
- } from "./chunk-6FVSAIJD.mjs";
3
+ } from "./chunk-TBZ7DVGE.mjs";
4
4
  import "./chunk-YVXB6HCK.mjs";
5
- import "./chunk-LKO73BCK.mjs";
5
+ import "./chunk-5JI6BRUL.mjs";
6
6
  import "./chunk-47VXJTWV.mjs";
7
7
  import "./chunk-UDLJWUFN.mjs";
8
8
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mikromail",
3
3
  "description": "Lightweight replacement for Nodemailer, supporting HTML, international symbols, and more.",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "author": "Mikael Vesavuori",
6
6
  "license": "MIT",
7
7
  "keywords": [