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 2.0.1 to 2.0.2

9

lib/mail-parser.js

@@ -365,2 +365,3 @@ 'use strict';

newNode.isAttachment = !['text/plain', 'text/html'].includes(contentType) || newNode.disposition !== 'inline';

@@ -569,3 +570,3 @@ newNode.encoding = ['quoted-printable', 'base64'].includes(encoding) ? encoding : 'binary';

if (node.disposition === 'attachment') {
if (node.isAttachment) {

@@ -620,3 +621,3 @@ let contentType = node.contentType;

} else if (node.disposition === 'inline') {
} else if(node.disposition === 'inline') {
let chunks = [];

@@ -700,3 +701,3 @@ let chunklen = 0;

let formatSingleLevel = addresses => addresses.map(address => {
let str = '';
let str = '<span class="mp_address_group">';
if (address.name) {

@@ -716,3 +717,3 @@ str += '<span class="mp_address_name">' + he.encode(address.name) + (address.group ? ': ' : '') + '</span>';

}
return str;
return str + '</span>';
}).join(', ');

@@ -719,0 +720,0 @@ return formatSingleLevel([].concat(value || []));

{
"name": "mailparser",
"version": "2.0.1",
"version": "2.0.2",
"description": "Parse e-mails",

@@ -17,3 +17,3 @@ "main": "index.js",

"libmime": "3.1.0",
"mailsplit": "3.1.2",
"mailsplit": "4.0.0",
"marked": "0.3.6"

@@ -20,0 +20,0 @@ },

@@ -11,3 +11,3 @@ # MailParser

> Starting from v2.0.0 MailParser is licensed under the [European Union Public License 1.1](http://ec.europa.eu/idabc/eupl.html). In general, EUPLv1.1 is a _copyleft_ license compatible with GPLv2, so if you're OK using GPL then you should be OK using MailParser. Previous versions of MailParser are licensed under the MIT license.
> This module is part of the [Nodemailer bundle](https://nodemailer.com/about/pricing/). Starting from v2.0.0 MailParser is licensed under the [European Union Public License 1.1](http://ec.europa.eu/idabc/eupl.html). In general, EUPLv1.1 is a _copyleft_ license compatible with GPLv2, so if you're OK using GPL then you should be OK using MailParser. Previous versions of MailParser are licensed under the MIT license.

@@ -14,0 +14,0 @@ ## Install

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