Skip to content

Commit

Permalink
Merge pull request #4393 from novuhq/add-nodemailer-types
Browse files Browse the repository at this point in the history
fix: add missing nodemailer types
  • Loading branch information
scopsy authored Oct 4, 2023
2 parents a9d2d2a + 3001462 commit 185b0c8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions providers/nodemailer/src/lib/nodemailer.provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe('Config is set to secure=false but not user and password set', () => {

expect(nodemailer.createTransport).toHaveBeenCalled();
expect(nodemailer.createTransport).toHaveBeenCalledWith({
name: config.host,
host: config.host,
port: config.port,
secure: config.secure,
Expand Down Expand Up @@ -95,6 +96,7 @@ describe('Config is set to secure=false (default; TLS used if server supports ST

expect(nodemailer.createTransport).toHaveBeenCalled();
expect(nodemailer.createTransport).toHaveBeenCalledWith({
name: mockConfig.host,
host: mockConfig.host,
port: mockConfig.port,
secure: mockConfig.secure,
Expand Down
1 change: 1 addition & 0 deletions providers/outlook365/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/jest": "^29.5.0",
"@types/nodemailer": "^6.4.11",
"codecov": "^3.5.0",
"cspell": "^4.1.0",
"gh-pages": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion providers/outlook365/src/lib/outlook365.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class Outlook365Provider implements IEmailProvider {
host: 'smtp.office365.com',
port: 587,
requireTLS: true,
connectionTImeout: 30000,
connectionTimeout: 30000,
auth: {
user: this.config.from,
pass: this.config.password,
Expand Down

0 comments on commit 185b0c8

Please sign in to comment.