Reconfigure module
This commit is contained in:
parent
9e543989b8
commit
24470fe6f2
@ -1,4 +1,6 @@
|
|||||||
export class State {
|
module.exports = {
|
||||||
|
// State class
|
||||||
|
State: class State {
|
||||||
constructor(config) {
|
constructor(config) {
|
||||||
this.igniter = {
|
this.igniter = {
|
||||||
on: false,
|
on: false,
|
||||||
@ -38,9 +40,9 @@ export class State {
|
|||||||
};
|
};
|
||||||
console.log(`State initialized.`)
|
console.log(`State initialized.`)
|
||||||
};
|
};
|
||||||
};
|
},
|
||||||
|
// Communicator class
|
||||||
export class Communicator {
|
Communicator: class Communicator {
|
||||||
constructor(state) {
|
constructor(state) {
|
||||||
this.publisher = state.publisher;
|
this.publisher = state.publisher;
|
||||||
return this;
|
return this;
|
||||||
@ -91,3 +93,4 @@ export class Communicator {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user