nodemailer
Advanced tools
Comparing version 6.9.1 to 6.9.2
# CHANGELOG | ||
## 6.9.2 2023-05-11 | ||
- Fix uncaught exception on invalid attachment content payload | ||
## 6.9.1 2023-01-27 | ||
@@ -4,0 +8,0 @@ |
@@ -953,3 +953,11 @@ /* eslint no-undefined: 0, prefer-spread: 0, no-control-regex: 0 */ | ||
contentStream = new PassThrough(); | ||
setImmediate(() => contentStream.end(content._resolvedValue)); | ||
setImmediate(() => { | ||
try { | ||
contentStream.end(content._resolvedValue); | ||
} catch (err) { | ||
contentStream.emit('error', err); | ||
} | ||
}); | ||
return contentStream; | ||
@@ -978,3 +986,10 @@ } else if (typeof content.pipe === 'function') { | ||
contentStream = new PassThrough(); | ||
setImmediate(() => contentStream.end(content || '')); | ||
setImmediate(() => { | ||
try { | ||
contentStream.end(content || ''); | ||
} catch (err) { | ||
contentStream.emit('error', err); | ||
} | ||
}); | ||
return contentStream; | ||
@@ -981,0 +996,0 @@ } |
{ | ||
"name": "nodemailer", | ||
"version": "6.9.1", | ||
"version": "6.9.2", | ||
"description": "Easy as cake e-mail sending from your Node.js applications", | ||
@@ -23,14 +23,14 @@ "main": "lib/nodemailer.js", | ||
"devDependencies": { | ||
"@aws-sdk/client-ses": "3.259.0", | ||
"aws-sdk": "2.1303.0", | ||
"@aws-sdk/client-ses": "3.329.0", | ||
"aws-sdk": "2.1376.0", | ||
"bunyan": "1.8.15", | ||
"chai": "4.3.7", | ||
"eslint-config-nodemailer": "1.2.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"grunt": "1.5.3", | ||
"eslint-config-prettier": "8.8.0", | ||
"grunt": "1.6.1", | ||
"grunt-cli": "1.4.3", | ||
"grunt-eslint": "24.0.1", | ||
"grunt-eslint": "24.1.0", | ||
"grunt-mocha-test": "0.13.3", | ||
"libbase64": "1.2.1", | ||
"libmime": "5.2.0", | ||
"libmime": "5.2.1", | ||
"libqp": "2.0.1", | ||
@@ -41,3 +41,3 @@ "mocha": "10.2.0", | ||
"proxy-test-server": "1.0.0", | ||
"sinon": "15.0.1", | ||
"sinon": "15.0.4", | ||
"smtp-server": "3.11.0" | ||
@@ -44,0 +44,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
487816
11648