@vroskus/library-email 1.0.27 → 1.0.29
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/index.js +1 -2
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -46,7 +46,6 @@ class EmailService {
|
|
|
46
46
|
};
|
|
47
47
|
if (this.transporter !== null) {
|
|
48
48
|
const info = yield this.transporter.sendMail(params);
|
|
49
|
-
console.log('info', info);
|
|
50
49
|
return info.messageId;
|
|
51
50
|
}
|
|
52
51
|
throw new Error('Transporter not initialised');
|
|
@@ -56,7 +55,7 @@ class EmailService {
|
|
|
56
55
|
_EmailService_instances = new WeakSet(), _EmailService_setupTransporter = function _EmailService_setupTransporter({ host, password, port, username, }) {
|
|
57
56
|
this.transporter = {
|
|
58
57
|
sendMail: (_a) => __awaiter(this, [_a], void 0, function* ({ bcc, html, subject, text, to, }) {
|
|
59
|
-
console.
|
|
58
|
+
console.info('\x1b[33m', 'EmailService.sendEmail', '\x1b[0m\x1b[90m', to, bcc, subject, JSON.stringify(html), JSON.stringify(text));
|
|
60
59
|
return {
|
|
61
60
|
accepted: typeof to === 'string' ? [to] : to,
|
|
62
61
|
messageId: '0',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vroskus/library-email",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "Email",
|
|
5
5
|
"author": "Vilius Roškus <vilius@regattas.eu>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,20 +15,21 @@
|
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "tsc",
|
|
18
|
-
"test": "npm run test:eslint && npm run test:e2e",
|
|
18
|
+
"test": "npm run test:eslint && npm run test:type && npm run test:e2e",
|
|
19
19
|
"test:eslint": "eslint src --fix",
|
|
20
|
+
"test:type": "tsc",
|
|
20
21
|
"test:e2e": "echo 'No tests'"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@types/nodemailer": "^7.0.
|
|
24
|
+
"@types/nodemailer": "^7.0.5",
|
|
24
25
|
"html-to-text": "^9.0.5",
|
|
25
26
|
"lodash": "^4.17.21",
|
|
26
27
|
"nodemailer": "^7.0.12"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@types/jest": "^30.0.0",
|
|
30
|
-
"@types/lodash": "^4.17.
|
|
31
|
-
"@types/node": "^25.0.
|
|
31
|
+
"@types/lodash": "^4.17.23",
|
|
32
|
+
"@types/node": "^25.0.9",
|
|
32
33
|
"@vroskus/eslint-config": "^1.0.30",
|
|
33
34
|
"typescript": "^5.9.3"
|
|
34
35
|
}
|