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.
- package/dist/accessi-module/Controllers/EmailController.js +1 -1
- package/dist/accessi-module/Services/EmailService/EmailService.d.ts +0 -2
- package/dist/accessi-module/Services/EmailService/EmailService.js +2 -6
- package/dist/emilsoftware-utilities-1.4.0-dev.4.tgz +0 -0
- package/package.json +1 -1
- package/dist/emilsoftware-utilities-1.4.0-dev.3.tgz +0 -0
|
@@ -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
|
-
|
|
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 =
|
|
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])
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|