node_modules: upgrade

This commit is contained in:
Dawid Dziurla
2022-10-21 16:52:45 +02:00
parent 6063705cef
commit f27e7f6b8d
140 changed files with 6117 additions and 261 deletions

View File

@ -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() +
'>'
);
}