mailparser 3.6.9 → 3.7.1

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/.ncurc.js ADDED
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ upgrade: true,
3
+ reject: [
4
+ // api changes, check and fix
5
+ 'eslint',
6
+ 'grunt-eslint'
7
+ ]
8
+ };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.7.1](https://github.com/nodemailer/mailparser/compare/v3.7.0...v3.7.1) (2024-04-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** Replaced 'punycode' with 'punycode.js' module ([4a15157](https://github.com/nodemailer/mailparser/commit/4a15157dc9a815aa0e756d9e6ae0e8631842c447))
9
+
10
+ ## [3.7.0](https://github.com/nodemailer/mailparser/compare/v3.6.9...v3.7.0) (2024-04-01)
11
+
12
+
13
+ ### Features
14
+
15
+ * **events:** Emit a new headerLines event to gain access the raw headers ([#364](https://github.com/nodemailer/mailparser/issues/364)) ([d33d7ec](https://github.com/nodemailer/mailparser/commit/d33d7ec4b8e32a4eb7a9a664cec5fdb545c274af))
16
+
3
17
  ## [3.6.9](https://github.com/nodemailer/mailparser/compare/v3.6.8...v3.6.9) (2024-02-29)
4
18
 
5
19
 
@@ -5,7 +5,7 @@ const libmime = require('libmime');
5
5
  const addressparser = require('nodemailer/lib/addressparser');
6
6
  const Transform = require('stream').Transform;
7
7
  const Splitter = mailsplit.Splitter;
8
- const punycode = require('punycode/');
8
+ const punycode = require('punycode.js');
9
9
  const FlowedDecoder = require('mailsplit/lib/flowed-decoder');
10
10
  const StreamHash = require('./stream-hash');
11
11
  const iconv = require('iconv-lite');
@@ -797,6 +797,10 @@ class MailParser extends Transform {
797
797
  }
798
798
  });
799
799
  this.emit('headers', node.headers);
800
+
801
+ if (node.headerLines) {
802
+ this.emit('headerLines', node.headerLines);
803
+ }
800
804
  }
801
805
 
802
806
  if (data.contentType === 'message/rfc822' && data.messageNode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailparser",
3
- "version": "3.6.9",
3
+ "version": "3.7.1",
4
4
  "description": "Parse e-mails",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,16 +17,16 @@
17
17
  ],
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "encoding-japanese": "2.0.0",
20
+ "encoding-japanese": "2.1.0",
21
21
  "he": "1.2.0",
22
22
  "html-to-text": "9.0.5",
23
23
  "iconv-lite": "0.6.3",
24
- "libmime": "5.3.4",
24
+ "libmime": "5.3.5",
25
25
  "linkify-it": "5.0.0",
26
26
  "mailsplit": "5.4.0",
27
- "nodemailer": "6.9.11",
28
- "punycode": "2.3.1",
29
- "tlds": "1.250.0"
27
+ "nodemailer": "6.9.13",
28
+ "punycode.js": "2.3.1",
29
+ "tlds": "1.252.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "ajv": "8.12.0",
@@ -47,4 +47,4 @@
47
47
  "bugs": {
48
48
  "url": "https://github.com/nodemailer/mailparser/issues"
49
49
  }
50
- }
50
+ }