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

homebridge-syntex-webhooks

Package Overview
Dependencies
Maintainers
1
Versions
1176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-syntex-webhooks - npm Package Compare versions

Comparing version 1.0.5-b18 to 1.0.5-b19

82

index.js

@@ -105,27 +105,2 @@ var request = require('request');

var pathname = this.cacheDirectory + 'storage.json';
fs.exists(pathname, function (exist)
{
if(!exist)
{
log('\x1b[31m%s\x1b[0m', "[ERROR]", pathname + ' wurde nicht gefunden!');
}
else
{
fs.readFile(pathname, function(err, data)
{
if(err)
{
log('\x1b[31m%s\x1b[0m', "[ERROR]", 'Die Seite konnte nicht geladen werden: ' + err);
}
else
{
log('\x1b[32m%s\x1b[0m', "[SUCCESS]", pathname);
log(data.toString());
}
});
}
});
if(!obj && err)

@@ -154,2 +129,4 @@ {

log(device);
this.storage.add(device, (err) => {

@@ -161,2 +138,27 @@

}
var pathname = this.cacheDirectory + 'storage.json';
fs.exists(pathname, function (exist)
{
if(!exist)
{
log('\x1b[31m%s\x1b[0m', "[ERROR]", pathname + ' wurde nicht gefunden!');
}
else
{
fs.readFile(pathname, function(err, data)
{
if(err)
{
log('\x1b[31m%s\x1b[0m', "[ERROR]", 'Die Seite konnte nicht geladen werden: ' + err);
}
else
{
log('\x1b[32m%s\x1b[0m', "[SUCCESS]", pathname);
log(data.toString());
}
});
}
});
});

@@ -202,2 +204,4 @@ }

log(obj);
this.storage.add(obj, (err) => {

@@ -209,2 +213,27 @@

}
var pathname = this.cacheDirectory + 'storage.json';
fs.exists(pathname, function (exist)
{
if(!exist)
{
log('\x1b[31m%s\x1b[0m', "[ERROR]", pathname + ' wurde nicht gefunden!');
}
else
{
fs.readFile(pathname, function(err, data)
{
if(err)
{
log('\x1b[31m%s\x1b[0m', "[ERROR]", 'Die Seite konnte nicht geladen werden: ' + err);
}
else
{
log('\x1b[32m%s\x1b[0m', "[SUCCESS]", pathname);
log(data.toString());
}
});
}
});
});

@@ -246,3 +275,3 @@ }

}
/*
if(obj && obj.devices)

@@ -252,2 +281,3 @@ {

}
*/
});

@@ -254,0 +284,0 @@

{
"name": "homebridge-syntex-webhooks",
"version": "1.0.5-b18",
"version": "1.0.5-b19",
"description": "A webhook plugin for HTTP devices",

@@ -5,0 +5,0 @@ "main": "index.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