@vroskus/library-email 1.0.28 → 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.
Files changed (2) hide show
  1. package/dist/index.js +1 -2
  2. package/package.json +1 -1
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.log('\x1b[33m', 'EmailService.sendEmail', '\x1b[0m\x1b[90m', to, bcc, subject, JSON.stringify(html), JSON.stringify(text));
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.28",
3
+ "version": "1.0.29",
4
4
  "description": "Email",
5
5
  "author": "Vilius Roškus <vilius@regattas.eu>",
6
6
  "license": "MIT",