@jayfong/x-server 1.26.4 → 1.26.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.26.5](https://github.com/jfWorks/x-server/compare/v1.26.4...v1.26.5) (2022-05-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * export MailServiceSendOptions type ([7c47c23](https://github.com/jfWorks/x-server/commit/7c47c23a0d2f4d9a08f49e66a0155e282518257f))
11
+
5
12
  ### [1.26.4](https://github.com/jfWorks/x-server/compare/v1.26.3...v1.26.4) (2022-05-03)
6
13
 
7
14
 
@@ -16,7 +16,7 @@ class MailService {
16
16
  this.transporter = void 0;
17
17
  }
18
18
 
19
- async send(data) {
19
+ async send(options) {
20
20
  if (!this.transporter) {
21
21
  this.transporter = _nodemailer.default.createTransport({
22
22
  host: this.options.host,
@@ -32,7 +32,7 @@ class MailService {
32
32
  _x.x.dispose.add(() => this.transporter.close());
33
33
  }
34
34
 
35
- return this.transporter.sendMail(data);
35
+ return this.transporter.sendMail(options);
36
36
  }
37
37
 
38
38
  }
@@ -7,12 +7,14 @@ export interface MailServiceOptions {
7
7
  user: string;
8
8
  pass: string;
9
9
  }
10
+ export interface MailServiceSendOptions extends nodemailer.SendMailOptions {
11
+ }
10
12
  export declare class MailService implements BaseService {
11
13
  private options;
12
14
  serviceName: string;
13
15
  private transporter;
14
16
  constructor(options: MailServiceOptions);
15
- send(data: nodemailer.SendMailOptions): Promise<any>;
17
+ send(options: MailServiceSendOptions): Promise<any>;
16
18
  }
17
19
  declare module '../x' {
18
20
  interface X {
@@ -7,7 +7,7 @@ export class MailService {
7
7
  this.transporter = void 0;
8
8
  }
9
9
 
10
- async send(data) {
10
+ async send(options) {
11
11
  if (!this.transporter) {
12
12
  this.transporter = nodemailer.createTransport({
13
13
  host: this.options.host,
@@ -22,7 +22,7 @@ export class MailService {
22
22
  x.dispose.add(() => this.transporter.close());
23
23
  }
24
24
 
25
- return this.transporter.sendMail(data);
25
+ return this.transporter.sendMail(options);
26
26
  }
27
27
 
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "1.26.4",
3
+ "version": "1.26.5",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",