@toa.io/bridges.node 1.0.0-alpha.0 → 1.0.0-alpha.10
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/algorithms.d.ts +6 -6
- package/types/context.d.ts +3 -3
- package/types/define.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/bridges.node",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.10",
|
|
4
4
|
"description": "Toa Node Bridge (inproc)",
|
|
5
5
|
"homepage": "https://toa.io",
|
|
6
6
|
"author": {
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
30
|
-
"@toa.io/filesystem": "1.0.0-alpha.
|
|
31
|
-
"@toa.io/generic": "1.0.0-alpha.
|
|
29
|
+
"@toa.io/core": "1.0.0-alpha.10",
|
|
30
|
+
"@toa.io/filesystem": "1.0.0-alpha.10",
|
|
31
|
+
"@toa.io/generic": "1.0.0-alpha.10",
|
|
32
32
|
"fast-glob": "3.2.7",
|
|
33
33
|
"matchacho": "0.3.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"clone-deep": "4.0.1"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "472d582389fbfbfe6804cf01683276ce2cc45bf2"
|
|
39
39
|
}
|
package/types/algorithms.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { bridges } from '@toa.io/core
|
|
1
|
+
import { bridges } from '@toa.io/core'
|
|
2
2
|
import * as _context from './context'
|
|
3
|
-
import * as _core from '@toa.io/core
|
|
3
|
+
import * as _core from '@toa.io/core'
|
|
4
4
|
|
|
5
|
-
declare namespace toa.node
|
|
5
|
+
declare namespace toa.node{
|
|
6
6
|
|
|
7
|
-
namespace algorithms
|
|
7
|
+
namespace algorithms{
|
|
8
8
|
|
|
9
9
|
type Constructor = () => bridges.Algorithm
|
|
10
10
|
|
|
11
|
-
interface Factory
|
|
11
|
+
interface Factory{
|
|
12
12
|
create: Constructor
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
type func = (input?: any, scope?: object | object[], context?: _context.Context) => Promise<_core.Reply>
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
interface Algorithm
|
|
18
|
+
interface Algorithm{
|
|
19
19
|
mount? (context: _context.Context): Promise<void> | void
|
|
20
20
|
|
|
21
21
|
execute (input: any, scope: object | object[]): Promise<any>
|
package/types/context.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Underlay } from '@toa.io/generic/types'
|
|
2
|
-
import { Connector } from '@toa.io/core
|
|
2
|
+
import { Connector } from '@toa.io/core'
|
|
3
3
|
import { Aspect } from '@toa.io/core/types/extensions'
|
|
4
4
|
|
|
5
|
-
declare namespace toa.node
|
|
5
|
+
declare namespace toa.node{
|
|
6
6
|
|
|
7
|
-
interface Context extends Connector
|
|
7
|
+
interface Context extends Connector{
|
|
8
8
|
local: Underlay
|
|
9
9
|
remote: Underlay
|
|
10
10
|
aspects: Record<string, Function>
|
package/types/define.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Operation } from '@toa.io/norm/types'
|
|
2
2
|
import { Node, Statement } from '@babel/types'
|
|
3
|
-
import * as _bridges from '@toa.io/core/types/bridges'
|
|
4
3
|
import * as _context from './context'
|
|
5
4
|
import * as _algorithm from './algorithms'
|
|
6
5
|
|
|
7
|
-
declare namespace toa.node.define
|
|
6
|
+
declare namespace toa.node.define{
|
|
8
7
|
|
|
9
|
-
namespace algorithms
|
|
8
|
+
namespace algorithms{
|
|
10
9
|
type Definition = Partial<Operation>
|
|
11
10
|
|
|
12
11
|
type List = Record<string, Definition>
|