syntex-automation
Advanced tools
Comparing version 1.0.2-b3 to 1.0.2-b4
@@ -38,3 +38,3 @@ //let TypeManager = require('./type-manager'), AutomationSystem = require('syntex-automation'); | ||
this.storage.load('automation', (err, obj) => { | ||
storage.load('automation', (err, obj) => { | ||
@@ -41,0 +41,0 @@ if(!obj || err) |
18
main.js
const EventEmitter = require('events'), request = require('request'); | ||
class AutomationSystem extends EventEmitter | ||
let LogikEngine = require('./automation'); | ||
module.exports = class AutomationSystem extends EventEmitter | ||
{ | ||
constructor() | ||
constructor(logger, storagePath, dataManager) | ||
{ | ||
super(); | ||
super.setMaxListeners(256); | ||
this.LogikEngine = new LogikEngine(logger, storagePath, dataManager); | ||
} | ||
@@ -42,8 +48,2 @@ | ||
} | ||
} | ||
const automation = new AutomationSystem(); | ||
automation.setMaxListeners(256); | ||
module.exports = automation; | ||
} |
{ | ||
"name": "syntex-automation", | ||
"version": "1.0.2-b3", | ||
"version": "1.0.2-b4", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9776
0