mailparser 3.9.32 → 3.9.34

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "3.9.32"
2
+ ".": "3.9.34"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.9.34](https://github.com/nodemailer/mailparser/compare/v3.9.33...v3.9.34) (2026-10-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** update nodemailer to 10.0.14 ([f79334d](https://github.com/nodemailer/mailparser/commit/f79334d4f2b1cd296a7b4770710ee5095a78c43a))
9
+
10
+ ## [3.9.33](https://github.com/nodemailer/mailparser/compare/v3.9.32...v3.9.33) (2026-10-01)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * report an unavailable checksum algorithm as a parser error ([dc24878](https://github.com/nodemailer/mailparser/commit/dc248783a735c379627c0afd76ee3d7ff5400ce0))
16
+
3
17
  ## [3.9.32](https://github.com/nodemailer/mailparser/compare/v3.9.31...v3.9.32) (2026-09-30)
4
18
 
5
19
 
@@ -953,7 +953,15 @@ class MailParser extends Transform {
953
953
  };
954
954
 
955
955
  let algo = this.options.checksumAlgo || 'md5';
956
- let hasher = new StreamHash(attachment, algo);
956
+ let hasher;
957
+ try {
958
+ hasher = new StreamHash(attachment, algo);
959
+ } catch (err) {
960
+ // an algorithm this Node does not offer (a typo, or MD5 on a host whose
961
+ // OpenSSL runs in FIPS mode) is a parser error, not a process-ending throw
962
+ err.message = `Checksum algorithm "${algo}" is not available: ${err.message}`;
963
+ return done(err);
964
+ }
957
965
  node.decoder.on('error', err => {
958
966
  hasher.emit('error', err);
959
967
  });
@@ -8,7 +8,7 @@ class StreamHash extends Transform {
8
8
  super();
9
9
  this.attachment = attachment;
10
10
  this.algo = (algo || 'md5').toLowerCase();
11
- this.hash = crypto.createHash(algo);
11
+ this.hash = crypto.createHash(this.algo);
12
12
  this.byteCount = 0;
13
13
  }
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailparser",
3
- "version": "3.9.32",
3
+ "version": "3.9.34",
4
4
  "description": "Parse e-mails",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "libmime": "5.4.6",
26
26
  "linkify-it": "5.0.2",
27
27
  "@zone-eu/mailsplit": "5.4.19",
28
- "nodemailer": "10.0.13",
28
+ "nodemailer": "10.0.14",
29
29
  "punycode.js": "2.3.1",
30
30
  "tlds": "1.261.0"
31
31
  },
@@ -33,7 +33,7 @@
33
33
  "@eslint/eslintrc": "3.3.7",
34
34
  "@eslint/js": "10.0.1",
35
35
  "ajv": "8.20.0",
36
- "eslint": "10.11.0",
36
+ "eslint": "10.12.0",
37
37
  "eslint-config-nodemailer": "1.2.0",
38
38
  "eslint-config-prettier": "10.1.8",
39
39
  "grunt": "1.6.3",