@vroskus/library-email 1.0.14 → 1.0.15
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 +3 -3
- package/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -31,8 +31,8 @@ class EmailService {
|
|
|
31
31
|
username,
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
sendMail(
|
|
35
|
-
return __awaiter(this,
|
|
34
|
+
sendMail(_a) {
|
|
35
|
+
return __awaiter(this, arguments, void 0, function* ({ bcc, content, replyTo, subject, to, }) {
|
|
36
36
|
const params = {
|
|
37
37
|
bcc,
|
|
38
38
|
from: this.from,
|
|
@@ -50,7 +50,7 @@ class EmailService {
|
|
|
50
50
|
}
|
|
51
51
|
_EmailService_instances = new WeakSet(), _EmailService_setupTransporter = function _EmailService_setupTransporter({ host, password, port, username, }) {
|
|
52
52
|
this.transporter = {
|
|
53
|
-
sendMail: (
|
|
53
|
+
sendMail: (_a) => __awaiter(this, [_a], void 0, function* ({ bcc, html, subject, text, to, }) {
|
|
54
54
|
console.log('\x1b[33m', 'EmailService.sendEmail', '\x1b[0m\x1b[90m', to, bcc, subject, JSON.stringify(html), JSON.stringify(text));
|
|
55
55
|
return {
|
|
56
56
|
accepted: Array.isArray(to) ? to : [to],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vroskus/library-email",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Email",
|
|
5
5
|
"author": "Vilius Roškus <vilius@regattas.eu>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,25 +20,25 @@
|
|
|
20
20
|
"test:e2e": "echo 'No tests'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@types/nodemailer": "6.4.14",
|
|
24
|
-
"html-to-text": "9.0.5",
|
|
25
|
-
"lodash": "4.17.21",
|
|
26
|
-
"nodemailer": "^6.9.
|
|
23
|
+
"@types/nodemailer": "^6.4.14",
|
|
24
|
+
"html-to-text": "^9.0.5",
|
|
25
|
+
"lodash": "^4.17.21",
|
|
26
|
+
"nodemailer": "^6.9.13"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/jest": "29.5.12",
|
|
30
|
-
"@types/lodash": "4.
|
|
31
|
-
"@types/node": "^20.11.
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
33
|
-
"@typescript-eslint/parser": "^7.
|
|
34
|
-
"eslint": "8.57.0",
|
|
35
|
-
"eslint-config-airbnb-base": "15.0.0",
|
|
29
|
+
"@types/jest": "^29.5.12",
|
|
30
|
+
"@types/lodash": "^4.17.0",
|
|
31
|
+
"@types/node": "^20.11.30",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
33
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
34
|
+
"eslint": "^8.57.0",
|
|
35
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
36
36
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
37
|
-
"eslint-config-problems": "8.0.0",
|
|
38
|
-
"eslint-plugin-import": "2.29.1",
|
|
39
|
-
"eslint-plugin-import-newlines": "1.
|
|
40
|
-
"eslint-plugin-perfectionist": "^2.
|
|
41
|
-
"eslint-plugin-react": "^7.34.
|
|
42
|
-
"typescript": "5.
|
|
37
|
+
"eslint-config-problems": "^8.0.0",
|
|
38
|
+
"eslint-plugin-import": "^2.29.1",
|
|
39
|
+
"eslint-plugin-import-newlines": "^1.4.0",
|
|
40
|
+
"eslint-plugin-perfectionist": "^2.7.0",
|
|
41
|
+
"eslint-plugin-react": "^7.34.1",
|
|
42
|
+
"typescript": "^5.4.3"
|
|
43
43
|
}
|
|
44
44
|
}
|