Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email-reply-parser

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-reply-parser - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

4

lib/email.js

@@ -12,3 +12,3 @@ class Email {

return this.filterText((fragment) => {
return !fragment.isHidden;
return !fragment.isHidden();
});

@@ -19,3 +19,3 @@ }

return this.filterText((fragment) => {
return fragment.isQuoted;
return fragment.isQuoted();
});

@@ -22,0 +22,0 @@ }

class Fragment {
constructor(content, isHidden, isSignature, isQuoted) {
this.content = content;
this.isHidden = isHidden;
this.isSignature = isSignature;
this.isQuoted = isQuoted;
this._content = content;
this._isHidden = isHidden;
this._isSignature = isSignature;
this._isQuoted = isQuoted;
}
isHidden() {
return this.isHidden;
return this._isHidden;
}
isSignature() {
return this.isSignature;
return this._isSignature;
}
isQuoted() {
return this.isQuoted;
return this._isQuoted;
}
getContent() {
return this.content;
return this._content;
}
isEmpty() {
return "" === this.getContent.replace(/\n/g, "");
return "" === this.getContent().replace(/\n/g, "");
}

@@ -34,2 +34,2 @@

module.exports = Fragment;
module.exports = Fragment;
{
"name": "email-reply-parser",
"version": "1.7.0",
"version": "1.7.1",
"description": "Node library for parsing plain text email content. Based on https://github.com/willdurand/EmailReplyParser",

@@ -5,0 +5,0 @@ "main": "lib/emailreplyparser.js",

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