nodemailer
Advanced tools
Comparing version 6.1.1 to 6.2.1
# CHANGELOG | ||
## 6.2.0 2019-05-24 | ||
- Added new option for addressparser: `flatten`. If true then ignores group names and returns a single list of all addresses | ||
## 6.1.1 2019-04-20 | ||
@@ -4,0 +8,0 @@ |
@@ -258,3 +258,5 @@ 'use strict'; | ||
*/ | ||
function addressparser(str) { | ||
function addressparser(str, options) { | ||
options = options || {}; | ||
let tokenizer = new Tokenizer(str); | ||
@@ -289,2 +291,17 @@ let tokens = tokenizer.tokenize(); | ||
if (options.flatten) { | ||
let addresses = []; | ||
let walkAddressList = list => { | ||
list.forEach(address => { | ||
if (address.group) { | ||
return walkAddressList(address.group); | ||
} else { | ||
addresses.push(address); | ||
} | ||
}); | ||
}; | ||
walkAddressList(parsedAddresses); | ||
return addresses; | ||
} | ||
return parsedAddresses; | ||
@@ -291,0 +308,0 @@ } |
{ | ||
"name": "nodemailer", | ||
"version": "6.1.1", | ||
"version": "6.2.1", | ||
"description": "Easy as cake e-mail sending from your Node.js applications", | ||
@@ -26,3 +26,3 @@ "main": "lib/nodemailer.js", | ||
"eslint-config-nodemailer": "1.2.0", | ||
"eslint-config-prettier": "4.1.0", | ||
"eslint-config-prettier": "4.3.0", | ||
"grunt": "1.0.4", | ||
@@ -33,9 +33,9 @@ "grunt-cli": "1.3.2", | ||
"libbase64": "1.0.3", | ||
"libmime": "4.0.1", | ||
"libmime": "4.1.3", | ||
"libqp": "1.1.0", | ||
"mocha": "5.2.0", | ||
"mocha": "6.1.4", | ||
"nodemailer-ntlm-auth": "1.0.1", | ||
"proxy": "0.2.4", | ||
"proxy-test-server": "1.0.0", | ||
"sinon": "7.3.1", | ||
"sinon": "7.3.2", | ||
"smtp-server": "3.5.0" | ||
@@ -42,0 +42,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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
478142
41
11289
18