nodemailer 7.0.9 → 7.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"packages": {
|
|
3
|
+
".": {
|
|
4
|
+
"release-type": "node",
|
|
5
|
+
"package-name": "nodemailer",
|
|
6
|
+
"pull-request-title-pattern": "chore${scope}: release ${version} [skip-ci]"
|
|
7
|
+
}
|
|
7
8
|
}
|
|
8
|
-
}
|
|
9
9
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [7.0.10](https://github.com/nodemailer/nodemailer/compare/v7.0.9...v7.0.10) (2025-10-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Increase data URI size limit from 100KB to 50MB and preserve content type ([28dbf3f](https://github.com/nodemailer/nodemailer/commit/28dbf3fe129653f5756c150a98dc40593bfb2cfe))
|
|
9
|
+
|
|
3
10
|
## [7.0.9](https://github.com/nodemailer/nodemailer/compare/v7.0.8...v7.0.9) (2025-10-07)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -575,14 +575,27 @@ class MailComposer {
|
|
|
575
575
|
return element;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
if (dataUrl.length >
|
|
579
|
-
//
|
|
578
|
+
if (dataUrl.length > 52428800) {
|
|
579
|
+
// 52428800 chars = 50MB limit for data URL string (~37.5MB decoded image)
|
|
580
|
+
// Extract content type before rejecting to preserve MIME type
|
|
581
|
+
let detectedType = 'application/octet-stream';
|
|
582
|
+
const commaPos = dataUrl.indexOf(',');
|
|
583
|
+
|
|
584
|
+
if (commaPos > 0 && commaPos < 200) {
|
|
585
|
+
// Parse header safely with size limit
|
|
586
|
+
const header = dataUrl.substring(5, commaPos); // skip 'data:'
|
|
587
|
+
const parts = header.split(';');
|
|
588
|
+
if (parts[0] && parts[0].includes('/')) {
|
|
589
|
+
detectedType = parts[0].trim();
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
580
593
|
// Return empty content for excessively long data URLs
|
|
581
594
|
return Object.assign({}, element, {
|
|
582
595
|
path: false,
|
|
583
596
|
href: false,
|
|
584
597
|
content: Buffer.alloc(0),
|
|
585
|
-
contentType: element.contentType ||
|
|
598
|
+
contentType: element.contentType || detectedType
|
|
586
599
|
});
|
|
587
600
|
}
|
|
588
601
|
|
|
@@ -1147,8 +1147,8 @@ class SMTPConnection extends EventEmitter {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
notify = notify.map(n => n.trim().toUpperCase());
|
|
1149
1149
|
let validNotify = ['NEVER', 'SUCCESS', 'FAILURE', 'DELAY'];
|
|
1150
|
-
let
|
|
1151
|
-
if (
|
|
1150
|
+
let invalidNotify = notify.filter(n => !validNotify.includes(n));
|
|
1151
|
+
if (invalidNotify.length || (notify.length > 1 && notify.includes('NEVER'))) {
|
|
1152
1152
|
throw new Error('notify: ' + JSON.stringify(notify.join(',')));
|
|
1153
1153
|
}
|
|
1154
1154
|
notify = notify.join(',');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodemailer",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.10",
|
|
4
4
|
"description": "Easy as cake e-mail sending from your Node.js applications",
|
|
5
5
|
"main": "lib/nodemailer.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://nodemailer.com/",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@aws-sdk/client-sesv2": "3.
|
|
29
|
+
"@aws-sdk/client-sesv2": "3.914.0",
|
|
30
30
|
"bunyan": "1.8.15",
|
|
31
31
|
"c8": "10.1.3",
|
|
32
|
-
"eslint": "
|
|
33
|
-
"eslint-config-prettier": "
|
|
34
|
-
"globals": "
|
|
32
|
+
"eslint": "9.38.0",
|
|
33
|
+
"eslint-config-prettier": "10.1.8",
|
|
34
|
+
"globals": "16.4.0",
|
|
35
35
|
"libbase64": "1.3.0",
|
|
36
36
|
"libmime": "5.3.7",
|
|
37
37
|
"libqp": "2.1.1",
|
|
38
38
|
"nodemailer-ntlm-auth": "1.0.4",
|
|
39
|
-
"prettier": "
|
|
39
|
+
"prettier": "3.6.2",
|
|
40
40
|
"proxy": "1.0.2",
|
|
41
41
|
"proxy-test-server": "1.0.0",
|
|
42
|
-
"smtp-server": "3.
|
|
42
|
+
"smtp-server": "3.15.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=6.0.0"
|