mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-23 05:54:03 +07:00
update dependencies
This commit is contained in:
8
node_modules/nodemailer/CHANGELOG.md
generated
vendored
8
node_modules/nodemailer/CHANGELOG.md
generated
vendored
@ -1,5 +1,13 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 6.4.6 2020-03-20
|
||||
|
||||
- fix: `requeueAttempts=n` should requeue `n` times (Patrick Malouin) [a27ed2f7]
|
||||
|
||||
## 6.4.4 2020-03-01
|
||||
|
||||
- Add `options.forceAuth` for SMTP (Patrick Malouin) [a27ed2f7]
|
||||
|
||||
## 6.4.3 2020-02-22
|
||||
|
||||
- Added an option to specify max number of requeues when connection closes unexpectedly (Igor Sechyn) [8a927f5a]
|
||||
|
4
node_modules/nodemailer/lib/smtp-pool/index.js
generated
vendored
4
node_modules/nodemailer/lib/smtp-pool/index.js
generated
vendored
@ -420,7 +420,7 @@ class SMTPPool extends EventEmitter {
|
||||
return true;
|
||||
}
|
||||
|
||||
return queueEntry.requeueAttempts && queueEntry.requeueAttempts < this.options.maxRequeues;
|
||||
return queueEntry.requeueAttempts < this.options.maxRequeues;
|
||||
}
|
||||
|
||||
_failDeliveryOnConnectionClose(connection) {
|
||||
@ -613,7 +613,7 @@ class SMTPPool extends EventEmitter {
|
||||
return;
|
||||
}
|
||||
|
||||
if (auth && connection.allowsAuth) {
|
||||
if (auth && (connection.allowsAuth || options.forceAuth)) {
|
||||
connection.login(auth, err => {
|
||||
if (returned) {
|
||||
return;
|
||||
|
2
node_modules/nodemailer/lib/smtp-pool/pool-resource.js
generated
vendored
2
node_modules/nodemailer/lib/smtp-pool/pool-resource.js
generated
vendored
@ -137,7 +137,7 @@ class PoolResource extends EventEmitter {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.auth && this.connection.allowsAuth) {
|
||||
if (this.auth && (this.connection.allowsAuth || options.forceAuth)) {
|
||||
this.connection.login(this.auth, err => {
|
||||
if (returned) {
|
||||
return;
|
||||
|
4
node_modules/nodemailer/lib/smtp-transport/index.js
generated
vendored
4
node_modules/nodemailer/lib/smtp-transport/index.js
generated
vendored
@ -267,7 +267,7 @@ class SMTPTransport extends EventEmitter {
|
||||
|
||||
let auth = this.getAuth(mail.data.auth);
|
||||
|
||||
if (auth && connection.allowsAuth) {
|
||||
if (auth && (connection.allowsAuth || options.forceAuth)) {
|
||||
connection.login(auth, err => {
|
||||
if (auth && auth !== this.auth && auth.oauth2) {
|
||||
auth.oauth2.removeAllListeners();
|
||||
@ -370,7 +370,7 @@ class SMTPTransport extends EventEmitter {
|
||||
|
||||
let authData = this.getAuth({});
|
||||
|
||||
if (authData && connection.allowsAuth) {
|
||||
if (authData && (connection.allowsAuth || options.forceAuth)) {
|
||||
connection.login(authData, err => {
|
||||
if (returned) {
|
||||
return;
|
||||
|
33
node_modules/nodemailer/package.json
generated
vendored
33
node_modules/nodemailer/package.json
generated
vendored
@ -1,27 +1,27 @@
|
||||
{
|
||||
"_from": "nodemailer",
|
||||
"_id": "nodemailer@6.4.3",
|
||||
"_from": "nodemailer@6.4.6",
|
||||
"_id": "nodemailer@6.4.6",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-zmx4MTzYWQo2abFexvFYVURaiBGLekoA/yjP2Ctigd82hYtC4n38pcphQBi805t7AB2sY6DwmxnP/tb77f3KHA==",
|
||||
"_integrity": "sha512-/kJ+FYVEm2HuUlw87hjSqTss+GU35D4giOpdSfGp7DO+5h6RlJj7R94YaYHOkoxu1CSaM0d3WRBtCzwXrY6MKA==",
|
||||
"_location": "/nodemailer",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "tag",
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "nodemailer",
|
||||
"raw": "nodemailer@6.4.6",
|
||||
"name": "nodemailer",
|
||||
"escapedName": "nodemailer",
|
||||
"rawSpec": "",
|
||||
"rawSpec": "6.4.6",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "latest"
|
||||
"fetchSpec": "6.4.6"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#USER",
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.3.tgz",
|
||||
"_shasum": "10d29195fb020e3297495bcba39d3519b23483f3",
|
||||
"_spec": "nodemailer",
|
||||
"_resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.6.tgz",
|
||||
"_shasum": "d37f504f6560b36616f646a606894fe18819107f",
|
||||
"_spec": "nodemailer@6.4.6",
|
||||
"_where": "/home/dawidd6/github/dawidd6/action-send-mail",
|
||||
"author": {
|
||||
"name": "Andris Reinman"
|
||||
@ -37,20 +37,20 @@
|
||||
"bunyan": "1.8.12",
|
||||
"chai": "4.2.0",
|
||||
"eslint-config-nodemailer": "1.2.0",
|
||||
"eslint-config-prettier": "6.7.0",
|
||||
"grunt": "1.0.4",
|
||||
"eslint-config-prettier": "6.10.0",
|
||||
"grunt": "1.1.0",
|
||||
"grunt-cli": "1.3.2",
|
||||
"grunt-eslint": "22.0.0",
|
||||
"grunt-mocha-test": "0.13.3",
|
||||
"libbase64": "1.2.1",
|
||||
"libmime": "4.2.1",
|
||||
"libqp": "1.1.0",
|
||||
"mocha": "6.2.2",
|
||||
"mocha": "7.1.1",
|
||||
"nodemailer-ntlm-auth": "1.0.1",
|
||||
"proxy": "1.0.1",
|
||||
"proxy-test-server": "1.0.0",
|
||||
"sinon": "7.5.0",
|
||||
"smtp-server": "3.5.0"
|
||||
"sinon": "9.0.1",
|
||||
"smtp-server": "3.6.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
@ -67,7 +67,8 @@
|
||||
"url": "git+https://github.com/nodemailer/nodemailer.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\"",
|
||||
"test": "grunt"
|
||||
},
|
||||
"version": "6.4.3"
|
||||
"version": "6.4.6"
|
||||
}
|
||||
|
58
node_modules/nodemailer/postinstall.js
generated
vendored
Normal file
58
node_modules/nodemailer/postinstall.js
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
/* eslint no-control-regex:0 */
|
||||
'use strict';
|
||||
|
||||
const packageData = require('./package.json');
|
||||
const isEnabled = value => !!value && value !== '0' && value !== 'false';
|
||||
const canUseColor = isEnabled(process.env.npm_config_color);
|
||||
|
||||
const text = `=== Nodemailer ${packageData.version} ===
|
||||
|
||||
Thank you for using Nodemailer for your email sending needs! While Nodemailer itself is mostly meant to be a SMTP client there are other related projects in the Nodemailer project as well.
|
||||
|
||||
For example:
|
||||
> IMAP API ( https://imapapi.com ) is a server application to easily access IMAP accounts via REST API
|
||||
> NodemailerApp ( https://nodemailer.com/app/ ) is a cross platform GUI app to debug emails
|
||||
`;
|
||||
|
||||
const formatRow = (row, columns) => {
|
||||
if (row.length <= columns) {
|
||||
return [row];
|
||||
}
|
||||
// wrap!
|
||||
let lines = [];
|
||||
while (row.length) {
|
||||
if (row.length <= columns) {
|
||||
lines.push(row);
|
||||
break;
|
||||
}
|
||||
let slice = row.substr(0, columns);
|
||||
|
||||
let match = slice.match(/(\s+)[^\s]*$/);
|
||||
if (match && match.index) {
|
||||
let line = row.substr(0, match.index);
|
||||
row = row.substr(line.length + match[1].length);
|
||||
lines.push(line);
|
||||
} else {
|
||||
lines.push(row);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return lines;
|
||||
};
|
||||
|
||||
const wrapText = text => {
|
||||
let columns = Number(process.stdout.columns) || 80;
|
||||
columns = Math.min(columns, 80) - 1;
|
||||
|
||||
return text
|
||||
.split('\n')
|
||||
.flatMap(row => formatRow(row, columns))
|
||||
.join('\n');
|
||||
};
|
||||
|
||||
const banner = wrapText(text)
|
||||
.replace(/^/gm, '\u001B[96m')
|
||||
.replace(/$/gm, '\u001B[0m')
|
||||
.replace(/(https:[^\s)]+)/g, '\u001B[94m $1 \u001B[96m');
|
||||
|
||||
console.log(canUseColor ? banner : banner.replace(/\u001B\[\d+m/g, ''));
|
Reference in New Issue
Block a user