@kronos-integration/endpoint 11.0.4 → 11.0.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/README.md +36 -30
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,68 +37,70 @@ Named communication (end)-points inside of kronos
|
|
|
37
37
|
* [isOut](#isout)
|
|
38
38
|
* [direction](#direction)
|
|
39
39
|
* [jsonAttributes](#jsonattributes)
|
|
40
|
+
* [toJSONWithOptions](#tojsonwithoptions)
|
|
41
|
+
* [Parameters](#parameters-2)
|
|
40
42
|
* [hasInterceptors](#hasinterceptors)
|
|
41
43
|
* [connectable](#connectable)
|
|
42
|
-
* [Parameters](#parameters-
|
|
44
|
+
* [Parameters](#parameters-3)
|
|
43
45
|
* [hasConnections](#hasconnections)
|
|
44
46
|
* [isConnected](#isconnected)
|
|
45
|
-
* [Parameters](#parameters-3)
|
|
46
|
-
* [openConnection](#openconnection)
|
|
47
47
|
* [Parameters](#parameters-4)
|
|
48
|
-
* [
|
|
48
|
+
* [openConnection](#openconnection)
|
|
49
49
|
* [Parameters](#parameters-5)
|
|
50
|
+
* [closeConnection](#closeconnection)
|
|
51
|
+
* [Parameters](#parameters-6)
|
|
50
52
|
* [openConnections](#openconnections)
|
|
51
53
|
* [closeConnections](#closeconnections)
|
|
52
54
|
* [connections](#connections)
|
|
53
55
|
* [addConnection](#addconnection)
|
|
54
|
-
* [Parameters](#parameters-6)
|
|
55
|
-
* [removeConnection](#removeconnection)
|
|
56
56
|
* [Parameters](#parameters-7)
|
|
57
|
-
* [
|
|
57
|
+
* [removeConnection](#removeconnection)
|
|
58
58
|
* [Parameters](#parameters-8)
|
|
59
|
-
* [
|
|
59
|
+
* [getConnectionState](#getconnectionstate)
|
|
60
60
|
* [Parameters](#parameters-9)
|
|
61
|
-
* [
|
|
61
|
+
* [setConnectionState](#setconnectionstate)
|
|
62
62
|
* [Parameters](#parameters-10)
|
|
63
|
+
* [didConnect](#didconnect)
|
|
64
|
+
* [Parameters](#parameters-11)
|
|
63
65
|
* [isEndpoint](#isendpoint)
|
|
64
|
-
* [Parameters](#parameters-11)
|
|
65
|
-
* [instanciateInterceptors](#instanciateinterceptors)
|
|
66
66
|
* [Parameters](#parameters-12)
|
|
67
|
-
* [
|
|
67
|
+
* [instanciateInterceptors](#instanciateinterceptors)
|
|
68
68
|
* [Parameters](#parameters-13)
|
|
69
|
+
* [MultiConnectionEndpoint](#multiconnectionendpoint)
|
|
70
|
+
* [Parameters](#parameters-14)
|
|
69
71
|
* [getConnectionState](#getconnectionstate-1)
|
|
70
|
-
* [Parameters](#parameters-14)
|
|
71
|
-
* [setConnectionState](#setconnectionstate-1)
|
|
72
72
|
* [Parameters](#parameters-15)
|
|
73
|
-
* [
|
|
73
|
+
* [setConnectionState](#setconnectionstate-1)
|
|
74
74
|
* [Parameters](#parameters-16)
|
|
75
|
-
* [
|
|
75
|
+
* [removeConnection](#removeconnection-1)
|
|
76
76
|
* [Parameters](#parameters-17)
|
|
77
|
+
* [isConnected](#isconnected-1)
|
|
78
|
+
* [Parameters](#parameters-18)
|
|
77
79
|
* [connections](#connections-1)
|
|
78
80
|
* [connections](#connections-2)
|
|
79
81
|
* [MultiSendEndpoint](#multisendendpoint)
|
|
80
|
-
* [Parameters](#parameters-
|
|
82
|
+
* [Parameters](#parameters-19)
|
|
81
83
|
* [isOut](#isout-1)
|
|
82
84
|
* [ReceivableEndpoint](#receivableendpoint)
|
|
83
|
-
* [Parameters](#parameters-
|
|
85
|
+
* [Parameters](#parameters-20)
|
|
84
86
|
* [isIn](#isin-2)
|
|
85
87
|
* [ReceiveEndpointDefault](#receiveendpointdefault)
|
|
86
88
|
* [isDefault](#isdefault-1)
|
|
87
89
|
* [ReceiveEndpointSelfConnectedDefault](#receiveendpointselfconnecteddefault)
|
|
88
90
|
* [removeConnection](#removeconnection-2)
|
|
89
|
-
* [Parameters](#parameters-
|
|
91
|
+
* [Parameters](#parameters-21)
|
|
90
92
|
* [ReceiveEndpoint](#receiveendpoint)
|
|
91
|
-
* [Parameters](#parameters-
|
|
93
|
+
* [Parameters](#parameters-22)
|
|
92
94
|
* [isIn](#isin-3)
|
|
93
95
|
* [SendEndpointDefault](#sendendpointdefault)
|
|
94
96
|
* [isDefault](#isdefault-2)
|
|
95
97
|
* [SendEndpoint](#sendendpoint)
|
|
96
|
-
* [Parameters](#parameters-
|
|
98
|
+
* [Parameters](#parameters-23)
|
|
97
99
|
* [isOut](#isout-2)
|
|
98
100
|
* [addConnection](#addconnection-1)
|
|
99
|
-
* [Parameters](#parameters-23)
|
|
100
|
-
* [removeConnection](#removeconnection-3)
|
|
101
101
|
* [Parameters](#parameters-24)
|
|
102
|
+
* [removeConnection](#removeconnection-3)
|
|
103
|
+
* [Parameters](#parameters-25)
|
|
102
104
|
* [SendReceiveEndpoint](#sendreceiveendpoint)
|
|
103
105
|
* [isIn](#isin-4)
|
|
104
106
|
|
|
@@ -173,6 +175,8 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
173
175
|
|
|
174
176
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{includeRuntimeInfo:true}`)
|
|
175
177
|
|
|
178
|
+
* `options.includeRuntimeInfo` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** 
|
|
179
|
+
|
|
176
180
|
### isIn
|
|
177
181
|
|
|
178
182
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** false
|
|
@@ -191,6 +195,14 @@ Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
191
195
|
|
|
192
196
|
Additional attributes to present in json output.
|
|
193
197
|
|
|
198
|
+
### toJSONWithOptions
|
|
199
|
+
|
|
200
|
+
#### Parameters
|
|
201
|
+
|
|
202
|
+
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** 
|
|
203
|
+
|
|
204
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
205
|
+
|
|
194
206
|
### hasInterceptors
|
|
195
207
|
|
|
196
208
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if there is at least one interceptor assigned
|
|
@@ -405,9 +417,6 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
405
417
|
* `owner` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** of the endpoint (service)
|
|
406
418
|
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
407
419
|
|
|
408
|
-
* `options.receive` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** reciever function
|
|
409
|
-
* `options.receivingInterceptors` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** 
|
|
410
|
-
|
|
411
420
|
### isIn
|
|
412
421
|
|
|
413
422
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true is receive function is present
|
|
@@ -486,10 +495,7 @@ Back connections to any further endpoints will not be established
|
|
|
486
495
|
|
|
487
496
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** endpoint name
|
|
488
497
|
* `owner` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** of the endpoint (service)
|
|
489
|
-
* `options` **
|
|
490
|
-
|
|
491
|
-
* `options.connected` **([Endpoint](#endpoint) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** where te requests are delivered to
|
|
492
|
-
* `options.didConnect` **([Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** called after receiver is present
|
|
498
|
+
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
493
499
|
|
|
494
500
|
### isOut
|
|
495
501
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/endpoint",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.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": "^13.0.
|
|
42
|
+
"@kronos-integration/interceptor": "^13.0.6"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"ava": "^6.4.1",
|