homebridge-syntex-webhooks
Advanced tools
Comparing version 1.0.5-b15 to 1.0.5-b16
38
index.js
@@ -90,22 +90,2 @@ var request = require('request'); | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "ERR", err); | ||
log(obj); | ||
} | ||
else | ||
{ | ||
log('\x1b[32m%s\x1b[0m', "[SUCCESS]", "!ERR"); | ||
} | ||
if(obj) | ||
{ | ||
log('\x1b[32m%s\x1b[0m', "[SUCCESS]", "OBJ"); | ||
} | ||
else | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "!OBJ"); | ||
} | ||
if(!obj && err) | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "Storage.json konnte nicht geparst werden!"); | ||
var pathname = this.cacheDirectory + 'storage.json'; | ||
@@ -135,2 +115,20 @@ | ||
} | ||
else | ||
{ | ||
log('\x1b[32m%s\x1b[0m', "[SUCCESS]", "!ERR"); | ||
} | ||
if(obj) | ||
{ | ||
log('\x1b[32m%s\x1b[0m', "[SUCCESS]", "OBJ"); | ||
} | ||
else | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "!OBJ"); | ||
} | ||
if(!obj && err) | ||
{ | ||
log('\x1b[31m%s\x1b[0m', "[ERROR]", "Storage.json konnte nicht geparst werden!"); | ||
} | ||
else if(!obj && !err) | ||
@@ -137,0 +135,0 @@ { |
{ | ||
"name": "homebridge-syntex-webhooks", | ||
"version": "1.0.5-b15", | ||
"version": "1.0.5-b16", | ||
"description": "A webhook plugin for HTTP devices", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
32896
589