node_modules: update

This commit is contained in:
Dawid Dziurla 2021-03-23 21:57:43 +01:00
parent a5a673e774
commit 9210f61cf4
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
9 changed files with 90 additions and 44 deletions

6
node_modules/.package-lock.json generated vendored
View File

@ -112,9 +112,9 @@
} }
}, },
"node_modules/nodemailer": { "node_modules/nodemailer": {
"version": "6.4.17", "version": "6.5.0",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.17.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.5.0.tgz",
"integrity": "sha512-89ps+SBGpo0D4Bi5ZrxcrCiRFaMmkCt+gItMXQGzEtZVR3uAD3QAQIDoxTWnx3ky0Dwwy/dhFrQ+6NNGXpw/qQ==", "integrity": "sha512-Tm4RPrrIZbnqDKAvX+/4M+zovEReiKlEXWDzG4iwtpL9X34MJY+D5LnQPH/+eghe8DLlAVshHAJZAZWBGhkguw==",
"engines": { "engines": {
"node": ">=6.0.0" "node": ">=6.0.0"
} }

10
node_modules/nodemailer/CHANGELOG.md generated vendored
View File

@ -1,5 +1,15 @@
# CHANGELOG # CHANGELOG
## 6.5.0 2021-02-26
- Pass through textEncoding to subnodes
- Added support for AWS SES v3 SDK
- Fixed tests
## 6.4.18 2021-02-11
- Updated README
## 6.4.17 2020-12-11 ## 6.4.17 2020-12-11
- Allow mixing attachments with caendar alternatives - Allow mixing attachments with caendar alternatives

2
node_modules/nodemailer/README.md generated vendored
View File

@ -2,6 +2,8 @@
[![Nodemailer](https://raw.githubusercontent.com/nodemailer/nodemailer/master/assets/nm_logo_200x136.png)](https://nodemailer.com/about/) [![Nodemailer](https://raw.githubusercontent.com/nodemailer/nodemailer/master/assets/nm_logo_200x136.png)](https://nodemailer.com/about/)
> Sponsored by [Forward Email](https://forwardemail.net/?ref=nodemailer) – free email forwarding + custom domains + 100% open-source!
Send e-mails from Node.js easy as cake! 🍰✉️ Send e-mails from Node.js easy as cake! 🍰✉️
[![NPM](https://nodei.co/npm/nodemailer.png?downloads=true&downloadRank=true&stars=true)](https://nodemailer.com/about/) [![NPM](https://nodei.co/npm/nodemailer.png?downloads=true&downloadRank=true&stars=true)](https://nodemailer.com/about/)

View File

@ -475,6 +475,7 @@ class MailComposer {
} else { } else {
node = parentNode.createChild(element.contentType, { node = parentNode.createChild(element.contentType, {
filename: element.filename, filename: element.filename,
textEncoding: this.mail.textEncoding,
disableUrlAccess: this.mail.disableUrlAccess, disableUrlAccess: this.mail.disableUrlAccess,
disableFileAccess: this.mail.disableFileAccess, disableFileAccess: this.mail.disableFileAccess,
normalizeHeaderKey: this.mail.normalizeHeaderKey normalizeHeaderKey: this.mail.normalizeHeaderKey

View File

@ -451,7 +451,7 @@ class MimeNode {
transferEncoding = this._getTextEncoding(this.content) === 'Q' ? 'quoted-printable' : 'base64'; transferEncoding = this._getTextEncoding(this.content) === 'Q' ? 'quoted-printable' : 'base64';
} else { } else {
// we can not check content for a stream, so either use preferred encoding or fallback to QP // we can not check content for a stream, so either use preferred encoding or fallback to QP
transferEncoding = this.transferEncoding === 'B' ? 'base64' : 'quoted-printable'; transferEncoding = this.textEncoding === 'B' ? 'base64' : 'quoted-printable';
} }
} else if (!/^(multipart|message)\//i.test(contentType)) { } else if (!/^(multipart|message)\//i.test(contentType)) {
transferEncoding = transferEncoding || 'base64'; transferEncoding = transferEncoding || 'base64';

View File

@ -239,36 +239,64 @@ class SESTransport extends EventEmitter {
sesMessage[key] = mail.data.ses[key]; sesMessage[key] = mail.data.ses[key];
}); });
this.ses.sendRawEmail(sesMessage, (err, data) => { let ses = (this.ses.aws ? this.ses.ses : this.ses) || {};
if (err) { let aws = this.ses.aws || {};
this.logger.error(
{ let getRegion = cb => {
err, if (ses.config && typeof ses.config.region === 'function') {
tnx: 'send' // promise
}, return ses.config
'Send error for %s: %s', .region()
messageId, .then(region => cb(null, region))
err.message .catch(err => cb(err));
); }
statObject.pending = false; return cb(null, (ses.config && ses.config.region) || 'us-east-1');
return callback(err); };
getRegion((err, region) => {
if (err || !region) {
region = 'us-east-1';
} }
let region = (this.ses.config && this.ses.config.region) || 'us-east-1'; let sendPromise;
if (region === 'us-east-1') { if (typeof ses.send === 'function' && aws.SendRawEmailCommand) {
region = 'email'; // v3 API
sendPromise = ses.send(new aws.SendRawEmailCommand(sesMessage));
} else {
// v2 API
sendPromise = ses.sendRawEmail(sesMessage).promise();
} }
statObject.pending = false; sendPromise
callback(null, { .then(data => {
envelope: { if (region === 'us-east-1') {
from: envelope.from, region = 'email';
to: envelope.to }
},
messageId: '<' + data.MessageId + (!/@/.test(data.MessageId) ? '@' + region + '.amazonses.com' : '') + '>', statObject.pending = false;
response: data.MessageId, callback(null, {
raw envelope: {
}); from: envelope.from,
to: envelope.to
},
messageId: '<' + data.MessageId + (!/@/.test(data.MessageId) ? '@' + region + '.amazonses.com' : '') + '>',
response: data.MessageId,
raw
});
})
.catch(err => {
this.logger.error(
{
err,
tnx: 'send'
},
'Send error for %s: %s',
messageId,
err.message
);
statObject.pending = false;
callback(err);
});
}); });
}) })
); );

View File

@ -148,6 +148,12 @@
"secure": false "secure": false
}, },
"OhMySMTP": {
"host": "smtp.ohmysmtp.com",
"port": 587,
"secure": false
},
"Postmark": { "Postmark": {
"aliases": ["PostmarkApp"], "aliases": ["PostmarkApp"],
"host": "smtp.postmarkapp.com", "host": "smtp.postmarkapp.com",

15
node_modules/nodemailer/package.json generated vendored
View File

@ -1,6 +1,6 @@
{ {
"name": "nodemailer", "name": "nodemailer",
"version": "6.4.17", "version": "6.5.0",
"description": "Easy as cake e-mail sending from your Node.js applications", "description": "Easy as cake e-mail sending from your Node.js applications",
"main": "lib/nodemailer.js", "main": "lib/nodemailer.js",
"scripts": { "scripts": {
@ -20,10 +20,10 @@
}, },
"homepage": "https://nodemailer.com/", "homepage": "https://nodemailer.com/",
"devDependencies": { "devDependencies": {
"bunyan": "1.8.14", "bunyan": "1.8.15",
"chai": "4.2.0", "chai": "4.3.0",
"eslint-config-nodemailer": "1.2.0", "eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "7.0.0", "eslint-config-prettier": "8.1.0",
"grunt": "1.3.0", "grunt": "1.3.0",
"grunt-cli": "1.3.2", "grunt-cli": "1.3.2",
"grunt-eslint": "23.0.0", "grunt-eslint": "23.0.0",
@ -31,15 +31,14 @@
"libbase64": "1.2.1", "libbase64": "1.2.1",
"libmime": "5.0.0", "libmime": "5.0.0",
"libqp": "1.1.0", "libqp": "1.1.0",
"mocha": "8.2.1", "mocha": "8.3.0",
"nodemailer-ntlm-auth": "1.0.1", "nodemailer-ntlm-auth": "1.0.1",
"proxy": "1.0.2", "proxy": "1.0.2",
"proxy-test-server": "1.0.0", "proxy-test-server": "1.0.0",
"sinon": "9.2.1", "sinon": "9.2.4",
"smtp-server": "3.8.0" "smtp-server": "3.8.0"
}, },
"engines": { "engines": {
"node": ">=6.0.0" "node": ">=6.0.0"
}, }
"dependencies": {}
} }

12
package-lock.json generated
View File

@ -121,9 +121,9 @@
} }
}, },
"node_modules/nodemailer": { "node_modules/nodemailer": {
"version": "6.4.17", "version": "6.5.0",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.17.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.5.0.tgz",
"integrity": "sha512-89ps+SBGpo0D4Bi5ZrxcrCiRFaMmkCt+gItMXQGzEtZVR3uAD3QAQIDoxTWnx3ky0Dwwy/dhFrQ+6NNGXpw/qQ==", "integrity": "sha512-Tm4RPrrIZbnqDKAvX+/4M+zovEReiKlEXWDzG4iwtpL9X34MJY+D5LnQPH/+eghe8DLlAVshHAJZAZWBGhkguw==",
"engines": { "engines": {
"node": ">=6.0.0" "node": ">=6.0.0"
} }
@ -358,9 +358,9 @@
} }
}, },
"nodemailer": { "nodemailer": {
"version": "6.4.17", "version": "6.5.0",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.17.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.5.0.tgz",
"integrity": "sha512-89ps+SBGpo0D4Bi5ZrxcrCiRFaMmkCt+gItMXQGzEtZVR3uAD3QAQIDoxTWnx3ky0Dwwy/dhFrQ+6NNGXpw/qQ==" "integrity": "sha512-Tm4RPrrIZbnqDKAvX+/4M+zovEReiKlEXWDzG4iwtpL9X34MJY+D5LnQPH/+eghe8DLlAVshHAJZAZWBGhkguw=="
}, },
"p-limit": { "p-limit": {
"version": "2.3.0", "version": "2.3.0",