@kronos-integration/endpoint 10.1.3 → 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 +2 -2
- package/src/endpoint.mjs +2 -2
- package/src/send-endpoint.mjs +3 -3
- package/types/endpoint.d.mts +4 -4
- package/types/send-endpoint.d.mts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/endpoint",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.5",
|
|
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.1.
|
|
42
|
+
"@kronos-integration/interceptor": "^12.1.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"ava": "^6.4.1",
|
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;
|
package/src/send-endpoint.mjs
CHANGED
|
@@ -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;
|
package/types/endpoint.d.mts
CHANGED
|
@@ -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;
|