Skip to content

Commit

Permalink
return an empty array instead of undefined when empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
muratgozel committed Oct 30, 2021
1 parent b2b172e commit 9da585d
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 22 deletions.
10 changes: 7 additions & 3 deletions dist/browser/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/browser/cjs/index.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/browser/es/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/browser/es/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/iife/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser/iife/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gas/iife/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gas/iife/index.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/node/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/node/cjs/index.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions dist/node/es/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/node/es/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mimetext",
"version": "2.0.1",
"version": "2.0.2",
"description": "RFC 2822 compliant raw email message generator written in node.js",
"type": "module",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/MIMEMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class MIMEMessage {
}

getRecipients(opts={type: 'to'}) {
return this.getHeader(opts.type)
return this.getHeader(opts.type) || []
}

setRecipient(input) {
Expand Down

0 comments on commit 9da585d

Please sign in to comment.