@kronos-integration/service 15.6.7 → 15.7.0
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 +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.7.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"lint:docs": "documentation lint ./src**/*.mjs"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@kronos-integration/endpoint": "^11.1.
|
|
38
|
-
"@kronos-integration/interceptor": "^13.
|
|
37
|
+
"@kronos-integration/endpoint": "^11.1.4",
|
|
38
|
+
"@kronos-integration/interceptor": "^13.3.0",
|
|
39
39
|
"loglevel-mixin": "^7.2.11",
|
|
40
|
-
"pacc": "^
|
|
40
|
+
"pacc": "^10.0.1",
|
|
41
41
|
"statetransition-mixin": "^8.1.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
package/src/service.mjs
CHANGED
|
@@ -84,6 +84,7 @@ export class Service extends EndpointsMixin(
|
|
|
84
84
|
description: description_attribute,
|
|
85
85
|
logLevel: {
|
|
86
86
|
...default_attribute,
|
|
87
|
+
name: "logLevel",
|
|
87
88
|
description: "logging level",
|
|
88
89
|
values: Object.keys(defaultLogLevels),
|
|
89
90
|
default: defaultLogLevels.info,
|
|
@@ -91,6 +92,7 @@ export class Service extends EndpointsMixin(
|
|
|
91
92
|
},
|
|
92
93
|
timeout: {
|
|
93
94
|
...object_attribute,
|
|
95
|
+
name: "timeout",
|
|
94
96
|
attributes: {
|
|
95
97
|
start: {
|
|
96
98
|
...timeout_attribute,
|
|
@@ -450,7 +452,7 @@ export class Service extends EndpointsMixin(
|
|
|
450
452
|
* @param {Function} filter
|
|
451
453
|
* @returns {Promise<Object>}
|
|
452
454
|
*/
|
|
453
|
-
async getCredentials(filter =
|
|
455
|
+
async getCredentials(filter = attribute => attribute.credential) {
|
|
454
456
|
const credentials = {};
|
|
455
457
|
for (const [path, attribute] of attributeIterator(
|
|
456
458
|
this.attributes,
|
|
@@ -470,7 +472,7 @@ export class Service extends EndpointsMixin(
|
|
|
470
472
|
async storePersistentCredentials() {
|
|
471
473
|
for (const [path, attribute] of attributeIterator(
|
|
472
474
|
this.attributes,
|
|
473
|
-
|
|
475
|
+
attribute => attribute.credential && attribute.persistent
|
|
474
476
|
)) {
|
|
475
477
|
try {
|
|
476
478
|
const name = path.join(".");
|