@kronos-integration/endpoint 11.0.19 → 11.0.20

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": "11.0.19",
3
+ "version": "11.0.20",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -40,7 +40,7 @@
40
40
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
41
41
  },
42
42
  "dependencies": {
43
- "@kronos-integration/interceptor": "^13.1.19"
43
+ "@kronos-integration/interceptor": "^13.1.20"
44
44
  },
45
45
  "devDependencies": {
46
46
  "ava": "^6.4.1",
@@ -50,7 +50,7 @@
50
50
  "typescript": "^5.9.3"
51
51
  },
52
52
  "engines": {
53
- "node": ">=24.11.1"
53
+ "node": ">=24.13.0"
54
54
  },
55
55
  "repository": {
56
56
  "type": "git",
@@ -2,7 +2,7 @@ import { Endpoint } from "./endpoint.mjs";
2
2
 
3
3
  /**
4
4
  * Dummy endpoints are used during construction of the endpoint mesh.
5
- *
5
+ * The will be replaces by real endpoints during the resolving phase.
6
6
  */
7
7
  export class DummyReceiveEndpoint extends Endpoint {
8
8
  /**
@@ -6,9 +6,8 @@ import { ReceivableEndpoint } from "./receivable-endpoint.mjs";
6
6
  * Can hold several connections.
7
7
  */
8
8
  export class MultiConnectionEndpoint extends ReceivableEndpoint {
9
-
10
9
  /** @type {Map<Endpoint,any>} */ #connections = new Map();
11
-
10
+
12
11
  constructor(name, owner, options) {
13
12
  super(name, owner, options);
14
13
 
@@ -38,7 +37,8 @@ export class MultiConnectionEndpoint extends ReceivableEndpoint {
38
37
  addConnection(other, backpointer) {
39
38
  if (!this.connectable(other)) {
40
39
  throw new Error(
41
- `Can't connect ${this.direction} to ${other.direction}: ${this.identifier} = ${other.identifier}`
40
+ `Can't connect ${this.direction} to ${other.direction}: ${this.identifier} = ${other.identifier}`,
41
+ { cause: other }
42
42
  );
43
43
  }
44
44
 
@@ -51,7 +51,7 @@ export class MultiConnectionEndpoint extends ReceivableEndpoint {
51
51
  }
52
52
  }
53
53
 
54
- /**
54
+ /**
55
55
  * Actually stop the communication.
56
56
  * @param {Endpoint} other
57
57
  * @param {boolean?} [backpointer] true if this is the call form back call from the other side
@@ -9,8 +9,7 @@ import { Interceptor } from "@kronos-integration/interceptor";
9
9
  * @param {Function} [options.receivingInterceptors]
10
10
  */
11
11
  export class ReceivableEndpoint extends Endpoint {
12
-
13
- /**
12
+ /**
14
13
  * @param {string} name endpoint name
15
14
  * @param {Object} owner of the endpoint (service)
16
15
  * @param {Object} options
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Dummy endpoints are used during construction of the endpoint mesh.
3
- *
3
+ * The will be replaces by real endpoints during the resolving phase.
4
4
  */
5
5
  export class DummyReceiveEndpoint extends Endpoint {
6
6
  /**
@@ -7,12 +7,12 @@
7
7
  */
8
8
  export class ReceivableEndpoint extends Endpoint {
9
9
  /**
10
- * @param {string} name endpoint name
11
- * @param {Object} owner of the endpoint (service)
12
- * @param {Object} options
13
- * @param {Function} [options.receive]
14
- * @param {Array<Interceptor>} [options.receivingInterceptors]
15
- */
10
+ * @param {string} name endpoint name
11
+ * @param {Object} owner of the endpoint (service)
12
+ * @param {Object} options
13
+ * @param {Function} [options.receive]
14
+ * @param {Array<Interceptor>} [options.receivingInterceptors]
15
+ */
16
16
  constructor(name: string, owner: any, options: {
17
17
  receive?: Function;
18
18
  receivingInterceptors?: Array<Interceptor>;