@kronos-integration/endpoint 9.5.4 → 9.5.6
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 +14 -5
- package/package.json +11 -11
- package/src/endpoint.mjs +0 -1
- package/types/endpoint.d.mts +1 -1
- package/types/multi-connection-endpoint.d.mts +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
[](https://www.npmjs.com/package/@kronos-integration/endpoint)
|
|
2
1
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
3
2
|
[](https://typescriptlang.org)
|
|
4
|
-
[](https://bundlejs.com/?q=@kronos-integration/endpoint)
|
|
5
|
-
[](https://npmjs.org/package/@kronos-integration/endpoint)
|
|
6
3
|
[](https://github.com/Kronos-Integration/endpoint/issues)
|
|
7
4
|
[](https://actions-badge.atrox.dev/Kronos-Integration/endpoint/goto)
|
|
8
5
|
[](https://github.com/prettier/prettier)
|
|
@@ -101,8 +98,10 @@ Named communication (end)-points inside of kronos
|
|
|
101
98
|
* [SendEndpoint](#sendendpoint)
|
|
102
99
|
* [Parameters](#parameters-23)
|
|
103
100
|
* [isOut](#isout-2)
|
|
104
|
-
* [
|
|
101
|
+
* [addConnection](#addconnection-1)
|
|
105
102
|
* [Parameters](#parameters-24)
|
|
103
|
+
* [removeConnection](#removeconnection-3)
|
|
104
|
+
* [Parameters](#parameters-25)
|
|
106
105
|
* [SendReceiveEndpoint](#sendreceiveendpoint)
|
|
107
106
|
* [isIn](#isin-4)
|
|
108
107
|
|
|
@@ -259,6 +258,7 @@ Returns **Iterable<[Endpoint](#endpoint)>** 
|
|
|
259
258
|
#### Parameters
|
|
260
259
|
|
|
261
260
|
* `connection` **[Endpoint](#endpoint)** 
|
|
261
|
+
* `backpointer` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** true if this is the call form back call from the other side
|
|
262
262
|
|
|
263
263
|
### removeConnection
|
|
264
264
|
|
|
@@ -355,7 +355,7 @@ Actually stop the communication.
|
|
|
355
355
|
#### Parameters
|
|
356
356
|
|
|
357
357
|
* `other` **[Endpoint](#endpoint)** 
|
|
358
|
-
* `backpointer` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
358
|
+
* `backpointer` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)??** true if this is the call form back call from the other side
|
|
359
359
|
|
|
360
360
|
### isConnected
|
|
361
361
|
|
|
@@ -514,6 +514,15 @@ We are always *out*
|
|
|
514
514
|
|
|
515
515
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** always true
|
|
516
516
|
|
|
517
|
+
### addConnection
|
|
518
|
+
|
|
519
|
+
Add a connection.
|
|
520
|
+
|
|
521
|
+
#### Parameters
|
|
522
|
+
|
|
523
|
+
* `other` **[Endpoint](#endpoint)** 
|
|
524
|
+
* `backpointer` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** true if this is the call form back call from the other side
|
|
525
|
+
|
|
517
526
|
### removeConnection
|
|
518
527
|
|
|
519
528
|
Actually stop the communication.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/endpoint",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -28,28 +28,28 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "BSD-2-Clause",
|
|
30
30
|
"scripts": {
|
|
31
|
-
"prepare": "
|
|
32
|
-
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule
|
|
33
|
-
"test": "
|
|
31
|
+
"prepare": "node --run prepare:typescript",
|
|
32
|
+
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target es2024 --lib es2024 -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
|
|
33
|
+
"test": "node --run test:ava",
|
|
34
34
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
35
35
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
36
36
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
37
|
-
"lint": "
|
|
37
|
+
"lint": "node --run lint:docs && node --run lint:typescript",
|
|
38
38
|
"lint:docs": "documentation lint ./src/**/*.mjs",
|
|
39
|
-
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule
|
|
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
42
|
"@kronos-integration/interceptor": "^10.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"ava": "^6.1.
|
|
46
|
-
"c8": "^
|
|
45
|
+
"ava": "^6.1.3",
|
|
46
|
+
"c8": "^10.1.2",
|
|
47
47
|
"documentation": "^14.0.3",
|
|
48
|
-
"semantic-release": "^
|
|
49
|
-
"typescript": "^5.
|
|
48
|
+
"semantic-release": "^24.1.2",
|
|
49
|
+
"typescript": "^5.7.0-beta"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
52
|
+
"node": ">=22.11.0"
|
|
53
53
|
},
|
|
54
54
|
"repository": {
|
|
55
55
|
"type": "git",
|
package/src/endpoint.mjs
CHANGED
package/types/endpoint.d.mts
CHANGED
|
@@ -79,7 +79,7 @@ export class Endpoint {
|
|
|
79
79
|
* Deliver data flow direction.
|
|
80
80
|
* @return {string|undefined} delivers data flow direction 'in', 'out', 'inout' or undefined
|
|
81
81
|
*/
|
|
82
|
-
get direction(): string;
|
|
82
|
+
get direction(): string | undefined;
|
|
83
83
|
toJSON(): {
|
|
84
84
|
in: boolean;
|
|
85
85
|
out: boolean;
|
|
@@ -7,7 +7,7 @@ export class MultiConnectionEndpoint extends ReceivableEndpoint {
|
|
|
7
7
|
/**
|
|
8
8
|
* All connections
|
|
9
9
|
*/
|
|
10
|
-
connections(): Generator<Endpoint, void,
|
|
10
|
+
connections(): Generator<Endpoint, void, unknown>;
|
|
11
11
|
#private;
|
|
12
12
|
}
|
|
13
13
|
import { ReceivableEndpoint } from "./receivable-endpoint.mjs";
|