syntex-automation
Advanced tools
Comparing version 1.0.1-b3 to 1.0.1
21
main.js
@@ -1,8 +0,8 @@ | ||
const emitter = require('./emitter'); | ||
const EventEmitter = require('events'); | ||
class AutomationSystem | ||
class AutomationSystem extends EventEmitter | ||
{ | ||
constructor() | ||
{ | ||
super(); | ||
} | ||
@@ -12,8 +12,3 @@ | ||
{ | ||
emitter.on(stream, (reciever, values) => { | ||
console.log('Emitter Received', values); | ||
callback(reciever, values); | ||
}); | ||
super.on(stream, (reciever, values) => callback(reciever, values)); | ||
} | ||
@@ -23,6 +18,10 @@ | ||
{ | ||
emitter.emit(stream, reciever, values); | ||
super.emit(stream, reciever, values); | ||
} | ||
} | ||
module.exports = new AutomationSystem(); | ||
const automation = new AutomationSystem(); | ||
automation.setMaxListeners(256); | ||
module.exports = automation; |
{ | ||
"name": "syntex-automation", | ||
"version": "1.0.1-b3", | ||
"version": "1.0.1", | ||
"description": "An automation system for your smart home", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
1228
3
18