@nestjs-modules/mailer 1.8.1 → 1.10.3

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 (44) hide show
  1. package/.nvmrc +1 -0
  2. package/CHANGELOG.md +46 -0
  3. package/LICENSE +0 -0
  4. package/README.md +0 -0
  5. package/SECURITY.md +0 -0
  6. package/dist/adapters/ejs.adapter.d.ts +0 -0
  7. package/dist/adapters/ejs.adapter.js +13 -11
  8. package/dist/adapters/handlebars.adapter.d.ts +0 -0
  9. package/dist/adapters/handlebars.adapter.js +17 -12
  10. package/dist/adapters/mjml.adapter.d.ts +0 -0
  11. package/dist/adapters/mjml.adapter.js +2 -2
  12. package/dist/adapters/pug.adapter.d.ts +0 -0
  13. package/dist/adapters/pug.adapter.js +7 -9
  14. package/dist/constants/mailer.constant.d.ts +0 -0
  15. package/dist/constants/mailer.constant.js +0 -0
  16. package/dist/index.d.ts +0 -0
  17. package/dist/index.js +0 -0
  18. package/dist/interfaces/mailer-async-options.interface.d.ts +0 -0
  19. package/dist/interfaces/mailer-async-options.interface.js +0 -0
  20. package/dist/interfaces/mailer-options-factory.interface.d.ts +0 -0
  21. package/dist/interfaces/mailer-options-factory.interface.js +0 -0
  22. package/dist/interfaces/mailer-options.interface.d.ts +2 -2
  23. package/dist/interfaces/mailer-options.interface.js +0 -0
  24. package/dist/interfaces/mailer-send-mail-options.interface.d.ts +0 -0
  25. package/dist/interfaces/mailer-send-mail-options.interface.js +0 -0
  26. package/dist/interfaces/mailer-transport-factory.interface.d.ts +0 -0
  27. package/dist/interfaces/mailer-transport-factory.interface.js +0 -0
  28. package/dist/interfaces/send-mail-options.interface.d.ts +5 -13
  29. package/dist/interfaces/send-mail-options.interface.js +0 -0
  30. package/dist/interfaces/template-adapter-config.interface.d.ts +2 -2
  31. package/dist/interfaces/template-adapter-config.interface.js +0 -0
  32. package/dist/interfaces/template-adapter.interface.d.ts +0 -0
  33. package/dist/interfaces/template-adapter.interface.js +0 -0
  34. package/dist/mailer-core.module.d.ts +0 -0
  35. package/dist/mailer-core.module.js +2 -2
  36. package/dist/mailer-transport.factory.d.ts +0 -0
  37. package/dist/mailer-transport.factory.js +2 -2
  38. package/dist/mailer.module.d.ts +0 -0
  39. package/dist/mailer.module.js +2 -2
  40. package/dist/mailer.service.d.ts +0 -0
  41. package/dist/mailer.service.js +19 -19
  42. package/index.d.ts +0 -0
  43. package/index.js +0 -0
  44. package/package.json +44 -44
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v20.10.0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,52 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.10.3](https://github.com/nest-modules/mailer/compare/v1.10.2...v1.10.3) (2023-12-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * add tslib ([36f3aca](https://github.com/nest-modules/mailer/commit/36f3aca0ffac5943fa1dcd927cce7200dbcdb8df))
11
+
12
+ ### [1.10.2](https://github.com/nest-modules/mailer/compare/v1.10.0...v1.10.2) (2023-12-20)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * allows you to handle peer dependencies greater than or equal to ([9885780](https://github.com/nest-modules/mailer/commit/988578099fe9975ca96c3e245bfc1b709d9be28a))
18
+
19
+ ### [1.10.1](https://github.com/nest-modules/mailer/compare/v1.10.0...v1.10.1) (2023-12-20)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * allows you to handle peer dependencies greater than or equal to ([9885780](https://github.com/nest-modules/mailer/commit/988578099fe9975ca96c3e245bfc1b709d9be28a))
25
+
26
+ ## [1.10.0](https://github.com/nest-modules/mailer/compare/v1.9.1...v1.10.0) (2023-12-20)
27
+
28
+ ### [1.9.1](https://github.com/nest-modules/mailer/compare/v1.9.0...v1.9.1) (2023-07-20)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * patch vm2 Sandbox Escape vulnerability ([0f89a36](https://github.com/nest-modules/mailer/commit/0f89a36bd8c18cb349cb826ac840fdf3d6aad252))
34
+
35
+ ## [1.9.0](https://github.com/nest-modules/mailer/compare/v1.8.1...v1.9.0) (2023-07-20)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * fix partial not found error on Windows ([fb1fcda](https://github.com/nest-modules/mailer/commit/fb1fcdaba04c4b4f6ccbf2492dc0f34565b198e1))
41
+ * mjml import statement ([00abe2b](https://github.com/nest-modules/mailer/commit/00abe2b3215a41407fafbc134a56d97cb0b2ded8))
42
+ * update dependencies by newer version ([f1d4fba](https://github.com/nest-modules/mailer/commit/f1d4fba6b9d8a0cc50ffe2ae1e3439552e327d0b))
43
+
44
+ ### [1.8.2](https://github.com/nest-modules/mailer/compare/v1.8.1...v1.8.2) (2022-12-22)
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * update dependencies by newer version ([f1d4fba](https://github.com/nest-modules/mailer/commit/f1d4fba6b9d8a0cc50ffe2ae1e3439552e327d0b))
50
+
5
51
  ### [1.8.1](https://github.com/nest-modules/mailer/compare/v1.8.0...v1.8.1) (2022-07-21)
6
52
 
7
53
 
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
package/SECURITY.md CHANGED
File without changes
File without changes
@@ -5,24 +5,28 @@ const ejs_1 = require("ejs");
5
5
  const lodash_1 = require("lodash");
6
6
  const fs = require("fs");
7
7
  const path = require("path");
8
- const inlineCss = require("inline-css");
8
+ const css_inline_1 = require("css-inline");
9
9
  class EjsAdapter {
10
10
  constructor(config) {
11
11
  this.precompiledTemplates = {};
12
12
  this.config = {
13
- inlineCssOptions: { url: ' ' },
13
+ inlineCssOptions: {},
14
14
  inlineCssEnabled: true,
15
15
  };
16
16
  Object.assign(this.config, config);
17
17
  }
18
18
  compile(mail, callback, mailerOptions) {
19
19
  const { context, template } = mail.data;
20
+ const templateBaseDir = (0, lodash_1.get)(mailerOptions, 'template.dir', '');
20
21
  const templateExt = path.extname(template) || '.ejs';
21
- const templateName = path.basename(template, path.extname(template));
22
+ let templateName = path.basename(template, path.extname(template));
22
23
  const templateDir = path.isAbsolute(template)
23
24
  ? path.dirname(template)
24
- : path.join((0, lodash_1.get)(mailerOptions, 'template.dir', ''), path.dirname(template));
25
+ : path.join(templateBaseDir, path.dirname(template));
25
26
  const templatePath = path.join(templateDir, templateName + templateExt);
27
+ templateName = path
28
+ .relative(templateBaseDir, templatePath)
29
+ .replace(templateExt, '');
26
30
  if (!this.precompiledTemplates[templateName]) {
27
31
  try {
28
32
  const template = fs.readFileSync(templatePath, 'utf-8');
@@ -35,17 +39,15 @@ class EjsAdapter {
35
39
  const rendered = this.precompiledTemplates[templateName](context);
36
40
  const render = (html) => {
37
41
  if (this.config.inlineCssEnabled) {
38
- inlineCss(html, this.config.inlineCssOptions)
39
- .then((html) => {
40
- mail.data.html = html;
41
- return callback();
42
- })
43
- .catch(callback);
42
+ try {
43
+ mail.data.html = (0, css_inline_1.inline)(html, this.config.inlineCssOptions);
44
+ }
45
+ catch (e) { }
44
46
  }
45
47
  else {
46
48
  mail.data.html = html;
47
- return callback();
48
49
  }
50
+ return callback();
49
51
  };
50
52
  if (typeof rendered === 'string') {
51
53
  render(rendered);
File without changes
@@ -4,14 +4,14 @@ exports.HandlebarsAdapter = void 0;
4
4
  const fs = require("fs");
5
5
  const path = require("path");
6
6
  const handlebars = require("handlebars");
7
- const inlineCss = require("inline-css");
7
+ const css_inline_1 = require("css-inline");
8
8
  const glob = require("glob");
9
9
  const lodash_1 = require("lodash");
10
10
  class HandlebarsAdapter {
11
11
  constructor(helpers, config) {
12
12
  this.precompiledTemplates = {};
13
13
  this.config = {
14
- inlineCssOptions: { url: ' ' },
14
+ inlineCssOptions: {},
15
15
  inlineCssEnabled: true,
16
16
  };
17
17
  handlebars.registerHelper('concat', (...args) => {
@@ -23,12 +23,16 @@ class HandlebarsAdapter {
23
23
  }
24
24
  compile(mail, callback, mailerOptions) {
25
25
  const precompile = (template, callback, options) => {
26
+ const templateBaseDir = (0, lodash_1.get)(options, 'dir', '');
26
27
  const templateExt = path.extname(template) || '.hbs';
27
- const templateName = path.basename(template, path.extname(template));
28
+ let templateName = path.basename(template, path.extname(template));
28
29
  const templateDir = path.isAbsolute(template)
29
30
  ? path.dirname(template)
30
- : path.join((0, lodash_1.get)(options, 'dir', ''), path.dirname(template));
31
+ : path.join(templateBaseDir, path.dirname(template));
31
32
  const templatePath = path.join(templateDir, templateName + templateExt);
33
+ templateName = path
34
+ .relative(templateBaseDir, templatePath)
35
+ .replace(templateExt, '');
32
36
  if (!this.precompiledTemplates[templateName]) {
33
37
  try {
34
38
  const template = fs.readFileSync(templatePath, 'utf-8');
@@ -51,7 +55,10 @@ class HandlebarsAdapter {
51
55
  data: {},
52
56
  });
53
57
  if (runtimeOptions.partials) {
54
- const files = glob.sync(path.join(runtimeOptions.partials.dir, '**', '*.hbs'));
58
+ const partialPath = path
59
+ .join(runtimeOptions.partials.dir, '**', '*.hbs')
60
+ .replace(/\\/g, '/');
61
+ const files = glob.sync(partialPath);
55
62
  files.forEach((file) => {
56
63
  const { templateName, templatePath } = precompile(file, () => { }, runtimeOptions.partials);
57
64
  const templateDir = path.relative(runtimeOptions.partials.dir, path.dirname(templatePath));
@@ -60,17 +67,15 @@ class HandlebarsAdapter {
60
67
  }
61
68
  const rendered = this.precompiledTemplates[templateName](mail.data.context, Object.assign(Object.assign({}, runtimeOptions), { partials: this.precompiledTemplates }));
62
69
  if (this.config.inlineCssEnabled) {
63
- inlineCss(rendered, this.config.inlineCssOptions)
64
- .then((html) => {
65
- mail.data.html = html;
66
- return callback();
67
- })
68
- .catch(callback);
70
+ try {
71
+ mail.data.html = (0, css_inline_1.inline)(rendered, this.config.inlineCssOptions);
72
+ }
73
+ catch (e) { }
69
74
  }
70
75
  else {
71
76
  mail.data.html = rendered;
72
- return callback();
73
77
  }
78
+ return callback();
74
79
  }
75
80
  }
76
81
  exports.HandlebarsAdapter = HandlebarsAdapter;
File without changes
@@ -4,7 +4,7 @@ exports.MjmlAdapter = void 0;
4
4
  const handlebars_adapter_1 = require("./handlebars.adapter");
5
5
  const ejs_adapter_1 = require("./ejs.adapter");
6
6
  const pug_adapter_1 = require("./pug.adapter");
7
- const mjml_1 = require("mjml");
7
+ const mjml2html = require("mjml");
8
8
  class MjmlAdapter {
9
9
  constructor(engine, config, others) {
10
10
  this.engine = engine;
@@ -26,7 +26,7 @@ class MjmlAdapter {
26
26
  compile(mail, callback, mailerOptions) {
27
27
  var _a;
28
28
  (_a = this === null || this === void 0 ? void 0 : this.engine) === null || _a === void 0 ? void 0 : _a.compile(mail, () => {
29
- mail.data.html = (0, mjml_1.default)(mail.data.html).html;
29
+ mail.data.html = mjml2html(mail.data.html).html;
30
30
  callback();
31
31
  }, mailerOptions);
32
32
  }
File without changes
@@ -4,11 +4,11 @@ exports.PugAdapter = void 0;
4
4
  const path = require("path");
5
5
  const lodash_1 = require("lodash");
6
6
  const pug_1 = require("pug");
7
- const inlineCss = require("inline-css");
7
+ const css_inline_1 = require("css-inline");
8
8
  class PugAdapter {
9
9
  constructor(config) {
10
10
  this.config = {
11
- inlineCssOptions: { url: ' ' },
11
+ inlineCssOptions: {},
12
12
  inlineCssEnabled: true,
13
13
  };
14
14
  Object.assign(this.config, config);
@@ -27,17 +27,15 @@ class PugAdapter {
27
27
  return callback(err);
28
28
  }
29
29
  if (this.config.inlineCssEnabled) {
30
- inlineCss(body, this.config.inlineCssOptions)
31
- .then((html) => {
32
- mail.data.html = html;
33
- return callback();
34
- })
35
- .catch(callback);
30
+ try {
31
+ mail.data.html = (0, css_inline_1.inline)(body, this.config.inlineCssOptions);
32
+ }
33
+ catch (e) { }
36
34
  }
37
35
  else {
38
36
  mail.data.html = body;
39
- return callback();
40
37
  }
38
+ return callback();
41
39
  });
42
40
  }
43
41
  }
File without changes
File without changes
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
File without changes
@@ -6,8 +6,8 @@ import * as StreamTransport from 'nodemailer/lib/stream-transport';
6
6
  import * as JSONTransport from 'nodemailer/lib/json-transport';
7
7
  import * as SESTransport from 'nodemailer/lib/ses-transport';
8
8
  import { TemplateAdapter } from './template-adapter.interface';
9
- declare type Options = SMTPTransport.Options | SMTPPool.Options | SendmailTransport.Options | StreamTransport.Options | JSONTransport.Options | SESTransport.Options | TransportOptions;
10
- export declare type TransportType = Options | SMTPTransport | SMTPPool | SendmailTransport | StreamTransport | JSONTransport | SESTransport | Transport | string;
9
+ type Options = SMTPTransport.Options | SMTPPool.Options | SendmailTransport.Options | StreamTransport.Options | JSONTransport.Options | SESTransport.Options | TransportOptions;
10
+ export type TransportType = Options | SMTPTransport | SMTPPool | SendmailTransport | StreamTransport | JSONTransport | SESTransport | Transport | string;
11
11
  export interface MailerOptions {
12
12
  defaults?: Options;
13
13
  transport?: TransportType;
File without changes
@@ -1,8 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { SendMailOptions } from 'nodemailer';
3
3
  import * as DKIM from 'nodemailer/lib/dkim';
4
- export declare type TextEncoding = 'quoted-printable' | 'base64';
5
- export declare type Headers = {
4
+ import { Attachment } from 'nodemailer/lib/mailer';
5
+ export type TextEncoding = 'quoted-printable' | 'base64';
6
+ export type Headers = {
6
7
  [key: string]: string | string[] | {
7
8
  prepared: boolean;
8
9
  value: string;
@@ -22,7 +23,7 @@ export interface ISendMailOptions extends SendMailOptions {
22
23
  to?: string | Address | Array<string | Address>;
23
24
  cc?: string | Address | Array<string | Address>;
24
25
  bcc?: string | Address | Array<string | Address>;
25
- replyTo?: string | Address;
26
+ replyTo?: string | Address | Array<string | Address>;
26
27
  inReplyTo?: string | Address;
27
28
  from?: string | Address;
28
29
  subject?: string;
@@ -40,15 +41,6 @@ export interface ISendMailOptions extends SendMailOptions {
40
41
  };
41
42
  transporterName?: string;
42
43
  template?: string;
43
- attachments?: {
44
- filename: string;
45
- content?: any;
46
- path?: string;
47
- contentType?: string;
48
- cid?: string;
49
- encoding?: string;
50
- contentDisposition?: 'attachment' | 'inline' | undefined;
51
- href?: string;
52
- }[];
44
+ attachments?: Attachment[];
53
45
  dkim?: DKIM.Options;
54
46
  }
File without changes
@@ -1,5 +1,5 @@
1
- import InlineCss = require('inline-css');
1
+ import { InlineOptions } from 'css-inline';
2
2
  export interface TemplateAdapterConfig {
3
- inlineCssOptions?: InlineCss.Options;
3
+ inlineCssOptions?: InlineOptions;
4
4
  inlineCssEnabled?: boolean;
5
5
  }
File without changes
File without changes
File without changes
@@ -67,8 +67,8 @@ let MailerCoreModule = MailerCoreModule_1 = class MailerCoreModule {
67
67
  };
68
68
  }
69
69
  };
70
- MailerCoreModule = MailerCoreModule_1 = tslib_1.__decorate([
70
+ exports.MailerCoreModule = MailerCoreModule;
71
+ exports.MailerCoreModule = MailerCoreModule = MailerCoreModule_1 = tslib_1.__decorate([
71
72
  (0, common_1.Global)(),
72
73
  (0, common_1.Module)({})
73
74
  ], MailerCoreModule);
74
- exports.MailerCoreModule = MailerCoreModule;
File without changes
@@ -13,8 +13,8 @@ let MailerTransportFactory = class MailerTransportFactory {
13
13
  return (0, nodemailer_1.createTransport)(opts || this.options.transport, this.options.defaults);
14
14
  }
15
15
  };
16
- MailerTransportFactory = tslib_1.__decorate([
16
+ exports.MailerTransportFactory = MailerTransportFactory;
17
+ exports.MailerTransportFactory = MailerTransportFactory = tslib_1.__decorate([
17
18
  tslib_1.__param(0, (0, common_1.Inject)(mailer_constant_1.MAILER_OPTIONS)),
18
19
  tslib_1.__metadata("design:paramtypes", [Object])
19
20
  ], MailerTransportFactory);
20
- exports.MailerTransportFactory = MailerTransportFactory;
File without changes
@@ -23,7 +23,7 @@ let MailerModule = MailerModule_1 = class MailerModule {
23
23
  };
24
24
  }
25
25
  };
26
- MailerModule = MailerModule_1 = tslib_1.__decorate([
26
+ exports.MailerModule = MailerModule;
27
+ exports.MailerModule = MailerModule = MailerModule_1 = tslib_1.__decorate([
27
28
  (0, common_1.Module)({})
28
29
  ], MailerModule);
29
- exports.MailerModule = MailerModule;
File without changes
@@ -8,6 +8,23 @@ const previewEmail = require("preview-email");
8
8
  const mailer_constant_1 = require("./constants/mailer.constant");
9
9
  const mailer_transport_factory_1 = require("./mailer-transport.factory");
10
10
  let MailerService = class MailerService {
11
+ initTemplateAdapter(templateAdapter, transporter) {
12
+ if (templateAdapter) {
13
+ transporter.use('compile', (mail, callback) => {
14
+ if (mail.data.html) {
15
+ return callback();
16
+ }
17
+ return templateAdapter.compile(mail, callback, this.mailerOptions);
18
+ });
19
+ if (this.mailerOptions.preview) {
20
+ transporter.use('stream', (mail, callback) => {
21
+ return previewEmail(mail.data, this.mailerOptions.preview)
22
+ .then(() => callback())
23
+ .catch(callback);
24
+ });
25
+ }
26
+ }
27
+ }
11
28
  constructor(mailerOptions, transportFactory) {
12
29
  this.mailerOptions = mailerOptions;
13
30
  this.transportFactory = transportFactory;
@@ -39,23 +56,6 @@ let MailerService = class MailerService {
39
56
  this.initTemplateAdapter(this.templateAdapter, this.transporter);
40
57
  }
41
58
  }
42
- initTemplateAdapter(templateAdapter, transporter) {
43
- if (templateAdapter) {
44
- transporter.use('compile', (mail, callback) => {
45
- if (mail.data.html) {
46
- return callback();
47
- }
48
- return templateAdapter.compile(mail, callback, this.mailerOptions);
49
- });
50
- if (this.mailerOptions.preview) {
51
- transporter.use('stream', (mail, callback) => {
52
- return previewEmail(mail.data, this.mailerOptions.preview)
53
- .then(() => callback())
54
- .catch(callback);
55
- });
56
- }
57
- }
58
- }
59
59
  sendMail(sendMailOptions) {
60
60
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
61
61
  if (sendMailOptions.transporterName) {
@@ -85,11 +85,11 @@ let MailerService = class MailerService {
85
85
  return transporterName;
86
86
  }
87
87
  };
88
- MailerService = tslib_1.__decorate([
88
+ exports.MailerService = MailerService;
89
+ exports.MailerService = MailerService = tslib_1.__decorate([
89
90
  (0, common_1.Injectable)(),
90
91
  tslib_1.__param(0, (0, common_1.Inject)(mailer_constant_1.MAILER_OPTIONS)),
91
92
  tslib_1.__param(1, (0, common_1.Optional)()),
92
93
  tslib_1.__param(1, (0, common_1.Inject)(mailer_constant_1.MAILER_TRANSPORT_FACTORY)),
93
94
  tslib_1.__metadata("design:paramtypes", [Object, Object])
94
95
  ], MailerService);
95
- exports.MailerService = MailerService;
package/index.d.ts CHANGED
File without changes
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs-modules/mailer",
3
- "version": "1.8.1",
3
+ "version": "1.10.3",
4
4
  "private": false,
5
5
  "description": "NestJS - a mailer module (@mailer)",
6
6
  "keywords": [
@@ -52,55 +52,55 @@
52
52
  ]
53
53
  },
54
54
  "dependencies": {
55
- "glob": "8.0.3",
56
- "inline-css": "4.0.1",
57
- "mjml": "^4.12.0",
58
- "preview-email": "3.0.5"
55
+ "css-inline": "0.11.2",
56
+ "glob": "10.3.10",
57
+ "mjml": "4.14.1",
58
+ "preview-email": "3.0.19"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@types/ejs": "^3.0.3",
62
- "@types/pug": "2.0.6",
63
- "ejs": "^3.1.2",
64
- "handlebars": "^4.7.6",
65
- "pug": "^3.0.1"
61
+ "@types/ejs": "^3.1.5",
62
+ "@types/pug": "^2.0.10",
63
+ "ejs": "^3.1.9",
64
+ "handlebars": "^4.7.8",
65
+ "pug": "^3.0.2"
66
66
  },
67
67
  "devDependencies": {
68
- "@commitlint/cli": "17.0.3",
69
- "@commitlint/config-angular": "17.0.3",
70
- "@nestjs/common": "^9.0.1",
71
- "@nestjs/core": "^9.0.1",
72
- "@nestjs/testing": "^9.0.1",
73
- "@types/glob": "7.2.0",
74
- "@types/inline-css": "3.0.1",
75
- "@types/jest": "26.0.24",
76
- "@types/lodash": "4.14.182",
77
- "@types/nodemailer": "6.4.4",
78
- "@types/pug": "2.0.6",
79
- "@typescript-eslint/eslint-plugin": "5.30.7",
80
- "@typescript-eslint/parser": "5.30.7",
81
- "husky": "8.0.1",
82
- "jest": "27.0.6",
83
- "lint-staged": "13.0.3",
84
- "nodemailer": "6.7.7",
85
- "nodemailer-mock": "1.5.12",
86
- "prettier": "2.7.1",
87
- "reflect-metadata": "0.1.13",
88
- "rimraf": "3.0.2",
89
- "rxjs": "7.5.6",
68
+ "@commitlint/cli": "18.4.3",
69
+ "@commitlint/config-angular": "18.4.3",
70
+ "@nestjs/common": "10.3.0",
71
+ "@nestjs/core": "10.3.0",
72
+ "@nestjs/testing": "10.3.0",
73
+ "@types/glob": "8.1.0",
74
+ "@types/jest": "29.5.11",
75
+ "@types/lodash": "4.14.202",
76
+ "@types/nodemailer": "6.4.14",
77
+ "@types/pug": "2.0.10",
78
+ "@typescript-eslint/eslint-plugin": "6.15.0",
79
+ "@typescript-eslint/parser": "6.15.0",
80
+ "husky": "8.0.3",
81
+ "jest": "29.7.0",
82
+ "lint-staged": "15.2.0",
83
+ "nodemailer": "6.9.7",
84
+ "nodemailer-mock": "2.0.3",
85
+ "prettier": "3.1.1",
86
+ "reflect-metadata": "0.2.1",
87
+ "rimraf": "5.0.5",
88
+ "rxjs": "7.8.1",
90
89
  "standard-version": "9.5.0",
91
- "ts-jest": "27.1.2",
92
- "ts-node": "10.9.1",
93
- "typescript": "4.7.4",
94
- "yarn-audit-fix": "^9.3.2"
90
+ "ts-jest": "29.1.1",
91
+ "ts-node": "10.9.2",
92
+ "tslib": "2.6.2",
93
+ "typescript": "5.3.3",
94
+ "yarn-audit-fix": "10.0.7"
95
95
  },
96
96
  "peerDependencies": {
97
- "@nestjs/common": "^7.0.9 || ^8.0.0 || ^9.0.0",
98
- "@nestjs/core": "^7.0.9 || ^8.0.0 || ^9.0.0",
99
- "@types/ejs": "^3.0.3",
100
- "@types/pug": "2.0.6",
101
- "ejs": "^3.1.2",
102
- "handlebars": "^4.7.6",
103
- "nodemailer": "^6.4.6",
104
- "pug": "^3.0.1"
97
+ "@nestjs/common": ">=7.0.9",
98
+ "@nestjs/core": ">=7.0.9",
99
+ "@types/ejs": ">=3.0.3",
100
+ "@types/pug": ">=2.0.6",
101
+ "ejs": ">=3.1.2",
102
+ "handlebars": ">=4.7.6",
103
+ "nodemailer": ">=6.4.6",
104
+ "pug": ">=3.0.1"
105
105
  }
106
106
  }