nodemailer 6.2.1 → 6.3.0

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,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 6.2.1 2019-05-24
4
+
5
+ - No changes. It is the same as 6.2.0 that was accidentally published as 6.2.1 to npm
6
+
3
7
  ## 6.2.0 2019-05-24
4
8
 
5
9
  - Added new option for addressparser: `flatten`. If true then ignores group names and returns a single list of all addresses
@@ -128,7 +128,8 @@ class MailComposer {
128
128
  };
129
129
  } else if (attachment.href) {
130
130
  data.content = {
131
- href: attachment.href
131
+ href: attachment.href,
132
+ httpHeaders: attachment.httpHeaders
132
133
  };
133
134
  } else {
134
135
  data.content = attachment.content || '';
@@ -971,7 +971,7 @@ class MimeNode {
971
971
  return contentStream;
972
972
  }
973
973
  // fetch URL
974
- return fetch(content.href);
974
+ return fetch(content.href, { headers: content.httpHeaders });
975
975
  } else {
976
976
  // pass string or buffer content as a stream
977
977
  contentStream = new PassThrough();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodemailer",
3
- "version": "6.2.1",
3
+ "version": "6.3.0",
4
4
  "description": "Easy as cake e-mail sending from your Node.js applications",
5
5
  "main": "lib/nodemailer.js",
6
6
  "scripts": {
@@ -23,10 +23,10 @@
23
23
  "bunyan": "1.8.12",
24
24
  "chai": "4.2.0",
25
25
  "eslint-config-nodemailer": "1.2.0",
26
- "eslint-config-prettier": "4.3.0",
26
+ "eslint-config-prettier": "6.0.0",
27
27
  "grunt": "1.0.4",
28
28
  "grunt-cli": "1.3.2",
29
- "grunt-eslint": "21.0.0",
29
+ "grunt-eslint": "22.0.0",
30
30
  "grunt-mocha-test": "0.13.3",
31
31
  "libbase64": "1.0.3",
32
32
  "libmime": "4.1.3",