mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-07-24 15:49:06 +07:00
node_modules: upgrade
This commit is contained in:
7
node_modules/nodemailer/lib/mime-node/index.js
generated
vendored
7
node_modules/nodemailer/lib/mime-node/index.js
generated
vendored
@ -3,7 +3,6 @@
|
||||
'use strict';
|
||||
|
||||
const crypto = require('crypto');
|
||||
const os = require('os');
|
||||
const fs = require('fs');
|
||||
const punycode = require('punycode');
|
||||
const PassThrough = require('stream').PassThrough;
|
||||
@ -13,7 +12,7 @@ const mimeFuncs = require('../mime-funcs');
|
||||
const qp = require('../qp');
|
||||
const base64 = require('../base64');
|
||||
const addressparser = require('../addressparser');
|
||||
const fetch = require('../fetch');
|
||||
const nmfetch = require('../fetch');
|
||||
const LastNewline = require('./last-newline');
|
||||
|
||||
const LeWindows = require('./le-windows');
|
||||
@ -971,7 +970,7 @@ class MimeNode {
|
||||
return contentStream;
|
||||
}
|
||||
// fetch URL
|
||||
return fetch(content.href, { headers: content.httpHeaders });
|
||||
return nmfetch(content.href, { headers: content.httpHeaders });
|
||||
} else {
|
||||
// pass string or buffer content as a stream
|
||||
contentStream = new PassThrough();
|
||||
@ -1282,7 +1281,7 @@ class MimeNode {
|
||||
) +
|
||||
'@' +
|
||||
// try to use the domain of the FROM address or fallback to server hostname
|
||||
(this.getEnvelope().from || this.hostname || os.hostname() || 'localhost').split('@').pop() +
|
||||
(this.getEnvelope().from || this.hostname || 'localhost').split('@').pop() +
|
||||
'>'
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user