@kronos-integration/endpoint 10.1.4 → 10.1.5

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.1.4",
3
+ "version": "10.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/endpoint.mjs CHANGED
@@ -12,8 +12,8 @@ export class Endpoint {
12
12
  * @param {string} name endpoint name
13
13
  * @param {Object} owner of the endpoint (service)
14
14
  * @param {Object} options
15
- * @param {function(Endpoint,Endpoint):void} [options.didConnect] called after receiver is present
16
- * @param {Interceptor[]|string[]} [options.interceptors] interceptors
15
+ * @param {function(Endpoint,Endpoint):void|undefined} [options.didConnect] called after receiver is present
16
+ * @param {Interceptor[]|string[]|undefined} [options.interceptors] interceptors
17
17
  */
18
18
  constructor(name, owner, options) {
19
19
  this.name = name;
@@ -7,9 +7,9 @@ import { ReceivableEndpoint } from "./receivable-endpoint.mjs";
7
7
  * Back connections to any further endpoints will not be established
8
8
  * @param {string} name endpoint name
9
9
  * @param {Object} owner of the endpoint (service)
10
- * @param {Object} options
11
- * @param {Endpoint} [options.connected] where te requests are delivered to
12
- * @param {Function} [options.didConnect] called after receiver is present
10
+ * @param {Object|undefined} options
11
+ * @param {Endpoint|undefined} [options.connected] where te requests are delivered to
12
+ * @param {Function|undefined} [options.didConnect] called after receiver is present
13
13
  */
14
14
  export class SendEndpoint extends ReceivableEndpoint {
15
15
  #connection;
@@ -22,12 +22,12 @@ export class Endpoint {
22
22
  * @param {string} name endpoint name
23
23
  * @param {Object} owner of the endpoint (service)
24
24
  * @param {Object} options
25
- * @param {function(Endpoint,Endpoint):void} [options.didConnect] called after receiver is present
26
- * @param {Interceptor[]|string[]} [options.interceptors] interceptors
25
+ * @param {function(Endpoint,Endpoint):void|undefined} [options.didConnect] called after receiver is present
26
+ * @param {Interceptor[]|string[]|undefined} [options.interceptors] interceptors
27
27
  */
28
28
  constructor(name: string, owner: any, options: {
29
- didConnect?: (arg0: Endpoint, arg1: Endpoint) => void;
30
- interceptors?: Interceptor[] | string[];
29
+ didConnect?: (arg0: Endpoint, arg1: Endpoint) => void | undefined;
30
+ interceptors?: Interceptor[] | string[] | undefined;
31
31
  });
32
32
  name: string;
33
33
  owner: any;
@@ -4,9 +4,9 @@
4
4
  * Back connections to any further endpoints will not be established
5
5
  * @param {string} name endpoint name
6
6
  * @param {Object} owner of the endpoint (service)
7
- * @param {Object} options
8
- * @param {Endpoint} [options.connected] where te requests are delivered to
9
- * @param {Function} [options.didConnect] called after receiver is present
7
+ * @param {Object|undefined} options
8
+ * @param {Endpoint|undefined} [options.connected] where te requests are delivered to
9
+ * @param {Function|undefined} [options.didConnect] called after receiver is present
10
10
  */
11
11
  export class SendEndpoint extends ReceivableEndpoint {
12
12
  getConnectionState(other: any): any;