@hedhog/mail 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/interfaces/mail-module-options.interface.d.ts +2 -2
- package/dist/interfaces/mail-module-options.interface.d.ts.map +1 -1
- package/dist/mail.service.d.ts.map +1 -1
- package/dist/mail.service.js +1 -1
- package/dist/mail.service.js.map +1 -1
- package/package.json +1 -1
- package/src/interfaces/mail-module-options.interface.ts +2 -2
- package/src/mail.service.ts +7 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mail-module-options.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/mail-module-options.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEhE,MAAM,MAAM,iBAAiB,GACzB;IACE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,
|
1
|
+
{"version":3,"file":"mail-module-options.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/mail-module-options.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEhE,MAAM,MAAM,iBAAiB,GACzB;IACE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAA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a,WAAW;IAES,OAAO,CAAC,QAAQ,CAAC,UAAU;IACxD,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADkB,UAAU,EAAE,iBAAiB,EAC1D,WAAW,EAAE,WAAW;IAGrC,IAAI,CAAC,IAAI,EAAE,IAAI;IAaf,cAAc,CAAC,IAAI,EAAE,IAAI;IAyEzB,YAAY,CAAC,IAAI,EAAE,IAAI;
|
1
|
+
{"version":3,"file":"mail.service.d.ts","sourceRoot":"","sources":["../src/mail.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAuB,MAAM,eAAe,CAAC;AAE1D,qBACa,WAAW;IAES,OAAO,CAAC,QAAQ,CAAC,UAAU;IACxD,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADkB,UAAU,EAAE,iBAAiB,EAC1D,WAAW,EAAE,WAAW;IAGrC,IAAI,CAAC,IAAI,EAAE,IAAI;IAaf,cAAc,CAAC,IAAI,EAAE,IAAI;IAyEzB,YAAY,CAAC,IAAI,EAAE,IAAI;IAqCvB,aAAa,CAAC,IAAI,EAAE,IAAI;IA0CxB,WAAW,CAAC,IAAI,EAAE,IAAI;CAyH7B"}
|
package/dist/mail.service.js
CHANGED
@@ -118,7 +118,7 @@ let MailService = class MailService {
|
|
118
118
|
if (this.mailConfig.type !== 'SMTP') {
|
119
119
|
throw new Error('Invalid mail configuration type');
|
120
120
|
}
|
121
|
-
const { pass, user, host, port, secure = false } = this.mailConfig;
|
121
|
+
const { password: pass, username: user, host, port, secure = false, } = this.mailConfig;
|
122
122
|
const nodemailer = await Promise.resolve().then(() => __importStar(require('nodemailer')));
|
123
123
|
const transporter = nodemailer.createTransport({
|
124
124
|
host,
|
package/dist/mail.service.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":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/src/mail.service.ts
CHANGED
@@ -104,7 +104,13 @@ export class MailService {
|
|
104
104
|
throw new Error('Invalid mail configuration type');
|
105
105
|
}
|
106
106
|
|
107
|
-
const {
|
107
|
+
const {
|
108
|
+
password: pass,
|
109
|
+
username: user,
|
110
|
+
host,
|
111
|
+
port,
|
112
|
+
secure = false,
|
113
|
+
} = this.mailConfig;
|
108
114
|
|
109
115
|
const nodemailer = await import('nodemailer');
|
110
116
|
|