@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 CHANGED
@@ -1,8 +1,5 @@
1
- [![npm](https://img.shields.io/npm/v/@kronos-integration/endpoint.svg)](https://www.npmjs.com/package/@kronos-integration/endpoint)
2
1
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
3
2
  [![Typed with TypeScript](https://flat.badgen.net/badge/icon/Typed?icon=typescript\&label\&labelColor=blue\&color=555555)](https://typescriptlang.org)
4
- [![bundlejs](https://deno.bundlejs.com/?q=@kronos-integration/endpoint\&badge=detailed)](https://bundlejs.com/?q=@kronos-integration/endpoint)
5
- [![downloads](http://img.shields.io/npm/dm/@kronos-integration/endpoint.svg?style=flat-square)](https://npmjs.org/package/@kronos-integration/endpoint)
6
3
  [![GitHub Issues](https://img.shields.io/github/issues/Kronos-Integration/endpoint.svg?style=flat-square)](https://github.com/Kronos-Integration/endpoint/issues)
7
4
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FKronos-Integration%2Fendpoint%2Fbadge\&style=flat)](https://actions-badge.atrox.dev/Kronos-Integration/endpoint/goto)
8
5
  [![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](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
- * [removeConnection](#removeconnection-3)
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)>**&#x20;
259
258
  #### Parameters
260
259
 
261
260
  * `connection` **[Endpoint](#endpoint)**&#x20;
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)**&#x20;
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
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)**&#x20;
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.4",
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": "npm run prepare:typescript",
32
- "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
33
- "test": "npm run test:ava",
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": "npm run lint:docs && npm run lint:typescript",
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 -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
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.2",
46
- "c8": "^9.1.0",
45
+ "ava": "^6.1.3",
46
+ "c8": "^10.1.2",
47
47
  "documentation": "^14.0.3",
48
- "semantic-release": "^23.0.8",
49
- "typescript": "^5.4.5"
48
+ "semantic-release": "^24.1.2",
49
+ "typescript": "^5.7.0-beta"
50
50
  },
51
51
  "engines": {
52
- "node": ">=20.12.2"
52
+ "node": ">=22.11.0"
53
53
  },
54
54
  "repository": {
55
55
  "type": "git",
package/src/endpoint.mjs CHANGED
@@ -7,7 +7,6 @@ import { Interceptor } from "@kronos-integration/interceptor";
7
7
  /**
8
8
  * Connection endpoint.
9
9
  */
10
-
11
10
  export class Endpoint {
12
11
  /**
13
12
  * @param {string} name endpoint name
@@ -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, undefined>;
10
+ connections(): Generator<Endpoint, void, unknown>;
11
11
  #private;
12
12
  }
13
13
  import { ReceivableEndpoint } from "./receivable-endpoint.mjs";