mirror of
https://github.com/eleith/emailjs.git
synced 2024-07-04 19:58:51 +00:00
chore: nits
This commit is contained in:
parent
66d4d7f5d2
commit
6461e058f7
@ -33,7 +33,6 @@ export class Client {
|
||||
*/
|
||||
constructor(server: Partial<SMTPConnectionOptions>) {
|
||||
this.smtp = new SMTPConnection(server);
|
||||
//this.smtp.debug(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,5 @@
|
||||
import type { Readable } from 'stream';
|
||||
import { readFileSync, createReadStream } from 'fs';
|
||||
import { join } from 'path';
|
||||
|
||||
import test from 'ava';
|
||||
import mailparser from 'mailparser';
|
||||
import smtp from 'smtp-server';
|
||||
@ -25,7 +23,7 @@ const send = (
|
||||
) => void,
|
||||
done: () => void
|
||||
) => {
|
||||
server.onData = (stream: Readable, _session, callback: () => void) => {
|
||||
server.onData = (stream, _session, callback: () => void) => {
|
||||
mailparser
|
||||
.simpleParser(stream, { skipTextLinks: true } as Record<string, unknown>)
|
||||
.then(verify)
|
||||
|
Loading…
Reference in New Issue
Block a user