mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-10-02 09:31:27 +07:00
node_modules: update
This commit is contained in:
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(';')
|
||||
.forEach(cookiePart => {
|
||||
let valueParts = cookiePart.split('=');
|
||||
let key = valueParts
|
||||
.shift()
|
||||
.trim()
|
||||
.toLowerCase();
|
||||
let key = valueParts.shift().trim().toLowerCase();
|
||||
let value = valueParts.join('=').trim();
|
||||
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;
|
||||
|
||||
module.exports = function(url, options) {
|
||||
module.exports = function (url, options) {
|
||||
return fetch(url, options);
|
||||
};
|
||||
|
||||
@ -33,11 +33,7 @@ function fetch(url, options) {
|
||||
|
||||
let fetchRes = options.fetchRes;
|
||||
let parsed = urllib.parse(url);
|
||||
let method =
|
||||
(options.method || '')
|
||||
.toString()
|
||||
.trim()
|
||||
.toUpperCase() || 'GET';
|
||||
let method = (options.method || '').toString().trim().toUpperCase() || 'GET';
|
||||
let finished = false;
|
||||
let cookies;
|
||||
let body;
|
||||
@ -115,11 +111,7 @@ function fetch(url, options) {
|
||||
headers['Content-Length'] = body.length;
|
||||
}
|
||||
// if method is not provided, use POST instead of GET
|
||||
method =
|
||||
(options.method || '')
|
||||
.toString()
|
||||
.trim()
|
||||
.toUpperCase() || 'POST';
|
||||
method = (options.method || '').toString().trim().toUpperCase() || 'POST';
|
||||
}
|
||||
|
||||
let req;
|
||||
|
Reference in New Issue
Block a user