nodemailer 6.9.14 → 6.9.15
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [6.9.15](https://github.com/nodemailer/nodemailer/compare/v6.9.14...v6.9.15) (2024-08-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Fix memory leak ([#1667](https://github.com/nodemailer/nodemailer/issues/1667)) ([baa28f6](https://github.com/nodemailer/nodemailer/commit/baa28f659641a4bc30360633673d851618f8e8bd))
|
|
9
|
+
* **mime:** Added GeoJSON closes [#1637](https://github.com/nodemailer/nodemailer/issues/1637) ([#1665](https://github.com/nodemailer/nodemailer/issues/1665)) ([79b8293](https://github.com/nodemailer/nodemailer/commit/79b8293ad557d36f066b4675e649dd80362fd45b))
|
|
10
|
+
|
|
3
11
|
## [6.9.14](https://github.com/nodemailer/nodemailer/compare/v6.9.13...v6.9.14) (2024-06-19)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -44,6 +44,7 @@ const mimeTypes = new Map([
|
|
|
44
44
|
['application/fractals', 'fif'],
|
|
45
45
|
['application/freeloader', 'frl'],
|
|
46
46
|
['application/futuresplash', 'spl'],
|
|
47
|
+
['application/geo+json', 'geojson'],
|
|
47
48
|
['application/gnutar', 'tgz'],
|
|
48
49
|
['application/groupwise', 'vew'],
|
|
49
50
|
['application/hlp', 'hlp'],
|
|
@@ -1287,6 +1288,7 @@ const extensions = new Map([
|
|
|
1287
1288
|
['gac', 'application/vnd.groove-account'],
|
|
1288
1289
|
['gdl', 'model/vnd.gdl'],
|
|
1289
1290
|
['geo', 'application/vnd.dynageo'],
|
|
1291
|
+
['geojson', 'application/geo+json'],
|
|
1290
1292
|
['gex', 'application/vnd.geometry-explorer'],
|
|
1291
1293
|
['ggb', 'application/vnd.geogebra.file'],
|
|
1292
1294
|
['ggt', 'application/vnd.geogebra.tool'],
|
|
@@ -628,6 +628,15 @@ class SMTPConnection extends EventEmitter {
|
|
|
628
628
|
let startTime = Date.now();
|
|
629
629
|
this._setEnvelope(envelope, (err, info) => {
|
|
630
630
|
if (err) {
|
|
631
|
+
// create passthrough stream to consume to prevent OOM
|
|
632
|
+
let stream = new PassThrough();
|
|
633
|
+
if (typeof message.pipe === 'function') {
|
|
634
|
+
message.pipe(stream);
|
|
635
|
+
} else {
|
|
636
|
+
stream.write(message);
|
|
637
|
+
stream.end();
|
|
638
|
+
}
|
|
639
|
+
|
|
631
640
|
return callback(err);
|
|
632
641
|
}
|
|
633
642
|
let envelopeTime = Date.now();
|