@kronos-integration/service-smtp 2.0.0 → 2.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-smtp",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@kronos-integration/endpoint": "^10.0.5",
32
- "@kronos-integration/service": "^13.0.0",
33
- "pacc": "^3.8.0",
32
+ "@kronos-integration/service": "^13.1.2",
33
+ "pacc": "^3.11.0",
34
34
  "smtp-client": "^0.4.0"
35
35
  },
36
36
  "devDependencies": {
@@ -1,8 +1,11 @@
1
1
  import { SMTPClient } from "smtp-client";
2
2
  import {
3
- mergeAttributeDefinitions,
4
3
  prepareAttributesDefinitions,
5
- boolean_attribute
4
+ boolean_attribute,
5
+ hostname_attribute,
6
+ port_attribute,
7
+ username_attribute,
8
+ password_attribute
6
9
  } from "pacc";
7
10
  import { Service } from "@kronos-integration/service";
8
11
 
@@ -17,31 +20,25 @@ export class ServiceSMTP extends Service {
17
20
  return "smtp";
18
21
  }
19
22
 
20
- static attributes = mergeAttributeDefinitions(
21
- prepareAttributesDefinitions({
23
+ static attributes = prepareAttributesDefinitions(
24
+ {
22
25
  host: {
26
+ ...hostname_attribute,
23
27
  needsRestart: true,
24
- mandatory: true,
25
- type: "string"
28
+ mandatory: true
26
29
  },
27
30
  port: {
28
- type: "number",
31
+ ...port_attribute,
29
32
  default: 25
30
33
  },
31
34
  secure: boolean_attribute,
32
35
  auth: {
33
36
  attributes: {
34
- username: {
35
- type: "string",
36
- private: true
37
- },
38
- password: {
39
- type: "string",
40
- private: true
41
- }
37
+ username: username_attribute,
38
+ password: password_attribute
42
39
  }
43
40
  }
44
- }),
41
+ },
45
42
  Service.attributes
46
43
  );
47
44