-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from NextNC/feature/async-register
feat(module): async registration
- Loading branch information
Showing
7 changed files
with
74 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@nextnm/nestjs-mailgun", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "NestJS provider for sending emails with mailgun", | ||
"author": "Nuno Carvalhão <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import { ModuleMetadata } from '@nestjs/common/interfaces'; | ||
|
||
export interface ConfigurationMailgun { | ||
DOMAIN: string; | ||
API_KEY: string; | ||
PUBLIC_API_KEY?: string; | ||
HOST?: string; | ||
} | ||
|
||
export interface ConfigurationMailgunAsync | ||
extends Pick<ModuleMetadata, 'imports'> { | ||
useFactory: ( | ||
...args: any[] | ||
) => ConfigurationMailgun | Promise<ConfigurationMailgun>; | ||
inject?: any[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
export const API_KEY = 'API_KEY'; | ||
export const PUBLIC_API_KEY = 'PUBLIC_API_KEY'; | ||
export const DOMAIN = 'DOMAIN'; | ||
export const HOST = 'HOST'; | ||
export const MAILGUN_CONFIGURATION = 'MAILGUN_CONFIGURATION'; |