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 1
1
{
2
2
"name" : " @codebolt/codeboltjs" ,
3
- "version" : " 1.1.57 " ,
3
+ "version" : " 1.1.58 " ,
4
4
"description" : " " ,
5
5
"keywords" : [],
6
6
"author" : " " ,
Original file line number Diff line number Diff line change @@ -30,6 +30,21 @@ const cbproject = {
30
30
} ) ;
31
31
} ) ;
32
32
} ,
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
+ } ,
33
48
runProject : ( ) => {
34
49
cbws . getWebsocket . send ( JSON . stringify ( {
35
50
"type" : "runProject"
You can’t perform that action at this time.
0 commit comments