mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-16 02:24:40 +07:00
node_modules: upgrade
This commit is contained in:
6
node_modules/nodemailer/lib/fetch/index.js
generated
vendored
6
node_modules/nodemailer/lib/fetch/index.js
generated
vendored
@ -11,12 +11,12 @@ const packageData = require('../../package.json');
|
||||
const MAX_REDIRECTS = 5;
|
||||
|
||||
module.exports = function (url, options) {
|
||||
return fetch(url, options);
|
||||
return nmfetch(url, options);
|
||||
};
|
||||
|
||||
module.exports.Cookies = Cookies;
|
||||
|
||||
function fetch(url, options) {
|
||||
function nmfetch(url, options) {
|
||||
options = options || {};
|
||||
|
||||
options.fetchRes = options.fetchRes || new PassThrough();
|
||||
@ -202,7 +202,7 @@ function fetch(url, options) {
|
||||
// redirect does not include POST body
|
||||
options.method = 'GET';
|
||||
options.body = false;
|
||||
return fetch(urllib.resolve(url, res.headers.location), options);
|
||||
return nmfetch(urllib.resolve(url, res.headers.location), options);
|
||||
}
|
||||
|
||||
fetchRes.statusCode = res.statusCode;
|
||||
|
Reference in New Issue
Block a user