mailparser 3.3.1 → 3.3.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.
@@ -14,6 +14,7 @@ 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');
17
18
 
18
19
  linkify
19
20
  .tlds(tlds) // Reload with full tlds list
@@ -313,7 +314,7 @@ class MailParser extends Transform {
313
314
  });
314
315
  break;
315
316
  case 'date':
316
- value = new Date(value);
317
+ value = anyDateParser.fromString(value);
317
318
  if (isNaN(value)) {
318
319
  // date parsing failed :S
319
320
  value = new Date();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailparser",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Parse e-mails",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
+ "any-date-parser": "1.5.1",
19
20
  "encoding-japanese": "1.0.30",
20
21
  "he": "1.2.0",
21
22
  "html-to-text": "8.0.0",
@@ -23,11 +24,11 @@
23
24
  "libmime": "5.0.0",
24
25
  "linkify-it": "3.0.2",
25
26
  "mailsplit": "5.2.0",
26
- "nodemailer": "6.6.3",
27
- "tlds": "1.221.1"
27
+ "nodemailer": "6.6.5",
28
+ "tlds": "1.222.0"
28
29
  },
29
30
  "devDependencies": {
30
- "ajv": "8.6.2",
31
+ "ajv": "8.6.3",
31
32
  "eslint": "7.32.0",
32
33
  "eslint-config-nodemailer": "1.2.0",
33
34
  "eslint-config-prettier": "8.3.0",
@@ -35,7 +36,7 @@
35
36
  "grunt-cli": "1.4.3",
36
37
  "grunt-contrib-nodeunit": "3.0.0",
37
38
  "grunt-eslint": "23.0.0",
38
- "iconv": "3.0.0",
39
+ "iconv": "3.0.1",
39
40
  "random-message": "1.1.0"
40
41
  },
41
42
  "repository": {