@kronos-integration/service 13.1.1 → 13.1.3
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 +4 -4
- package/src/service.mjs +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib es2024 -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@kronos-integration/endpoint": "^10.0
|
|
40
|
-
"@kronos-integration/interceptor": "^12.0.
|
|
39
|
+
"@kronos-integration/endpoint": "^10.1.0",
|
|
40
|
+
"@kronos-integration/interceptor": "^12.0.2",
|
|
41
41
|
"loglevel-mixin": "^7.2.5",
|
|
42
|
-
"pacc": "^3.
|
|
42
|
+
"pacc": "^3.11.1",
|
|
43
43
|
"remove-sensible-values": "^1.3.1",
|
|
44
44
|
"statetransition-mixin": "^8.1.3"
|
|
45
45
|
},
|
package/src/service.mjs
CHANGED
|
@@ -4,7 +4,9 @@ import {
|
|
|
4
4
|
prepareAttributesDefinitions,
|
|
5
5
|
getAttributes,
|
|
6
6
|
setAttributes,
|
|
7
|
-
description_attribute
|
|
7
|
+
description_attribute,
|
|
8
|
+
default_attribute,
|
|
9
|
+
timeout_attribute
|
|
8
10
|
} from "pacc";
|
|
9
11
|
import { EndpointsMixin } from "./endpoints-mixin.mjs";
|
|
10
12
|
import { InitializationContext } from "./initialization-context.mjs";
|
|
@@ -85,9 +87,9 @@ export class Service extends EndpointsMixin(
|
|
|
85
87
|
static attributes = prepareAttributesDefinitions({
|
|
86
88
|
description: description_attribute,
|
|
87
89
|
logLevel: {
|
|
90
|
+
...default_attribute,
|
|
88
91
|
description: `logging level one of: ${Object.keys(defaultLogLevels)}`,
|
|
89
92
|
default: defaultLogLevels.info,
|
|
90
|
-
type: "string",
|
|
91
93
|
set(newValue) {
|
|
92
94
|
if (newValue !== undefined) {
|
|
93
95
|
this.logLevel = newValue;
|
|
@@ -102,18 +104,18 @@ export class Service extends EndpointsMixin(
|
|
|
102
104
|
timeout: {
|
|
103
105
|
attributes: {
|
|
104
106
|
start: {
|
|
107
|
+
...timeout_attribute,
|
|
105
108
|
description: "service start timeout",
|
|
106
|
-
type: "duration",
|
|
107
109
|
default: 20
|
|
108
110
|
},
|
|
109
111
|
stop: {
|
|
112
|
+
...timeout_attribute,
|
|
110
113
|
description: "service stop timeout",
|
|
111
|
-
type: "duration",
|
|
112
114
|
default: 20
|
|
113
115
|
},
|
|
114
116
|
restart: {
|
|
117
|
+
...timeout_attribute,
|
|
115
118
|
description: "service restart timeout",
|
|
116
|
-
type: "duration",
|
|
117
119
|
default: 20
|
|
118
120
|
}
|
|
119
121
|
}
|