@kronos-integration/service 11.2.14 → 11.2.16

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",
3
- "version": "11.2.14",
3
+ "version": "11.2.16",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -36,8 +36,8 @@
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": "^9.5.9",
40
- "@kronos-integration/interceptor": "^10.3.7",
39
+ "@kronos-integration/endpoint": "^9.5.10",
40
+ "@kronos-integration/interceptor": "^10.3.9",
41
41
  "loglevel-mixin": "^7.2.5",
42
42
  "model-attributes": "^4.3.0",
43
43
  "remove-sensible-values": "^1.3.1",
@@ -93,9 +93,6 @@ export class ServiceConfig extends Service {
93
93
  );
94
94
  }
95
95
 
96
- async getCredential(key) {
97
- }
98
-
99
96
  /**
100
97
  * We always start immediate.
101
98
  * @return {boolean} true
@@ -1,4 +1,4 @@
1
- import { Service } from './service.mjs';
1
+ import { Service } from './service.mjs';
2
2
 
3
3
  /**
4
4
  * Log receiving service.
package/src/service.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defaultLogLevels, LogLevelMixin, makeLogEvent } from "loglevel-mixin";
2
2
  import { prepareActions, StateTransitionMixin } from "statetransition-mixin";
3
3
  import {
4
- createAttributes,
4
+ prepareAttributesDefinitions,
5
5
  getAttributes,
6
6
  setAttributes
7
7
  } from "model-attributes";
8
8
  import { EndpointsMixin } from "./endpoints-mixin.mjs";
9
9
  import { InitializationContext } from "./initialization-context.mjs";
10
10
 
11
- const _ca = createAttributes({
11
+ const _ca = prepareAttributesDefinitions({
12
12
  description: {
13
13
  type: "string",
14
14
  description: "human readable description of the service"
@@ -445,9 +445,7 @@ export class Service extends EndpointsMixin(
445
445
  * @return {Promise} fillfills when config is applied
446
446
  */
447
447
  async configure(config) {
448
- const modified = this._configure(config);
449
-
450
- for (const a of modified) {
448
+ for (const a of this._configure(config)) {
451
449
  if (a.needsRestart) {
452
450
  return this.restartIfRunning();
453
451
  }
@@ -36,6 +36,5 @@ export class ServiceConfig extends Service {
36
36
  * @param {Array|Object} config
37
37
  */
38
38
  configure(config: any[] | any): Promise<void>;
39
- getCredential(key: any): Promise<void>;
40
39
  }
41
40
  import { Service } from "./service.mjs";