mailparser
Advanced tools
Comparing version 3.6.2 to 3.6.3
@@ -276,4 +276,9 @@ 'use strict'; | ||
let finish = () => { | ||
let t = this.getTextContent(); | ||
this.push(t); | ||
try { | ||
let t = this.getTextContent(); | ||
this.push(t); | ||
} catch (err) { | ||
return this.emit('error', err); | ||
} | ||
done(); | ||
@@ -753,5 +758,7 @@ }; | ||
alternative = alternative || node.contentType === 'multipart/alternative'; | ||
node.children.forEach(subNode => { | ||
processNode(alternative, level + 1, subNode); | ||
}); | ||
if (node.children) { | ||
node.children.forEach(subNode => { | ||
processNode(alternative, level + 1, subNode); | ||
}); | ||
} | ||
}; | ||
@@ -758,0 +765,0 @@ |
{ | ||
"name": "mailparser", | ||
"version": "3.6.2", | ||
"version": "3.6.3", | ||
"description": "Parse e-mails", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
"he": "1.2.0", | ||
"html-to-text": "9.0.2", | ||
"html-to-text": "9.0.3", | ||
"iconv-lite": "0.6.3", | ||
@@ -28,7 +28,7 @@ "libmime": "5.2.0", | ||
"nodemailer": "6.8.0", | ||
"tlds": "1.235.0" | ||
"tlds": "1.236.0" | ||
}, | ||
"devDependencies": { | ||
"ajv": "8.11.2", | ||
"eslint": "8.29.0", | ||
"eslint": "8.30.0", | ||
"eslint-config-nodemailer": "1.2.0", | ||
@@ -35,0 +35,0 @@ "eslint-config-prettier": "8.5.0", |
48650
1179
+ Addedhtml-to-text@9.0.3(transitive)
+ Addedtlds@1.236.0(transitive)
- Removedhtml-to-text@9.0.2(transitive)
- Removedtlds@1.235.0(transitive)
Updatedhtml-to-text@9.0.3
Updatedtlds@1.236.0