mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-09-09 14:24:04 +07:00
node_modules: update
This commit is contained in:
18
node_modules/nodemailer/lib/mime-node/index.js
generated
vendored
18
node_modules/nodemailer/lib/mime-node/index.js
generated
vendored
@ -80,11 +80,7 @@ class MimeNode {
|
||||
/**
|
||||
* Indicates which encoding should be used for header strings: "Q" or "B"
|
||||
*/
|
||||
this.textEncoding = (options.textEncoding || '')
|
||||
.toString()
|
||||
.trim()
|
||||
.charAt(0)
|
||||
.toUpperCase();
|
||||
this.textEncoding = (options.textEncoding || '').toString().trim().charAt(0).toUpperCase();
|
||||
|
||||
/**
|
||||
* Immediate parent for this node (or undefined if not set)
|
||||
@ -441,16 +437,10 @@ class MimeNode {
|
||||
|
||||
getTransferEncoding() {
|
||||
let transferEncoding = false;
|
||||
let contentType = (this.getHeader('Content-Type') || '')
|
||||
.toString()
|
||||
.toLowerCase()
|
||||
.trim();
|
||||
let contentType = (this.getHeader('Content-Type') || '').toString().toLowerCase().trim();
|
||||
|
||||
if (this.content) {
|
||||
transferEncoding = (this.getHeader('Content-Transfer-Encoding') || '')
|
||||
.toString()
|
||||
.toLowerCase()
|
||||
.trim();
|
||||
transferEncoding = (this.getHeader('Content-Transfer-Encoding') || '').toString().toLowerCase().trim();
|
||||
if (!transferEncoding || !['base64', 'quoted-printable'].includes(transferEncoding)) {
|
||||
if (/^text\//i.test(contentType)) {
|
||||
// If there are no special symbols, no need to modify the text
|
||||
@ -1023,7 +1013,7 @@ class MimeNode {
|
||||
_handleContentType(structured) {
|
||||
this.contentType = structured.value.trim().toLowerCase();
|
||||
|
||||
this.multipart = this.contentType.split('/').reduce((prev, value) => (prev === 'multipart' ? value : false));
|
||||
this.multipart = /^multipart\//i.test(this.contentType) ? this.contentType.substr(this.contentType.indexOf('/') + 1) : false;
|
||||
|
||||
if (this.multipart) {
|
||||
this.boundary = structured.params.boundary = structured.params.boundary || this.boundary || this._generateBoundary();
|
||||
|
Reference in New Issue
Block a user