@kronos-integration/service 10.4.47 → 10.4.49

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.47",
3
+ "version": "10.4.49",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,7 +40,7 @@
40
40
  "ava": "^5.3.1",
41
41
  "c8": "^8.0.0",
42
42
  "documentation": "^14.0.2",
43
- "semantic-release": "^21.0.5"
43
+ "semantic-release": "^21.0.7"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=20.3.1"
@@ -20,11 +20,13 @@ export const InitializationContext = LogLevelMixin(
20
20
  * @property {Map<string,Promise<Endpoint>>} outstandingEndpointConnections
21
21
  */
22
22
  class InitializationContext {
23
+
24
+ outstandingServices = new Map();
25
+ outstandingFactories = new Map();
26
+ outstandingEndpointConnections = new Map();
27
+
23
28
  constructor(serviceProvider, options) {
24
29
  this.serviceProvider = serviceProvider;
25
- this.outstandingServices = new Map();
26
- this.outstandingFactories = new Map();
27
- this.outstandingEndpointConnections = new Map();
28
30
  }
29
31
 
30
32
  /**
@@ -224,8 +226,8 @@ export const InitializationContext = LogLevelMixin(
224
226
 
225
227
  /**
226
228
  * - if there is already a service for the given name configure it and we are done
227
- * - if there is already an outstanding declaration ongoing wait until it is done configure it done
228
- * - otherewise declare this action as a new outstanding service declaration
229
+ * - if there is already an outstanding declaration ongoing wait until it is done configure it then
230
+ * - otherwise declare this action as a new outstanding service declaration
229
231
  * @param {Object} config
230
232
  * @param {string} name service name
231
233
  * @return {Service}
package/src/service.mjs CHANGED
@@ -148,9 +148,7 @@ export class Service extends EndpointsMixin(
148
148
 
149
149
  const owner = ic.ownerOfService(this);
150
150
  if (owner !== undefined) {
151
- Object.defineProperty(this, "owner", {
152
- value: owner
153
- });
151
+ this.owner = owner;
154
152
  }
155
153
 
156
154
  if (config === undefined) {