@toa.io/core 1.0.0-alpha.224 → 1.0.0-alpha.226

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/types/bridges.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/core",
3
- "version": "1.0.0-alpha.224",
3
+ "version": "1.0.0-alpha.226",
4
4
  "description": "Toa Core",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -21,11 +21,11 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@rsql/parser": "1.2.4",
24
- "@toa.io/generic": "1.0.0-alpha.224",
25
- "@toa.io/yaml": "1.0.0-alpha.224",
24
+ "@toa.io/generic": "1.0.0-alpha.225",
25
+ "@toa.io/yaml": "1.0.0-alpha.225",
26
26
  "error-value": "0.3.0",
27
27
  "openspan": "1.0.0-alpha.173",
28
28
  "uuid": "11.1.1"
29
29
  },
30
- "gitHead": "f5f83f5003901b1500352794ba7eafa372dba244"
30
+ "gitHead": "a26248f17f4e1056af3df11a2fe91a067267bbd4"
31
31
  }
package/types/bridges.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { Request, Reply } from './request'
2
2
  import type { Context } from './context'
3
+ import type { Connector } from './connector'
3
4
 
4
5
  export interface Algorithm {
5
6
  mount: (context?: Context) => Promise<void>
@@ -27,4 +28,6 @@ export interface Factory {
27
28
  event?: (path: string, label: string) => Event
28
29
 
29
30
  receiver?: (path: string, label: string) => Receiver
31
+
32
+ rc?: (path: string, context: Context) => Promise<Connector>
30
33
  }