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 11{
22 "name" : " jderobot-commsmanager" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.0.3 " ,
44 "main" : " dist/main.js" ,
55 "typings" : " dist/index.d.ts" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export default class CommsManager {
5858 this . ws . onclose = ( e ) => {
5959 if ( e . wasClean ) {
6060 console . log (
61- `Connection with ${ address } closed, all suscribers cleared` ,
61+ `Connection with ${ address } closed, all suscribers cleared`
6262 ) ;
6363 } else {
6464 console . log ( `Connection with ${ address } interrupted` ) ;
@@ -105,7 +105,7 @@ export default class CommsManager {
105105 for ( let i = 0 , length = events . length ; i < length ; i ++ ) {
106106 this . observers [ events [ i ] ] = this . observers [ events [ i ] ] || [ ] ;
107107 this . observers [ events [ i ] ] . splice (
108- this . observers [ events [ i ] ] . indexOf ( callback ) ,
108+ this . observers [ events [ i ] ] . indexOf ( callback )
109109 ) ;
110110 }
111111 } ;
@@ -181,8 +181,12 @@ export default class CommsManager {
181181 } ) ;
182182 }
183183
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+ } ) ;
186190 }
187191
188192 public stop ( ) {
You can’t perform that action at this time.
0 commit comments