mailparser 3.3.3 → 3.4.0
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/mail-parser.js +2 -6
- package/package.json +6 -7
package/lib/mail-parser.js
CHANGED
|
@@ -14,7 +14,6 @@ const he = require('he');
|
|
|
14
14
|
const linkify = require('linkify-it')();
|
|
15
15
|
const tlds = require('tlds');
|
|
16
16
|
const encodingJapanese = require('encoding-japanese');
|
|
17
|
-
const anyDateParser = require('any-date-parser');
|
|
18
17
|
|
|
19
18
|
linkify
|
|
20
19
|
.tlds(tlds) // Reload with full tlds list
|
|
@@ -316,11 +315,8 @@ class MailParser extends Transform {
|
|
|
316
315
|
case 'date': {
|
|
317
316
|
let dateValue = new Date(value);
|
|
318
317
|
if (isNaN(dateValue)) {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
// date parsing failed :S
|
|
322
|
-
dateValue = new Date();
|
|
323
|
-
}
|
|
318
|
+
// date parsing failed :S
|
|
319
|
+
dateValue = new Date();
|
|
324
320
|
}
|
|
325
321
|
value = dateValue;
|
|
326
322
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mailparser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Parse e-mails",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,25 +16,24 @@
|
|
|
16
16
|
],
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"any-date-parser": "1.5.1",
|
|
20
19
|
"encoding-japanese": "1.0.30",
|
|
21
20
|
"he": "1.2.0",
|
|
22
21
|
"html-to-text": "8.0.0",
|
|
23
22
|
"iconv-lite": "0.6.3",
|
|
24
23
|
"libmime": "5.0.0",
|
|
25
24
|
"linkify-it": "3.0.3",
|
|
26
|
-
"mailsplit": "5.
|
|
27
|
-
"nodemailer": "6.
|
|
28
|
-
"tlds": "1.
|
|
25
|
+
"mailsplit": "5.3.1",
|
|
26
|
+
"nodemailer": "6.7.0",
|
|
27
|
+
"tlds": "1.224.0"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
30
|
"ajv": "8.6.3",
|
|
32
|
-
"eslint": "
|
|
31
|
+
"eslint": "8.0.0",
|
|
33
32
|
"eslint-config-nodemailer": "1.2.0",
|
|
34
33
|
"eslint-config-prettier": "8.3.0",
|
|
35
34
|
"grunt": "1.4.1",
|
|
36
35
|
"grunt-cli": "1.4.3",
|
|
37
|
-
"grunt-contrib-nodeunit": "
|
|
36
|
+
"grunt-contrib-nodeunit": "4.0.0",
|
|
38
37
|
"grunt-eslint": "23.0.0",
|
|
39
38
|
"iconv": "3.0.1",
|
|
40
39
|
"random-message": "1.1.0"
|