mailparser
Advanced tools
Comparing version 3.3.3 to 3.4.0
@@ -17,3 +17,2 @@ 'use strict'; | ||
const encodingJapanese = require('encoding-japanese'); | ||
const anyDateParser = require('any-date-parser'); | ||
@@ -320,7 +319,4 @@ linkify | ||
if (isNaN(dateValue)) { | ||
dateValue = anyDateParser.fromString(value); | ||
if (isNaN(dateValue)) { | ||
// date parsing failed :S | ||
dateValue = new Date(); | ||
} | ||
// date parsing failed :S | ||
dateValue = new Date(); | ||
} | ||
@@ -327,0 +323,0 @@ value = dateValue; |
{ | ||
"name": "mailparser", | ||
"version": "3.3.3", | ||
"version": "3.4.0", | ||
"description": "Parse e-mails", | ||
@@ -19,3 +19,2 @@ "main": "index.js", | ||
"dependencies": { | ||
"any-date-parser": "1.5.1", | ||
"encoding-japanese": "1.0.30", | ||
@@ -27,9 +26,9 @@ "he": "1.2.0", | ||
"linkify-it": "3.0.3", | ||
"mailsplit": "5.2.0", | ||
"nodemailer": "6.6.5", | ||
"tlds": "1.222.0" | ||
"mailsplit": "5.3.1", | ||
"nodemailer": "6.7.0", | ||
"tlds": "1.224.0" | ||
}, | ||
"devDependencies": { | ||
"ajv": "8.6.3", | ||
"eslint": "7.32.0", | ||
"eslint": "8.0.0", | ||
"eslint-config-nodemailer": "1.2.0", | ||
@@ -39,3 +38,3 @@ "eslint-config-prettier": "8.3.0", | ||
"grunt-cli": "1.4.3", | ||
"grunt-contrib-nodeunit": "3.0.0", | ||
"grunt-contrib-nodeunit": "4.0.0", | ||
"grunt-eslint": "23.0.0", | ||
@@ -42,0 +41,0 @@ "iconv": "3.0.1", |
9
47944
1173
+ Addedmailsplit@5.3.1(transitive)
+ Addednodemailer@6.7.0(transitive)
+ Addedtlds@1.224.0(transitive)
- Removedany-date-parser@1.5.1
- Removedany-date-parser@1.5.1(transitive)
- Removedmailsplit@5.2.0(transitive)
- Removednodemailer@6.6.5(transitive)
- Removedtlds@1.222.0(transitive)
Updatedmailsplit@5.3.1
Updatednodemailer@6.7.0
Updatedtlds@1.224.0