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

libmime

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libmime - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

20

lib/libmime.js

@@ -61,13 +61,13 @@ /* eslint no-control-regex: 0, no-div-regex: 0, quotes: 0 */

// soft linebreaks are added after space symbols
.reduce((previousValue, currentValue, index) => {
let body = previousValue;
if (delSp) {
// delsp adds spaces to text to be able to fold it
// these spaces can be removed once the text is unfolded
body = body.replace(/[ ]+$/, '');
}
if ((/ $/.test(previousValue) && !/(^|\n)-- $/.test(previousValue)) || index === 1) {
return body + currentValue;
.reduce((previousValue, currentValue) => {
if (/ $/.test(previousValue) && !/(^|\n)-- $/.test(previousValue)) {
if (delSp) {
// delsp adds space to text to be able to fold it
// these spaces can be removed once the text is unfolded
return previousValue.slice(0, -1) + currentValue;
} else {
return previousValue + currentValue;
}
} else {
return body + '\n' + currentValue;
return previousValue + '\n' + currentValue;
}

@@ -74,0 +74,0 @@ })

{
"name": "libmime",
"description": "Encode and decode quoted printable and base64 strings",
"version": "4.1.0",
"version": "4.1.1",
"main": "lib/libmime",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/andris9/libmime",

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