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 0.2.26 to 0.2.27

15

lib/mailparser.js

@@ -824,3 +824,3 @@

}else{
this._currentNode.content = this._encodeString(this._currentNode.content);
this._currentNode.content = this._convertStringToUTF8(this._currentNode.content);
}

@@ -1125,2 +1125,13 @@ }else{

/**
* <p>Converts a string to UTF-8</p>
*
* @param {String} value String to be encoded
* @returns {String} UTF-8 encoded string
*/
MailParser.prototype._convertStringToUTF8 = function(value){
value = this._convertString(value, this._currentNode.meta.charset || this.options.defaultCharset || "iso-8859-1").toString("utf-8");
return value;
};
/**
* <p>Encodes a header string to UTF-8</p>

@@ -1132,3 +1143,3 @@ *

MailParser.prototype._encodeString = function(value){
value = this._replaceMimeWords(this._convertString(value, this._currentNode.meta.charset || this.options.defaultCharset || "iso-8859-1").toString("utf-8"));
value = this._replaceMimeWords(this._convertStringToUTF8(value));
return value;

@@ -1135,0 +1146,0 @@ };

2

package.json
{
"name": "mailparser",
"description": "Asynchronous and non-blocking parser for mime encoded e-mail messages",
"version": "0.2.26",
"version": "0.2.27",
"author" : "Andris Reinman",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc