@kronos-integration/service 14.0.7 → 15.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",
3
- "version": "14.0.7",
3
+ "version": "15.0.1",
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": "^11.0.2",
40
- "@kronos-integration/interceptor": "^13.0.3",
39
+ "@kronos-integration/endpoint": "^11.0.3",
40
+ "@kronos-integration/interceptor": "^13.0.4",
41
41
  "loglevel-mixin": "^7.2.6",
42
42
  "pacc": "^5.0.0",
43
43
  "statetransition-mixin": "^8.1.4"
@@ -1,4 +1,3 @@
1
- import { getAttributes } from "pacc";
2
1
  import { Service } from "./service.mjs";
3
2
  import { keyValue2Object } from "./util.mjs";
4
3
 
@@ -76,17 +75,7 @@ export class ServiceConfig extends Service {
76
75
 
77
76
  const merged = merge(this.preservedConfigs.get(name), c);
78
77
  this.trace(
79
- level =>
80
- `Preserve config ${name} ${JSON.stringify(
81
- getAttributes(
82
- Object.fromEntries(
83
- Object.entries(service.attributes).filter(
84
- ([n, a]) => !a.private
85
- )
86
- ),
87
- service.attributes
88
- )
89
- )}`
78
+ level => `Preserve config ${name} ${JSON.stringify(merged)}`
90
79
  );
91
80
 
92
81
  this.preservedConfigs.set(name, merged);
package/src/service.mjs CHANGED
@@ -155,12 +155,6 @@ export class Service extends EndpointsMixin(
155
155
  Object.defineProperties(this, properties);
156
156
  }
157
157
 
158
- if (process.env.LOGLEVEL) {
159
- this.logLevel = config.logLevel = process.env.LOGLEVEL;
160
- } else if (process.env.DEBUG) {
161
- this.logLevel = config.logLevel = "debug";
162
- }
163
-
164
158
  this.createEndpointsFromConfig(config.endpoints, ic);
165
159
  this._configure(config);
166
160
  }
@@ -36,7 +36,6 @@ export class Service extends Service_base {
36
36
  static get endpoints(): any;
37
37
  constructor(config: any, ic: any);
38
38
  owner: any;
39
- logLevel: any;
40
39
  instantiateInterceptor(options: any): any;
41
40
  get attributes(): any;
42
41
  get type(): string;