New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mailparser

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailparser - npm Package Compare versions

Comparing version

to
0.4.6

9

lib/mailparser.js

@@ -309,4 +309,2 @@ "use strict";

this._currentNode.checksum = crypto.createHash("md5");
this._currentNode.meta.generatedFileName = this._generateFileName(this._currentNode.meta.fileName, this._currentNode.meta.contentType);

@@ -591,3 +589,3 @@

parts = value.match(/(?:[^;"]+|"[^"]*")+/g);
parts = value.match(/(?:[^;"]+|"[^"]*")+/g) || [value];
returnValue.defaultValue = parts.shift().toLowerCase();

@@ -897,3 +895,3 @@

// WTF? if newlines are not removed, the resulting hash is *always* different
this._currentNode.content = new Buffer(this._currentNode.content.replace(/\s+/g, ""), "base64");
this._currentNode.content = new Buffer(this._currentNode.content.toString().replace(/\s+/g, ""), "base64");

@@ -906,2 +904,3 @@ } else if (this._currentNode.meta.transferEncoding == "uuencode") {

}
this._currentNode.checksum = crypto.createHash("md5");
this._currentNode.checksum.update(this._currentNode.content);

@@ -1391,3 +1390,3 @@ this._currentNode.meta.checksum = this._currentNode.checksum.digest("hex");

if (typeof html != " string") {
if (typeof html != "string") {
html = html.toString("ascii");

@@ -1394,0 +1393,0 @@ }

{
"name": "mailparser",
"description": "Asynchronous and non-blocking parser for mime encoded e-mail messages",
"version": "0.4.5",
"version": "0.4.6",
"author": "Andris Reinman",

@@ -6,0 +6,0 @@ "maintainers": [