From df3e9b2c0fb8105016b56a68aab40a4838db145c Mon Sep 17 00:00:00 2001 From: dawidd6 <9713907+dawidd6@users.noreply.github.com> Date: Mon, 19 Oct 2026 06:16:48 +0000 Subject: [PATCH] node_modules: update --- node_modules/.package-lock.json | 6 +++--- node_modules/nodemailer/CHANGELOG.md | 7 +++++++ node_modules/nodemailer/dist/cjs/mime-funcs/index.js | 10 ++++++++-- node_modules/nodemailer/dist/cjs/package-info.d.ts | 2 +- node_modules/nodemailer/dist/cjs/package-info.js | 2 +- node_modules/nodemailer/dist/esm/mime-funcs/index.js | 10 ++++++++-- node_modules/nodemailer/dist/esm/package-info.d.ts | 2 +- node_modules/nodemailer/dist/esm/package-info.js | 2 +- node_modules/nodemailer/package.json | 2 +- 9 files changed, 31 insertions(+), 12 deletions(-) diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 2cb30877..a1e0e4b6 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -94,9 +94,9 @@ } }, "node_modules/nodemailer": { - "version": "10.1.6", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-10.1.6.tgz", - "integrity": "sha512-8j/UEmA4AXr51URr3Ob0h+RCBtr0NKJ76Y2P9wJT6Eu3dRyruj2ULh2e6aiKrGg8nlUj1oX6N5h8dHA82EouaQ==", + "version": "10.1.7", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-10.1.7.tgz", + "integrity": "sha512-OQa6FDln5fLttmqSbjDiRYvFDOFNrBqfiOwHPlEbURil3b+vPB1v8xpi+Sp46drzNDlsTnNsS502vthmz56r4w==", "license": "MIT-0", "engines": { "node": ">=20.0.0" diff --git a/node_modules/nodemailer/CHANGELOG.md b/node_modules/nodemailer/CHANGELOG.md index 438ccd60..dadd6626 100644 --- a/node_modules/nodemailer/CHANGELOG.md +++ b/node_modules/nodemailer/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## [10.1.7](https://github.com/nodemailer/nodemailer/compare/v10.1.6...v10.1.7) (2026-10-18) + + +### Bug Fixes + +* **mime-funcs:** encode parameter values that look like encoded words ([651d79b](https://github.com/nodemailer/nodemailer/commit/651d79b0e1067b93b0ae8fc1afbdf383a46c214d)) + ## [10.1.6](https://github.com/nodemailer/nodemailer/compare/v10.1.5...v10.1.6) (2026-10-18) diff --git a/node_modules/nodemailer/dist/cjs/mime-funcs/index.js b/node_modules/nodemailer/dist/cjs/mime-funcs/index.js index d706ba32..895b0efe 100644 --- a/node_modules/nodemailer/dist/cjs/mime-funcs/index.js +++ b/node_modules/nodemailer/dist/cjs/mime-funcs/index.js @@ -70,6 +70,12 @@ function isPlainText(value, isParam) { const re = isParam ? /[\x00-\x1f\x7f"\u0080-\uFFFF]/ : /[\x00-\x08\x0b\x0c\x0e-\x1f\u0080-\uFFFF]/; return typeof value === 'string' && !re.test(value); } +// A parameter value goes out as is only when it is plain text that does not look like an encoded +// word. Receivers decode encoded words found in parameter values (libmime does so for unencoded +// continuations), so as plain text it would come back as something else +function isPlainParamValue(value) { + return isPlainText(value, true) && !value.includes('=?'); +} /** * Wraps a value into a quoted-string. Inside one a quote would end the string early * and a backslash would escape whatever follows it, so both go out as quoted-pairs. @@ -237,7 +243,7 @@ function buildHeaderValue(structured) { const value = structured.params[key]; // a parameter name is a token too and it is emitted without any quoting around it const param = key.replace(/[\x00-\x1f\x7f]/g, ''); - if (!isPlainText(value, true) || value.length >= 75) { + if (!isPlainParamValue(value) || value.length >= 75) { buildHeaderParam(param, value, 50).forEach(encodedParam => { if (!/[\s"\\;:/=(),<>@[\]?]|^[-']|'$/.test(encodedParam.value) || encodedParam.key.substr(-1) === '*') { paramsArray.push(encodedParam.key + '=' + encodedParam.value); @@ -286,7 +292,7 @@ function buildHeaderParam(key, data, maxLength) { let i, len; maxLength = maxLength || 50; // process ascii only text - if (isPlainText(data, true)) { + if (isPlainParamValue(data)) { // check if conversion is even needed if (encodedStr.length <= maxLength) { return [ diff --git a/node_modules/nodemailer/dist/cjs/package-info.d.ts b/node_modules/nodemailer/dist/cjs/package-info.d.ts index b6096e51..90941a4d 100644 --- a/node_modules/nodemailer/dist/cjs/package-info.d.ts +++ b/node_modules/nodemailer/dist/cjs/package-info.d.ts @@ -1,3 +1,3 @@ export declare const name = "nodemailer"; -export declare const version = "10.1.6"; +export declare const version = "10.1.7"; export declare const homepage = "https://nodemailer.com/"; diff --git a/node_modules/nodemailer/dist/cjs/package-info.js b/node_modules/nodemailer/dist/cjs/package-info.js index 62350541..f2885132 100644 --- a/node_modules/nodemailer/dist/cjs/package-info.js +++ b/node_modules/nodemailer/dist/cjs/package-info.js @@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.homepage = exports.version = exports.name = void 0; exports.name = 'nodemailer'; -exports.version = '10.1.6'; +exports.version = '10.1.7'; exports.homepage = 'https://nodemailer.com/'; diff --git a/node_modules/nodemailer/dist/esm/mime-funcs/index.js b/node_modules/nodemailer/dist/esm/mime-funcs/index.js index 8d68686b..8d4b7565 100644 --- a/node_modules/nodemailer/dist/esm/mime-funcs/index.js +++ b/node_modules/nodemailer/dist/esm/mime-funcs/index.js @@ -21,6 +21,12 @@ export function isPlainText(value, isParam) { const re = isParam ? /[\x00-\x1f\x7f"\u0080-\uFFFF]/ : /[\x00-\x08\x0b\x0c\x0e-\x1f\u0080-\uFFFF]/; return typeof value === 'string' && !re.test(value); } +// A parameter value goes out as is only when it is plain text that does not look like an encoded +// word. Receivers decode encoded words found in parameter values (libmime does so for unencoded +// continuations), so as plain text it would come back as something else +function isPlainParamValue(value) { + return isPlainText(value, true) && !value.includes('=?'); +} /** * Wraps a value into a quoted-string. Inside one a quote would end the string early * and a backslash would escape whatever follows it, so both go out as quoted-pairs. @@ -188,7 +194,7 @@ export function buildHeaderValue(structured) { const value = structured.params[key]; // a parameter name is a token too and it is emitted without any quoting around it const param = key.replace(/[\x00-\x1f\x7f]/g, ''); - if (!isPlainText(value, true) || value.length >= 75) { + if (!isPlainParamValue(value) || value.length >= 75) { buildHeaderParam(param, value, 50).forEach(encodedParam => { if (!/[\s"\\;:/=(),<>@[\]?]|^[-']|'$/.test(encodedParam.value) || encodedParam.key.substr(-1) === '*') { paramsArray.push(encodedParam.key + '=' + encodedParam.value); @@ -237,7 +243,7 @@ export function buildHeaderParam(key, data, maxLength) { let i, len; maxLength = maxLength || 50; // process ascii only text - if (isPlainText(data, true)) { + if (isPlainParamValue(data)) { // check if conversion is even needed if (encodedStr.length <= maxLength) { return [ diff --git a/node_modules/nodemailer/dist/esm/package-info.d.ts b/node_modules/nodemailer/dist/esm/package-info.d.ts index b6096e51..90941a4d 100644 --- a/node_modules/nodemailer/dist/esm/package-info.d.ts +++ b/node_modules/nodemailer/dist/esm/package-info.d.ts @@ -1,3 +1,3 @@ export declare const name = "nodemailer"; -export declare const version = "10.1.6"; +export declare const version = "10.1.7"; export declare const homepage = "https://nodemailer.com/"; diff --git a/node_modules/nodemailer/dist/esm/package-info.js b/node_modules/nodemailer/dist/esm/package-info.js index 4a89c7a0..268eaca0 100644 --- a/node_modules/nodemailer/dist/esm/package-info.js +++ b/node_modules/nodemailer/dist/esm/package-info.js @@ -1,4 +1,4 @@ // Generated by scripts/build.js from package.json. Do not edit by hand. export const name = 'nodemailer'; -export const version = '10.1.6'; +export const version = '10.1.7'; export const homepage = 'https://nodemailer.com/'; diff --git a/node_modules/nodemailer/package.json b/node_modules/nodemailer/package.json index ab7ed6b5..e5ae5926 100644 --- a/node_modules/nodemailer/package.json +++ b/node_modules/nodemailer/package.json @@ -1,6 +1,6 @@ { "name": "nodemailer", - "version": "10.1.6", + "version": "10.1.7", "description": "Easy as cake e-mail sending from your Node.js applications", "type": "module", "main": "./dist/cjs/nodemailer.js",