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.1 to 1.0.2-b1

27

main.js

@@ -1,2 +0,2 @@

const EventEmitter = require('events');
const EventEmitter = require('events'), request = require('request');

@@ -17,4 +17,27 @@ class AutomationSystem extends EventEmitter

{
super.emit(stream, reciever, values);
if(!super.emit(stream, reciever, values))
{
}
sendToAutomationServer(values);
}
sendToAutomationServer(values)
{
var url = 'http://localhost:1777/update-automation', first = true;
for(const value in Object.keys(values))
{
url += (first ? '?' : '&') + value + '=' + values[value];
}
var theRequest = {
method : 'GET',
url : url,
timeout : 10000
};
request(theRequest, () => {});
}
}

@@ -21,0 +44,0 @@

6

package.json
{
"name": "syntex-automation",
"version": "1.0.1",
"version": "1.0.2-b1",
"description": "An automation system for your smart home",

@@ -11,3 +11,5 @@ "main": "main.js",

},
"dependencies": {},
"dependencies": {
"request": "^2.88.0"
},
"keywords": [

@@ -14,0 +16,0 @@ "syntex",

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