mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-12-25 18:43:08 +07:00
node_modules: update
This commit is contained in:
parent
345c86e5c4
commit
d1b07d9ed7
4
node_modules/nodemailer/CHANGELOG.md
generated
vendored
4
node_modules/nodemailer/CHANGELOG.md
generated
vendored
@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 6.4.16 2020-11-12
|
||||||
|
|
||||||
|
- Applied updated prettier formating rules
|
||||||
|
|
||||||
## 6.4.15 2020-11-06
|
## 6.4.15 2020-11-06
|
||||||
|
|
||||||
- Minor changes in header key casing
|
- Minor changes in header key casing
|
||||||
|
5
node_modules/nodemailer/lib/dkim/message-parser.js
generated
vendored
5
node_modules/nodemailer/lib/dkim/message-parser.js
generated
vendored
@ -146,10 +146,7 @@ class MessageParser extends Transform {
|
|||||||
return lines
|
return lines
|
||||||
.filter(line => line.trim())
|
.filter(line => line.trim())
|
||||||
.map(line => ({
|
.map(line => ({
|
||||||
key: line
|
key: line.substr(0, line.indexOf(':')).trim().toLowerCase(),
|
||||||
.substr(0, line.indexOf(':'))
|
|
||||||
.trim()
|
|
||||||
.toLowerCase(),
|
|
||||||
line
|
line
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
5
node_modules/nodemailer/lib/fetch/cookies.js
generated
vendored
5
node_modules/nodemailer/lib/fetch/cookies.js
generated
vendored
@ -110,10 +110,7 @@ class Cookies {
|
|||||||
.split(';')
|
.split(';')
|
||||||
.forEach(cookiePart => {
|
.forEach(cookiePart => {
|
||||||
let valueParts = cookiePart.split('=');
|
let valueParts = cookiePart.split('=');
|
||||||
let key = valueParts
|
let key = valueParts.shift().trim().toLowerCase();
|
||||||
.shift()
|
|
||||||
.trim()
|
|
||||||
.toLowerCase();
|
|
||||||
let value = valueParts.join('=').trim();
|
let value = valueParts.join('=').trim();
|
||||||
let domain;
|
let domain;
|
||||||
|
|
||||||
|
14
node_modules/nodemailer/lib/fetch/index.js
generated
vendored
14
node_modules/nodemailer/lib/fetch/index.js
generated
vendored
@ -10,7 +10,7 @@ const packageData = require('../../package.json');
|
|||||||
|
|
||||||
const MAX_REDIRECTS = 5;
|
const MAX_REDIRECTS = 5;
|
||||||
|
|
||||||
module.exports = function(url, options) {
|
module.exports = function (url, options) {
|
||||||
return fetch(url, options);
|
return fetch(url, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -33,11 +33,7 @@ function fetch(url, options) {
|
|||||||
|
|
||||||
let fetchRes = options.fetchRes;
|
let fetchRes = options.fetchRes;
|
||||||
let parsed = urllib.parse(url);
|
let parsed = urllib.parse(url);
|
||||||
let method =
|
let method = (options.method || '').toString().trim().toUpperCase() || 'GET';
|
||||||
(options.method || '')
|
|
||||||
.toString()
|
|
||||||
.trim()
|
|
||||||
.toUpperCase() || 'GET';
|
|
||||||
let finished = false;
|
let finished = false;
|
||||||
let cookies;
|
let cookies;
|
||||||
let body;
|
let body;
|
||||||
@ -115,11 +111,7 @@ function fetch(url, options) {
|
|||||||
headers['Content-Length'] = body.length;
|
headers['Content-Length'] = body.length;
|
||||||
}
|
}
|
||||||
// if method is not provided, use POST instead of GET
|
// if method is not provided, use POST instead of GET
|
||||||
method =
|
method = (options.method || '').toString().trim().toUpperCase() || 'POST';
|
||||||
(options.method || '')
|
|
||||||
.toString()
|
|
||||||
.trim()
|
|
||||||
.toUpperCase() || 'POST';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let req;
|
let req;
|
||||||
|
7
node_modules/nodemailer/lib/mailer/mail-message.js
generated
vendored
7
node_modules/nodemailer/lib/mailer/mail-message.js
generated
vendored
@ -64,12 +64,7 @@ class MailMessage {
|
|||||||
if (this.data.attachments && this.data.attachments.length) {
|
if (this.data.attachments && this.data.attachments.length) {
|
||||||
this.data.attachments.forEach((attachment, i) => {
|
this.data.attachments.forEach((attachment, i) => {
|
||||||
if (!attachment.filename) {
|
if (!attachment.filename) {
|
||||||
attachment.filename =
|
attachment.filename = (attachment.path || attachment.href || '').split('/').pop().split('?').shift() || 'attachment-' + (i + 1);
|
||||||
(attachment.path || attachment.href || '')
|
|
||||||
.split('/')
|
|
||||||
.pop()
|
|
||||||
.split('?')
|
|
||||||
.shift() || 'attachment-' + (i + 1);
|
|
||||||
if (attachment.filename.indexOf('.') < 0) {
|
if (attachment.filename.indexOf('.') < 0) {
|
||||||
attachment.filename += '.' + mimeFuncs.detectExtension(attachment.contentType);
|
attachment.filename += '.' + mimeFuncs.detectExtension(attachment.contentType);
|
||||||
}
|
}
|
||||||
|
11
node_modules/nodemailer/lib/mime-funcs/mime-types.js
generated
vendored
11
node_modules/nodemailer/lib/mime-funcs/mime-types.js
generated
vendored
@ -2063,11 +2063,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let parsed = path.parse(filename);
|
let parsed = path.parse(filename);
|
||||||
let extension = (parsed.ext.substr(1) || parsed.name || '')
|
let extension = (parsed.ext.substr(1) || parsed.name || '').split('?').shift().trim().toLowerCase();
|
||||||
.split('?')
|
|
||||||
.shift()
|
|
||||||
.trim()
|
|
||||||
.toLowerCase();
|
|
||||||
let value = defaultMimeType;
|
let value = defaultMimeType;
|
||||||
|
|
||||||
if (extensions.has(extension)) {
|
if (extensions.has(extension)) {
|
||||||
@ -2084,10 +2080,7 @@ module.exports = {
|
|||||||
if (!mimeType) {
|
if (!mimeType) {
|
||||||
return defaultExtension;
|
return defaultExtension;
|
||||||
}
|
}
|
||||||
let parts = (mimeType || '')
|
let parts = (mimeType || '').toLowerCase().trim().split('/');
|
||||||
.toLowerCase()
|
|
||||||
.trim()
|
|
||||||
.split('/');
|
|
||||||
let rootType = parts.shift().trim();
|
let rootType = parts.shift().trim();
|
||||||
let subType = parts.join('/').trim();
|
let subType = parts.join('/').trim();
|
||||||
|
|
||||||
|
13
node_modules/nodemailer/lib/nodemailer.js
generated
vendored
13
node_modules/nodemailer/lib/nodemailer.js
generated
vendored
@ -13,16 +13,11 @@ const packageData = require('../package.json');
|
|||||||
|
|
||||||
const ETHEREAL_API = (process.env.ETHEREAL_API || 'https://api.nodemailer.com').replace(/\/+$/, '');
|
const ETHEREAL_API = (process.env.ETHEREAL_API || 'https://api.nodemailer.com').replace(/\/+$/, '');
|
||||||
const ETHEREAL_WEB = (process.env.ETHEREAL_WEB || 'https://ethereal.email').replace(/\/+$/, '');
|
const ETHEREAL_WEB = (process.env.ETHEREAL_WEB || 'https://ethereal.email').replace(/\/+$/, '');
|
||||||
const ETHEREAL_CACHE = ['true', 'yes', 'y', '1'].includes(
|
const ETHEREAL_CACHE = ['true', 'yes', 'y', '1'].includes((process.env.ETHEREAL_CACHE || 'yes').toString().trim().toLowerCase());
|
||||||
(process.env.ETHEREAL_CACHE || 'yes')
|
|
||||||
.toString()
|
|
||||||
.trim()
|
|
||||||
.toLowerCase()
|
|
||||||
);
|
|
||||||
|
|
||||||
let testAccount = false;
|
let testAccount = false;
|
||||||
|
|
||||||
module.exports.createTransport = function(transporter, defaults) {
|
module.exports.createTransport = function (transporter, defaults) {
|
||||||
let urlConfig;
|
let urlConfig;
|
||||||
let options;
|
let options;
|
||||||
let mailer;
|
let mailer;
|
||||||
@ -60,7 +55,7 @@ module.exports.createTransport = function(transporter, defaults) {
|
|||||||
return mailer;
|
return mailer;
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.createTestAccount = function(apiUrl, callback) {
|
module.exports.createTestAccount = function (apiUrl, callback) {
|
||||||
let promise;
|
let promise;
|
||||||
|
|
||||||
if (!callback && typeof apiUrl === 'function') {
|
if (!callback && typeof apiUrl === 'function') {
|
||||||
@ -128,7 +123,7 @@ module.exports.createTestAccount = function(apiUrl, callback) {
|
|||||||
return promise;
|
return promise;
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.getTestMessageUrl = function(info) {
|
module.exports.getTestMessageUrl = function (info) {
|
||||||
if (!info || !info.response) {
|
if (!info || !info.response) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
8
node_modules/nodemailer/lib/sendmail-transport/index.js
generated
vendored
8
node_modules/nodemailer/lib/sendmail-transport/index.js
generated
vendored
@ -70,6 +70,14 @@ class SendmailTransport {
|
|||||||
let returned;
|
let returned;
|
||||||
let transform;
|
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) {
|
if (this.args) {
|
||||||
// force -i to keep single dots
|
// force -i to keep single dots
|
||||||
args = ['-i'].concat(this.args).concat(envelope.to);
|
args = ['-i'].concat(this.args).concat(envelope.to);
|
||||||
|
14
node_modules/nodemailer/lib/shared/index.js
generated
vendored
14
node_modules/nodemailer/lib/shared/index.js
generated
vendored
@ -276,7 +276,7 @@ module.exports.getLogger = (options, defaults) => {
|
|||||||
* @param {Function} reject Function to run if callback ends with an error
|
* @param {Function} reject Function to run if callback ends with an error
|
||||||
*/
|
*/
|
||||||
module.exports.callbackPromise = (resolve, reject) =>
|
module.exports.callbackPromise = (resolve, reject) =>
|
||||||
function() {
|
function () {
|
||||||
let args = Array.from(arguments);
|
let args = Array.from(arguments);
|
||||||
let err = args.shift();
|
let err = args.shift();
|
||||||
if (err) {
|
if (err) {
|
||||||
@ -357,7 +357,7 @@ module.exports.resolveContent = (data, key, callback) => {
|
|||||||
/**
|
/**
|
||||||
* Copies properties from source objects to target objects
|
* Copies properties from source objects to target objects
|
||||||
*/
|
*/
|
||||||
module.exports.assign = function(/* target, ... sources */) {
|
module.exports.assign = function (/* target, ... sources */) {
|
||||||
let args = Array.from(arguments);
|
let args = Array.from(arguments);
|
||||||
let target = args.shift() || {};
|
let target = args.shift() || {};
|
||||||
|
|
||||||
@ -489,15 +489,7 @@ function createDefaultLogger(levels) {
|
|||||||
|
|
||||||
message = util.format(message, ...args);
|
message = util.format(message, ...args);
|
||||||
message.split(/\r?\n/).forEach(line => {
|
message.split(/\r?\n/).forEach(line => {
|
||||||
console.log(
|
console.log('[%s] %s %s', new Date().toISOString().substr(0, 19).replace(/T/, ' '), levelNames.get(level), prefix + line);
|
||||||
'[%s] %s %s',
|
|
||||||
new Date()
|
|
||||||
.toISOString()
|
|
||||||
.substr(0, 19)
|
|
||||||
.replace(/T/, ' '),
|
|
||||||
levelNames.get(level),
|
|
||||||
prefix + line
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
2
node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js
generated
vendored
2
node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js
generated
vendored
@ -44,7 +44,7 @@ function httpProxyClient(proxyUrl, destinationPort, destinationHost, callback) {
|
|||||||
// Error harness for initial connection. Once connection is established, the responsibility
|
// Error harness for initial connection. Once connection is established, the responsibility
|
||||||
// to handle errors is passed to whoever uses this socket
|
// to handle errors is passed to whoever uses this socket
|
||||||
let finished = false;
|
let finished = false;
|
||||||
let tempSocketErr = function(err) {
|
let tempSocketErr = function (err) {
|
||||||
if (finished) {
|
if (finished) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
18
node_modules/nodemailer/lib/smtp-connection/index.js
generated
vendored
18
node_modules/nodemailer/lib/smtp-connection/index.js
generated
vendored
@ -45,10 +45,7 @@ class SMTPConnection extends EventEmitter {
|
|||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
this.id = crypto
|
this.id = crypto.randomBytes(8).toString('base64').replace(/\W/g, '');
|
||||||
.randomBytes(8)
|
|
||||||
.toString('base64')
|
|
||||||
.replace(/\W/g, '');
|
|
||||||
this.stage = 'init';
|
this.stage = 'init';
|
||||||
|
|
||||||
this.options = options || {};
|
this.options = options || {};
|
||||||
@ -73,10 +70,7 @@ class SMTPConnection extends EventEmitter {
|
|||||||
|
|
||||||
this.customAuth = new Map();
|
this.customAuth = new Map();
|
||||||
Object.keys(this.options.customAuth || {}).forEach(key => {
|
Object.keys(this.options.customAuth || {}).forEach(key => {
|
||||||
let mapKey = (key || '')
|
let mapKey = (key || '').toString().trim().toUpperCase();
|
||||||
.toString()
|
|
||||||
.trim()
|
|
||||||
.toUpperCase();
|
|
||||||
if (!mapKey) {
|
if (!mapKey) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -424,11 +418,7 @@ class SMTPConnection extends EventEmitter {
|
|||||||
|
|
||||||
this._auth = authData || {};
|
this._auth = authData || {};
|
||||||
// Select SASL authentication method
|
// Select SASL authentication method
|
||||||
this._authMethod =
|
this._authMethod = (this._auth.method || '').toString().trim().toUpperCase() || false;
|
||||||
(this._auth.method || '')
|
|
||||||
.toString()
|
|
||||||
.trim()
|
|
||||||
.toUpperCase() || false;
|
|
||||||
|
|
||||||
if (!this._authMethod && this._auth.oauth2 && !this._auth.credentials) {
|
if (!this._authMethod && this._auth.oauth2 && !this._auth.credentials) {
|
||||||
this._authMethod = 'XOAUTH2';
|
this._authMethod = 'XOAUTH2';
|
||||||
@ -598,7 +588,7 @@ class SMTPConnection extends EventEmitter {
|
|||||||
|
|
||||||
// ensure that callback is only called once
|
// ensure that callback is only called once
|
||||||
let returned = false;
|
let returned = false;
|
||||||
let callback = function() {
|
let callback = function () {
|
||||||
if (returned) {
|
if (returned) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
2
node_modules/nodemailer/lib/well-known/index.js
generated
vendored
2
node_modules/nodemailer/lib/well-known/index.js
generated
vendored
@ -41,7 +41,7 @@ function normalizeService(service) {
|
|||||||
* @param {String} key [description]
|
* @param {String} key [description]
|
||||||
* @returns {Object} SMTP config or false if not found
|
* @returns {Object} SMTP config or false if not found
|
||||||
*/
|
*/
|
||||||
module.exports = function(key) {
|
module.exports = function (key) {
|
||||||
key = normalizeKey(key.split('@').pop());
|
key = normalizeKey(key.split('@').pop());
|
||||||
return normalized[key] || false;
|
return normalized[key] || false;
|
||||||
};
|
};
|
||||||
|
4
node_modules/nodemailer/lib/xoauth2/index.js
generated
vendored
4
node_modules/nodemailer/lib/xoauth2/index.js
generated
vendored
@ -263,10 +263,10 @@ class XOAuth2 extends Stream {
|
|||||||
if (data.error) {
|
if (data.error) {
|
||||||
// Error Response : https://tools.ietf.org/html/rfc6749#section-5.2
|
// Error Response : https://tools.ietf.org/html/rfc6749#section-5.2
|
||||||
let errorMessage = data.error;
|
let errorMessage = data.error;
|
||||||
if(data.error_description) {
|
if (data.error_description) {
|
||||||
errorMessage += ': ' + data.error_description;
|
errorMessage += ': ' + data.error_description;
|
||||||
}
|
}
|
||||||
if(data.error_uri) {
|
if (data.error_uri) {
|
||||||
errorMessage += ' (' + data.error_uri + ')';
|
errorMessage += ' (' + data.error_uri + ')';
|
||||||
}
|
}
|
||||||
return callback(new Error(errorMessage));
|
return callback(new Error(errorMessage));
|
||||||
|
28
node_modules/nodemailer/package.json
generated
vendored
28
node_modules/nodemailer/package.json
generated
vendored
@ -1,31 +1,27 @@
|
|||||||
{
|
{
|
||||||
"_args": [
|
"_from": "nodemailer@6.4.16",
|
||||||
[
|
"_id": "nodemailer@6.4.16",
|
||||||
"nodemailer@6.4.15",
|
|
||||||
"/home/dawidd6/github/dawidd6/action-send-mail"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"_from": "nodemailer@6.4.15",
|
|
||||||
"_id": "nodemailer@6.4.15",
|
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-2/z13dBTWdgTRlxVMAK6C13dCI22GEShET4+jFLlQsxpblxYhojnucfcTZO1QBu5CsHvABsBj2JCGO3vl0HSQA==",
|
"_integrity": "sha512-68K0LgZ6hmZ7PVmwL78gzNdjpj5viqBdFqKrTtr9bZbJYj6BRj5W6WGkxXrEnUl3Co3CBXi3CZBUlpV/foGnOQ==",
|
||||||
"_location": "/nodemailer",
|
"_location": "/nodemailer",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "nodemailer@6.4.15",
|
"raw": "nodemailer@6.4.16",
|
||||||
"name": "nodemailer",
|
"name": "nodemailer",
|
||||||
"escapedName": "nodemailer",
|
"escapedName": "nodemailer",
|
||||||
"rawSpec": "6.4.15",
|
"rawSpec": "6.4.16",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "6.4.15"
|
"fetchSpec": "6.4.16"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
|
"#USER",
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.15.tgz",
|
"_resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.4.16.tgz",
|
||||||
"_spec": "6.4.15",
|
"_shasum": "5cb6391b1d79ab7eff32d6f9f48366b5a7117293",
|
||||||
|
"_spec": "nodemailer@6.4.16",
|
||||||
"_where": "/home/dawidd6/github/dawidd6/action-send-mail",
|
"_where": "/home/dawidd6/github/dawidd6/action-send-mail",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Andris Reinman"
|
"name": "Andris Reinman"
|
||||||
@ -33,7 +29,9 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/nodemailer/nodemailer/issues"
|
"url": "https://github.com/nodemailer/nodemailer/issues"
|
||||||
},
|
},
|
||||||
|
"bundleDependencies": false,
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
|
"deprecated": false,
|
||||||
"description": "Easy as cake e-mail sending from your Node.js applications",
|
"description": "Easy as cake e-mail sending from your Node.js applications",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bunyan": "1.8.14",
|
"bunyan": "1.8.14",
|
||||||
@ -71,5 +69,5 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "grunt"
|
"test": "grunt"
|
||||||
},
|
},
|
||||||
"version": "6.4.15"
|
"version": "6.4.16"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user