@@ -17,7 +17,7 @@ async function main() {
17
17
const y = sb . input ( { type : "string" } ) ;
18
18
const z = sb . input ( { type : "object" , properties : { } } ) ;
19
19
20
- const a = new Box ( { value : { a : x , z : z , liam : [ x , x , x ] } } , { id : "A" } ) ;
20
+ const a = new Box ( { value : { a : x , z : z , array : [ x , x , x ] } } , { id : "A" } ) ;
21
21
const b = new Box (
22
22
{ value : { b : sb . interpolate `x=${ a . future . value . get ( "a" ) } , y=${ y } ` } } ,
23
23
{ id : "B" } ,
@@ -56,13 +56,13 @@ async function main() {
56
56
57
57
// using the module from publication/module id
58
58
// const mod = new Module({
59
- // id : publication.id,
59
+ // module_id : publication.id,
60
60
// inputs: { y: "yyy", z: { arr: ["123"] } },
61
61
// });
62
62
63
63
// using the module from publication/module uri
64
64
// const mod = new Module({
65
- // uri : publication.uri,
65
+ // module_uri : publication.uri,
66
66
// inputs: { y: "yyy", z: { arr: ["123"] } },
67
67
// });
68
68
@@ -77,6 +77,11 @@ async function main() {
77
77
) ;
78
78
79
79
const res = await substrate . run ( mod , c ) ;
80
- console . log ( "res" , JSON . stringify ( res . json , null , 2 ) ) ;
80
+ console . log ( JSON . stringify ( res . json , null , 2 ) ) ;
81
+
82
+ // const stream = await substrate.stream(mod, c);
83
+ // for await (let message of stream) {
84
+ // console.log(message)
85
+ // }
81
86
}
82
87
main ( ) ;
0 commit comments