@@ -17,7 +17,7 @@ async function main() {
1717 const y = sb . input ( { type : "string" } ) ;
1818 const z = sb . input ( { type : "object" , properties : { } } ) ;
1919
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" } ) ;
2121 const b = new Box (
2222 { value : { b : sb . interpolate `x=${ a . future . value . get ( "a" ) } , y=${ y } ` } } ,
2323 { id : "B" } ,
@@ -56,13 +56,13 @@ async function main() {
5656
5757 // using the module from publication/module id
5858 // const mod = new Module({
59- // id : publication.id,
59+ // module_id : publication.id,
6060 // inputs: { y: "yyy", z: { arr: ["123"] } },
6161 // });
6262
6363 // using the module from publication/module uri
6464 // const mod = new Module({
65- // uri : publication.uri,
65+ // module_uri : publication.uri,
6666 // inputs: { y: "yyy", z: { arr: ["123"] } },
6767 // });
6868
@@ -77,6 +77,11 @@ async function main() {
7777 ) ;
7878
7979 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+ // }
8186}
8287main ( ) ;
0 commit comments