Comparing version 5.2.0 to 5.2.1
# Changelog | ||
## v5.2.1 2023-01-27 | ||
- Fix base64 encoding for emoji bytes in encoded words | ||
## v5.2.0 2022-12-08 | ||
@@ -4,0 +8,0 @@ |
@@ -151,2 +151,8 @@ /* eslint no-control-regex: 0, no-div-regex: 0, quotes: 0 */ | ||
// without breaking byte length limit | ||
if (/[\ud83c\ud83d\ud83e]/.test(chr) && i < len - 1) { | ||
// composite emoji byte, so add the next byte as well | ||
chr += encodedStr.charAt(++i); | ||
} | ||
if (Buffer.byteLength(lpart + chr) <= maxLength || i === 0) { | ||
@@ -153,0 +159,0 @@ lpart += chr; |
{ | ||
"name": "libmime", | ||
"description": "Encode and decode quoted printable and base64 strings", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"main": "lib/libmime", | ||
@@ -30,3 +30,3 @@ "homepage": "https://github.com/andris9/libmime", | ||
"eslint-config-nodemailer": "1.2.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"grunt": "1.5.3", | ||
@@ -36,4 +36,4 @@ "grunt-cli": "1.4.3", | ||
"grunt-mocha-test": "0.13.3", | ||
"mocha": "10.1.0" | ||
"mocha": "10.2.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146428
3176