@things-factory/email-base 5.0.0-alpha.45 → 5.0.0-alpha.48

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/README.md CHANGED
@@ -23,8 +23,8 @@ module.exports = {
23
23
  }
24
24
  ```
25
25
 
26
- ### 2. send email as virtual user (e.g. no-reply@hatiolab.com)
26
+ ### 2. send email as virtual user (e.g. noreply@hatiolab.com)
27
27
 
28
28
  1. add member into shared mailbox
29
29
  2. call sendEmail function with shared mailbox address as sender paramerter
30
- (e.g. sendEmail({sender: no-reply@hatiolab.com}) )
30
+ (e.g. sendEmail({sender: noreply@hatiolab.com}) )
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.sendEmail = void 0;
7
- const env_1 = require("@things-factory/env");
8
7
  const nodemailer_1 = __importDefault(require("nodemailer"));
8
+ const env_1 = require("@things-factory/env");
9
9
  const debug = require('debug')('things-factory:email-base:email');
10
10
  /**
11
11
  * sendEmail({
12
- * sender: 'No reply <no-reply@hatiolab.com>',
12
+ * sender: 'No reply <noreply@hatiolab.com>',
13
13
  * receiver: 'someone@email.com',
14
14
  * subject: 'Subject',
15
15
  * context: 'Content'
@@ -1 +1 @@
1
- {"version":3,"file":"email.js","sourceRoot":"","sources":["../../server/controllers/email.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,4DAAmC;AAEnC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,iCAAiC,CAAC,CAAA;AAEjE;;;;;;;GAOG;AACI,KAAK,UAAU,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;;IACpE,IAAI,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAEnC,IAAI;QACF,IAAI,WAAW,GAAG,oBAAU,CAAC,eAAe,mBACvC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AA;QAEtD,OAAO,MAAM,WAAW,CAAC,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;KACrD;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;KACf;AACH,CAAC;AAtBD,8BAsBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/email-base",
3
- "version": "5.0.0-alpha.45",
3
+ "version": "5.0.0-alpha.48",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,11 +24,11 @@
24
24
  "migration:create": "node ./node_modules/typ`eorm/cli.js migration:create"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/shell": "^5.0.0-alpha.45",
28
- "nodemailer": "^6.3.1"
27
+ "@things-factory/shell": "^5.0.0-alpha.48",
28
+ "nodemailer": "^6.7.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/nodemailer": "^6.2.2"
32
32
  },
33
- "gitHead": "4d027d7577c25be3db404f819bb6010b6b158ad9"
33
+ "gitHead": "0fa9b26abce176fa96d820fb50cc5565760d50c9"
34
34
  }
@@ -1,11 +1,12 @@
1
- import { config } from '@things-factory/env'
2
1
  import nodemailer from 'nodemailer'
3
2
 
3
+ import { config } from '@things-factory/env'
4
+
4
5
  const debug = require('debug')('things-factory:email-base:email')
5
6
 
6
7
  /**
7
8
  * sendEmail({
8
- * sender: 'No reply <no-reply@hatiolab.com>',
9
+ * sender: 'No reply <noreply@hatiolab.com>',
9
10
  * receiver: 'someone@email.com',
10
11
  * subject: 'Subject',
11
12
  * context: 'Content'