File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @codebolt/codeboltjs" ,
3- "version" : " 1.1.57 " ,
3+ "version" : " 1.1.58 " ,
44 "description" : " " ,
55 "keywords" : [],
66 "author" : " " ,
Original file line number Diff line number Diff line change @@ -30,6 +30,21 @@ const cbproject = {
3030 } ) ;
3131 } ) ;
3232 } ,
33+ getRepoMap : ( message : any ) : Promise < GetProjectPathResponse > => {
34+ return new Promise ( ( resolve , reject ) => {
35+ cbws . getWebsocket . send ( JSON . stringify ( {
36+ "type" : "settingEvent" ,
37+ "action" : "getRepoMap" ,
38+ message
39+ } ) ) ;
40+ cbws . getWebsocket . on ( 'message' , ( data : string ) => {
41+ const response = JSON . parse ( data ) ;
42+ if ( response . type === "getRepoMapResponse" ) {
43+ resolve ( response ) ;
44+ }
45+ } ) ;
46+ } ) ;
47+ } ,
3348 runProject : ( ) => {
3449 cbws . getWebsocket . send ( JSON . stringify ( {
3550 "type" : "runProject"
You can’t perform that action at this time.
0 commit comments