@kronos-integration/endpoint 9.4.41 → 9.4.42

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/endpoint",
3
- "version": "9.4.41",
3
+ "version": "9.4.42",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,17 +35,17 @@
35
35
  "@kronos-integration/interceptor": "^10.2.34"
36
36
  },
37
37
  "devDependencies": {
38
- "ava": "^5.1.0",
39
- "c8": "^7.12.0",
38
+ "ava": "^5.2.0",
39
+ "c8": "^7.13.0",
40
40
  "documentation": "^14.0.1",
41
- "semantic-release": "^19.0.5"
41
+ "semantic-release": "^20.1.3"
42
42
  },
43
43
  "engines": {
44
- "node": ">=18.12.1"
44
+ "node": ">=18.15.0"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",
48
- "url": "https://github.com/Kronos-Integration/endpoint.git"
48
+ "url": "https://github.com/Kronos-Integration/endpoint"
49
49
  },
50
50
  "bugs": {
51
51
  "url": "https://github.com/Kronos-Integration/endpoint/issues"
@@ -1,7 +1,5 @@
1
1
  import { Endpoint, instanciateInterceptors } from "./endpoint.mjs";
2
2
 
3
- const RECEIVE = Symbol("receive");
4
-
5
3
  /**
6
4
  * @param {string} name endpoint name
7
5
  * @param {Object} owner of the endpoint (service)
@@ -10,6 +8,9 @@ const RECEIVE = Symbol("receive");
10
8
  * @param {Function} [options.receivingInterceptors]
11
9
  */
12
10
  export class ReceivableEndpoint extends Endpoint {
11
+
12
+ #receive;
13
+
13
14
  constructor(name, owner, options) {
14
15
  super(name, owner, options);
15
16
  if (options.receive) {
@@ -32,7 +33,7 @@ export class ReceivableEndpoint extends Endpoint {
32
33
  * @return {boolean} true is receive function is present
33
34
  */
34
35
  get isIn() {
35
- return this[RECEIVE] !== undefined;
36
+ return this.#receive !== undefined;
36
37
  }
37
38
 
38
39
  /**
@@ -40,7 +41,7 @@ export class ReceivableEndpoint extends Endpoint {
40
41
  * @return {Function}
41
42
  */
42
43
  get receive() {
43
- return this[RECEIVE];
44
+ return this.#receive;
44
45
  }
45
46
 
46
47
  /**
@@ -48,10 +49,10 @@ export class ReceivableEndpoint extends Endpoint {
48
49
  * @param {Function} receive
49
50
  */
50
51
  set receive(receive) {
51
- this[RECEIVE] = receive;
52
+ this.#receive = receive;
52
53
  }
53
54
 
54
55
  get isOpen() {
55
- return this[RECEIVE] !== undefined;
56
+ return this.#receive !== undefined;
56
57
  }
57
58
  }