Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

syntex-automation

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syntex-automation - npm Package Compare versions

Comparing version 1.1.0-b8 to 1.1.0-b9

22

main.js

@@ -12,3 +12,3 @@ let LogikEngine = require('./automation'), RouteManager = require('./route-manager');

super.setMaxListeners(512);
this.pluginName = platform.pluginName;

@@ -19,15 +19,23 @@ this.logger = platform.logger;

this.LogikEngine = new LogikEngine(platform.logger, platform.files, platform, this);
}
}
setInputStream(stream, callback)
setInputStream(stream, sender, callback)
{
super.on(stream, (reciever, values) => callback(reciever, values));
super.on(stream, (destination, state) => {
if(sender.id == destination.id && sender.letters == destination.letters)
{
callback(state);
this.logger.debug('<<< ' + stream + ' [' + JSON.stringify(destination) + '] ' + JSON.stringify(state));
}
});
}
setOutputStream(stream, reciever, values)
setOutputStream(stream, destination, state)
{
super.emit(stream, reciever, values);
super.emit(stream, destination, state);
this.logger.debug('>>> ' + stream + ' ' + JSON.stringify(reciever) + ' ' + JSON.stringify(values));
this.logger.debug('>>> ' + stream + ' [' + JSON.stringify(destination) + '] ' + JSON.stringify(state));
}
}
{
"name": "syntex-automation",
"version": "1.1.0-b8",
"version": "1.1.0-b9",
"description": "An automation system for your smart home",

@@ -5,0 +5,0 @@ "main": "main.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc