File tree 3 files changed +11
-5
lines changed 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
import adaptMail from "../../adapters/mail" ;
2
2
3
3
import config from "../../config" ;
4
- import { adaptSingleRecipient , adaptReplyToRecipient } from "../../adapters/recipients" ;
4
+ import {
5
+ adaptSingleRecipient ,
6
+ adaptReplyToRecipient ,
7
+ } from "../../adapters/recipients" ;
5
8
6
9
const { ERRORS } = config ;
7
10
const { SUBJECT_REQUIRED , FROM_REQUIRED } = ERRORS ;
Original file line number Diff line number Diff line change 1
1
import adaptAttachment from "./attachement" ;
2
2
import adaptContent from "./content" ;
3
3
import adaptHeaders from "./headers" ;
4
- import adaptRecipients , { adaptSingleRecipient , adaptReplyToRecipient } from "./recipients" ;
4
+ import adaptRecipients , {
5
+ adaptSingleRecipient ,
6
+ adaptReplyToRecipient ,
7
+ } from "./recipients" ;
5
8
6
9
import CONFIG from "../config" ;
7
10
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export default function adaptRecipients(
42
42
/**
43
43
* If there is no recipient or empty array is passed, then return undefined since it is an optional field.
44
44
* If it's not array, then adapt recipient and returns it.
45
- * Otherwise, if type is array as nodemailer allows, we pick the first recipient
45
+ * Otherwise, if type is array as nodemailer allows, we pick the first recipient
46
46
* as Mailtrap doesn't support multiple reply-to recipients.
47
47
*/
48
48
export function adaptReplyToRecipient (
@@ -52,7 +52,7 @@ export function adaptReplyToRecipient(
52
52
| Array < string | NodemailerAddress >
53
53
| undefined
54
54
) : Address | undefined {
55
- if ( ! recipients || ( Array . isArray ( recipients ) && recipients . length === 0 ) ) {
55
+ if ( ! recipients || ( Array . isArray ( recipients ) && recipients . length === 0 ) ) {
56
56
return undefined ;
57
57
}
58
58
@@ -61,4 +61,4 @@ export function adaptReplyToRecipient(
61
61
}
62
62
63
63
return adaptSingleRecipient ( recipients [ 0 ] ) ;
64
- }
64
+ }
You can’t perform that action at this time.
0 commit comments