@kronos-integration/endpoint 10.0.5 → 10.1.0

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": "10.0.5",
3
+ "version": "10.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -39,7 +39,7 @@
39
39
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib es2024 -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
40
40
  },
41
41
  "dependencies": {
42
- "@kronos-integration/interceptor": "^12.0.0"
42
+ "@kronos-integration/interceptor": "^12.0.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "ava": "^6.4.1",
@@ -8,9 +8,6 @@ import { Endpoint, instanciateInterceptors } from "./endpoint.mjs";
8
8
  * @param {Function} [options.receivingInterceptors]
9
9
  */
10
10
  export class ReceivableEndpoint extends Endpoint {
11
-
12
- #receive;
13
-
14
11
  constructor(name, owner, options) {
15
12
  super(name, owner, options);
16
13
  if (options?.receive) {
@@ -33,26 +30,10 @@ export class ReceivableEndpoint extends Endpoint {
33
30
  * @return {boolean} true is receive function is present
34
31
  */
35
32
  get isIn() {
36
- return this.#receive !== undefined;
37
- }
38
-
39
- /**
40
- * Get the receive function.
41
- * @return {Function}
42
- */
43
- get receive() {
44
- return this.#receive;
45
- }
46
-
47
- /**
48
- * Set the receive function.
49
- * @param {Function} receive
50
- */
51
- set receive(receive) {
52
- this.#receive = receive;
33
+ return this.receive !== undefined;
53
34
  }
54
35
 
55
36
  get isOpen() {
56
- return this.#receive !== undefined;
37
+ return this.receive !== undefined;
57
38
  }
58
39
  }
@@ -7,16 +7,6 @@
7
7
  */
8
8
  export class ReceivableEndpoint extends Endpoint {
9
9
  constructor(name: any, owner: any, options: any);
10
- /**
11
- * Set the receive function.
12
- * @param {Function} receive
13
- */
14
- set receive(receive: Function);
15
- /**
16
- * Get the receive function.
17
- * @return {Function}
18
- */
19
- get receive(): Function;
20
- #private;
10
+ receive: any;
21
11
  }
22
12
  import { Endpoint } from "./endpoint.mjs";