Skip to content

Commit 1f7ac7b

Browse files
authored
Merge pull request #4 from JdeRobot/global-linter
Add linter in run
2 parents 7fb0255 + c670c26 commit 1f7ac7b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

src/components/CommsManager.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)