@toa.io/core 0.20.0 → 0.22.0
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 +5 -5
- package/types/extensions.d.ts +13 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Toa Core",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@rsql/parser": "1.2.4",
|
|
27
|
-
"@toa.io/console": "0.
|
|
28
|
-
"@toa.io/generic": "0.
|
|
29
|
-
"@toa.io/yaml": "0.
|
|
27
|
+
"@toa.io/console": "0.22.0",
|
|
28
|
+
"@toa.io/generic": "0.22.0",
|
|
29
|
+
"@toa.io/yaml": "0.22.0",
|
|
30
30
|
"clone-deep": "4.0.1"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "c463348c8eb54a43f7755ec8aeba9acafb56d53b"
|
|
33
33
|
}
|
package/types/extensions.d.ts
CHANGED
|
@@ -4,33 +4,26 @@ import * as _context from './context'
|
|
|
4
4
|
import * as _storages from './storages'
|
|
5
5
|
import * as _bindings from './bindings'
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
export interface Factory{
|
|
8
|
+
tenant? (locator: _core.Locator, manifest: object): _core.Connector
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
tenant? (locator: _core.Locator, manifest: object): _core.Connector
|
|
10
|
+
aspect? (locator: _core.Locator, manifest: object | null): Aspect | Aspect[]
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
service? (name?: string): _core.Connector | null
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
component? (component: _component.Component): _component.Component
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
context? (context: _context.Context): _context.Context
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
storage? (storage: _storages.Storage): _storages.Storage
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
emitter? (emitter: _bindings.Emitter, label: string): _bindings.Emitter
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
receiver? (receiver: _core.Receiver, locator: _core.Locator): _core.Receiver
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface Aspect extends _core.Connector {
|
|
28
|
-
name: string
|
|
22
|
+
receiver? (receiver: _core.Receiver, locator: _core.Locator): _core.Receiver
|
|
23
|
+
}
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
export interface Aspect extends _core.Connector{
|
|
26
|
+
name: string
|
|
32
27
|
|
|
28
|
+
invoke (...args: any[]): any
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
export type Factory = toa.core.extensions.Factory
|
|
36
|
-
export type Aspect = toa.core.extensions.Aspect
|