mailparser
Advanced tools
Comparing version 3.6.4 to 3.6.5
@@ -90,3 +90,3 @@ 'use strict'; | ||
['subject', 'references', 'date', 'to', 'from', 'to', 'cc', 'bcc', 'message-id', 'in-reply-to', 'reply-to'].forEach(key => { | ||
if (mail.headers.has(key)) { | ||
if (mail.headers && mail.headers.has(key)) { | ||
mail[key.replace(/-([a-z])/g, (m, c) => c.toUpperCase())] = mail.headers.get(key); | ||
@@ -93,0 +93,0 @@ } |
{ | ||
"name": "mailparser", | ||
"version": "3.6.4", | ||
"version": "3.6.5", | ||
"description": "Parse e-mails", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
"he": "1.2.0", | ||
"html-to-text": "9.0.4", | ||
"html-to-text": "9.0.5", | ||
"iconv-lite": "0.6.3", | ||
@@ -27,14 +27,14 @@ "libmime": "5.2.1", | ||
"mailsplit": "5.4.0", | ||
"nodemailer": "6.9.1", | ||
"tlds": "1.236.0" | ||
"nodemailer": "6.9.3", | ||
"tlds": "1.240.0" | ||
}, | ||
"devDependencies": { | ||
"ajv": "8.12.0", | ||
"eslint": "8.35.0", | ||
"eslint": "8.44.0", | ||
"eslint-config-nodemailer": "1.2.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"grunt": "1.6.1", | ||
"grunt-cli": "1.4.3", | ||
"grunt-contrib-nodeunit": "4.0.0", | ||
"grunt-eslint": "24.0.1", | ||
"grunt-contrib-nodeunit": "5.0.0", | ||
"grunt-eslint": "24.2.0", | ||
"iconv": "3.0.1", | ||
@@ -41,0 +41,0 @@ "random-message": "1.1.0" |
48728
+ Added@selderee/plugin-htmlparser2@0.11.0(transitive)
+ Addedhtml-to-text@9.0.5(transitive)
+ Addednodemailer@6.9.3(transitive)
+ Addedparseley@0.12.1(transitive)
+ Addedpeberminta@0.9.0(transitive)
+ Addedselderee@0.11.0(transitive)
+ Addedtlds@1.240.0(transitive)
- Removed@selderee/plugin-htmlparser2@0.10.0(transitive)
- Removedhtml-to-text@9.0.4(transitive)
- Removednodemailer@6.9.1(transitive)
- Removedparseley@0.11.0(transitive)
- Removedpeberminta@0.8.0(transitive)
- Removedselderee@0.10.0(transitive)
- Removedtlds@1.236.0(transitive)
Updatedhtml-to-text@9.0.5
Updatednodemailer@6.9.3
Updatedtlds@1.240.0