@nestjs-modules/mailer 1.5.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +319 -231
  2. package/LICENSE +20 -20
  3. package/README.md +66 -64
  4. package/SECURITY.md +21 -0
  5. package/dist/adapters/ejs.adapter.d.ts +9 -6
  6. package/dist/adapters/ejs.adapter.js +58 -43
  7. package/dist/adapters/handlebars.adapter.d.ts +10 -8
  8. package/dist/adapters/handlebars.adapter.js +76 -58
  9. package/dist/adapters/mjml.adapter.d.ts +12 -0
  10. package/dist/adapters/mjml.adapter.js +34 -0
  11. package/dist/adapters/pug.adapter.d.ts +8 -5
  12. package/dist/adapters/pug.adapter.js +44 -27
  13. package/dist/constants/mailer.constant.d.ts +2 -0
  14. package/dist/constants/mailer.constant.js +5 -0
  15. package/dist/index.d.ts +8 -6
  16. package/dist/index.js +10 -6
  17. package/dist/interfaces/mailer-async-options.interface.d.ts +11 -9
  18. package/dist/interfaces/mailer-async-options.interface.js +2 -2
  19. package/dist/interfaces/mailer-options-factory.interface.d.ts +4 -4
  20. package/dist/interfaces/mailer-options-factory.interface.js +2 -2
  21. package/dist/interfaces/mailer-options.interface.d.ts +35 -35
  22. package/dist/interfaces/mailer-options.interface.js +2 -2
  23. package/dist/interfaces/mailer-send-mail-options.interface.d.ts +5 -5
  24. package/dist/interfaces/mailer-send-mail-options.interface.js +2 -2
  25. package/dist/interfaces/mailer-transport-factory.interface.d.ts +5 -0
  26. package/dist/{constants/mailer-options.constant.js → interfaces/mailer-transport-factory.interface.js} +2 -3
  27. package/dist/interfaces/send-mail-options.interface.d.ts +54 -49
  28. package/dist/interfaces/send-mail-options.interface.js +2 -2
  29. package/dist/interfaces/template-adapter-config.interface.d.ts +5 -0
  30. package/dist/interfaces/template-adapter-config.interface.js +2 -0
  31. package/dist/interfaces/template-adapter.interface.d.ts +4 -4
  32. package/dist/interfaces/template-adapter.interface.js +2 -2
  33. package/dist/mailer-core.module.d.ts +9 -9
  34. package/dist/mailer-core.module.js +74 -72
  35. package/dist/mailer-transport.factory.d.ts +8 -0
  36. package/dist/mailer-transport.factory.js +20 -0
  37. package/dist/mailer.module.d.ts +7 -7
  38. package/dist/mailer.module.js +29 -28
  39. package/dist/mailer.service.d.ts +13 -11
  40. package/dist/mailer.service.js +90 -83
  41. package/index.d.ts +0 -0
  42. package/index.js +5 -5
  43. package/package.json +102 -100
  44. package/yarn-error.log +6492 -0
  45. package/.dockerignore +0 -2
  46. package/Dockerfile +0 -10
  47. package/dist/constants/mailer-options.constant.d.ts +0 -1
  48. package/docker-compose.yml +0 -18
  49. package/jest.config.js +0 -17
package/.dockerignore DELETED
@@ -1,2 +0,0 @@
1
- */node_modules
2
- *.log
package/Dockerfile DELETED
@@ -1,10 +0,0 @@
1
- FROM node:lts
2
-
3
- WORKDIR /app/website
4
-
5
- EXPOSE 3000 35729
6
- COPY ./docs /app/docs
7
- COPY ./website /app/website
8
- RUN yarn install
9
-
10
- CMD ["yarn", "start"]
@@ -1 +0,0 @@
1
- export declare const MAILER_OPTIONS = "MAILER_OPTIONS";
@@ -1,18 +0,0 @@
1
- version: "3"
2
-
3
- services:
4
- docusaurus:
5
- build: .
6
- ports:
7
- - 3000:3000
8
- - 35729:35729
9
- volumes:
10
- - ./docs:/app/docs
11
- - ./website/blog:/app/website/blog
12
- - ./website/core:/app/website/core
13
- - ./website/i18n:/app/website/i18n
14
- - ./website/pages:/app/website/pages
15
- - ./website/static:/app/website/static
16
- - ./website/sidebars.json:/app/website/sidebars.json
17
- - ./website/siteConfig.js:/app/website/siteConfig.js
18
- working_dir: /app/website
package/jest.config.js DELETED
@@ -1,17 +0,0 @@
1
- require('ts-node/register');
2
-
3
- module.exports = {
4
- 'moduleFileExtensions': [
5
- 'js',
6
- 'json',
7
- 'ts',
8
- ],
9
- 'rootDir': 'lib',
10
- 'testRegex': '/lib/.*\\.spec\\.(ts|js)$',
11
- 'globals': {
12
- 'ts-jest': {
13
- 'tsConfig': 'tsconfig.json'
14
- }
15
- },
16
- 'preset': 'ts-jest',
17
- };