File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jderobot-commsmanager" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"main" : " dist/main.js" ,
5
5
"typings" : " dist/index.d.ts" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export default class CommsManager {
58
58
this . ws . onclose = ( e ) => {
59
59
if ( e . wasClean ) {
60
60
console . log (
61
- `Connection with ${ address } closed, all suscribers cleared` ,
61
+ `Connection with ${ address } closed, all suscribers cleared`
62
62
) ;
63
63
} else {
64
64
console . log ( `Connection with ${ address } interrupted` ) ;
@@ -105,7 +105,7 @@ export default class CommsManager {
105
105
for ( let i = 0 , length = events . length ; i < length ; i ++ ) {
106
106
this . observers [ events [ i ] ] = this . observers [ events [ i ] ] || [ ] ;
107
107
this . observers [ events [ i ] ] . splice (
108
- this . observers [ events [ i ] ] . indexOf ( callback ) ,
108
+ this . observers [ events [ i ] ] . indexOf ( callback )
109
109
) ;
110
110
}
111
111
} ;
@@ -181,8 +181,12 @@ export default class CommsManager {
181
181
} ) ;
182
182
}
183
183
184
- public run ( entrypoint : string , code : string ) {
185
- return this . send ( "run_application" , { entrypoint : entrypoint , code : code } ) ;
184
+ public run ( entrypoint : string , to_lint : string [ ] , code : string ) {
185
+ return this . send ( "run_application" , {
186
+ entrypoint : entrypoint ,
187
+ linter : to_lint ,
188
+ code : code ,
189
+ } ) ;
186
190
}
187
191
188
192
public stop ( ) {
You can’t perform that action at this time.
0 commit comments