emilsoftware-utilities 1.4.0-dev.3 → 1.4.0-dev.4

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.
@@ -71,7 +71,7 @@ __decorate([
71
71
  type: 'string',
72
72
  description: "L'email dell'utente che richiede il reset"
73
73
  },
74
- resetCustomUrl: {
74
+ resetUrlCustom: {
75
75
  type: 'string',
76
76
  description: "Pagina di reset della password personalizzata",
77
77
  },
@@ -1,8 +1,6 @@
1
1
  import { AccessiOptions } from '../../AccessiModule';
2
- import { Logger } from '../../../Logger';
3
2
  export declare class EmailService {
4
3
  private readonly accessiOptions;
5
- logger: Logger;
6
4
  constructor(accessiOptions: AccessiOptions);
7
5
  sendAccountUpdateEmail(email: string, message: string): Promise<void>;
8
6
  private transporter;
@@ -23,7 +23,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  var __importDefault = (this && this.__importDefault) || function (mod) {
24
24
  return (mod && mod.__esModule) ? mod : { "default": mod };
25
25
  };
26
- var EmailService_1;
27
26
  Object.defineProperty(exports, "__esModule", { value: true });
28
27
  exports.EmailService = void 0;
29
28
  const nodemailer_1 = __importDefault(require("nodemailer"));
@@ -31,11 +30,9 @@ const uuid_1 = require("uuid");
31
30
  const Orm_1 = require("../../../Orm");
32
31
  const common_1 = require("@nestjs/common");
33
32
  const StatoRegistrazione_1 = require("../../Dtos/StatoRegistrazione");
34
- const Logger_1 = require("../../../Logger");
35
- let EmailService = EmailService_1 = class EmailService {
33
+ let EmailService = class EmailService {
36
34
  constructor(accessiOptions) {
37
35
  this.accessiOptions = accessiOptions;
38
- this.logger = new Logger_1.Logger(EmailService_1.name);
39
36
  this.transporter = nodemailer_1.default.createTransport(this.accessiOptions.emailOptions);
40
37
  }
41
38
  sendAccountUpdateEmail(email, message) {
@@ -56,7 +53,6 @@ let EmailService = EmailService_1 = class EmailService {
56
53
  let resetUrl = `${confirmationEmailUrl}/api/accessi/email/reset-password-page/${resetToken}${returnUrlQueryParams}`;
57
54
  if (resetUrlCustom) {
58
55
  resetUrl = resetUrlCustom + "?token=" + resetToken;
59
- this.logger.info('url personalizzato: ', resetUrl);
60
56
  }
61
57
  let sPhrase;
62
58
  if (htmlMail) {
@@ -358,7 +354,7 @@ let EmailService = EmailService_1 = class EmailService {
358
354
  }
359
355
  };
360
356
  exports.EmailService = EmailService;
361
- exports.EmailService = EmailService = EmailService_1 = __decorate([
357
+ exports.EmailService = EmailService = __decorate([
362
358
  (0, common_1.Injectable)(),
363
359
  __param(0, (0, common_1.Inject)('ACCESSI_OPTIONS')),
364
360
  __metadata("design:paramtypes", [Object])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emilsoftware-utilities",
3
- "version": "1.4.0-dev.3",
3
+ "version": "1.4.0-dev.4",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",