@kronos-integration/service 10.4.42 → 10.4.43
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": "10.4.
|
|
3
|
+
"version": "10.4.43",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@kronos-integration/endpoint": "^9.4.41",
|
|
33
33
|
"@kronos-integration/interceptor": "^10.2.34",
|
|
34
|
-
"loglevel-mixin": "^7.0.
|
|
34
|
+
"loglevel-mixin": "^7.0.1",
|
|
35
35
|
"model-attributes": "^4.2.2",
|
|
36
36
|
"remove-sensible-values": "^1.2.3",
|
|
37
37
|
"statetransition-mixin": "^8.0.4"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"ava": "^5.2.0",
|
|
41
41
|
"c8": "^7.13.0",
|
|
42
42
|
"documentation": "^14.0.1",
|
|
43
|
-
"semantic-release": "^20.1.
|
|
43
|
+
"semantic-release": "^20.1.3"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18.15.0"
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
Endpoint,
|
|
5
5
|
DummyReceiveEndpoint
|
|
6
6
|
} from "@kronos-integration/endpoint";
|
|
7
|
-
import {
|
|
7
|
+
import { Service } from "./service.mjs";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Keeps track of all in flight object creations and loose ends during config initialization.
|
package/src/service-config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { removeSensibleValues } from "remove-sensible-values";
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from "./service.mjs";
|
|
3
3
|
import { keyValue2Object } from "./util.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -20,11 +20,7 @@ export class ServiceConfig extends Service {
|
|
|
20
20
|
return "Config providing service";
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
super(config, ic);
|
|
25
|
-
|
|
26
|
-
this.preservedConfigs = new Map();
|
|
27
|
-
}
|
|
23
|
+
preservedConfigs = new Map();
|
|
28
24
|
|
|
29
25
|
/**
|
|
30
26
|
* Deliver configuration for a given service.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Interceptor } from "@kronos-integration/interceptor";
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from "./service.mjs";
|
|
3
3
|
import { ServiceLogger } from "./service-logger.mjs";
|
|
4
|
-
import { ServiceConfig }
|
|
4
|
+
import { ServiceConfig } from "./service-config.mjs";
|
|
5
5
|
import { InitializationContext } from "./initialization-context.mjs";
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -18,13 +18,14 @@ export function ServiceProviderMixin(
|
|
|
18
18
|
serviceConfigClass = ServiceConfig
|
|
19
19
|
) {
|
|
20
20
|
return class ServiceProvider extends superclass {
|
|
21
|
+
listeners = {};
|
|
22
|
+
interceptorFactories = {};
|
|
23
|
+
serviceFactories = {};
|
|
24
|
+
services = {};
|
|
25
|
+
|
|
21
26
|
constructor(config, ic = new InitializationContext()) {
|
|
22
27
|
super(Array.isArray(config) ? config[0] : config, ic);
|
|
23
28
|
|
|
24
|
-
this.listeners = {};
|
|
25
|
-
this.interceptorFactories = {};
|
|
26
|
-
this.serviceFactories = {};
|
|
27
|
-
this.services = {};
|
|
28
29
|
this.ic = ic;
|
|
29
30
|
|
|
30
31
|
ic.logLevel = this.logLevel;
|