node_modules: update

This commit is contained in:
Dawid Dziurla
2020-11-12 16:31:20 +01:00
parent 345c86e5c4
commit d1b07d9ed7
15 changed files with 52 additions and 91 deletions

View File

@ -70,6 +70,14 @@ class SendmailTransport {
let returned;
let transform;
const hasInvalidAddresses = []
.concat(envelope.from || [])
.concat(envelope.to || [])
.some(addr => /^-/.test(addr));
if (hasInvalidAddresses) {
return done(new Error('Can not send mail. Invalid envelope addresses.'));
}
if (this.args) {
// force -i to keep single dots
args = ['-i'].concat(this.args).concat(envelope.to);