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.0.0 to 1.0.1-b2

26

main.js

@@ -1,28 +0,26 @@

const Emitter = require('./emitter');
const emitter = require('./emitter');
module.exports = class AutomationSystem
class AutomationSystem
{
constructor()
{
this.emitter = new Emitter();
console.log('STARTED');
this.addInputStream('DemoEvent');
setTimeout(() => this.addOutputStream('DemoEvent', { hallo : true, welt : 'Hey' }), 10000);
}
addInputStream(key)
setInputStream(stream, callback)
{
this.emitter.on(key, (values) => {
emitter.on(stream, (reciever, values) => {
console.log('Emitter Received', values);
callback(reciever, values);
});
}
addOutputStream(key, values)
setOutputStream(stream, reciever, values)
{
emitter.emit(key, values);
emitter.emit(stream, reciever, values);
}
}
}
module.exports = new AutomationSystem();
{
"name": "syntex-automation",
"version": "1.0.0",
"version": "1.0.1-b2",
"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