innogy-smarthome-lib
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -98,3 +98,3 @@ const inherits = require('util').inherits; | ||
if (typeof aLinkToResolve.value === "string") { | ||
if (aLinkToResolve && (typeof aLinkToResolve.value === "string")) { | ||
var objectLink = aLinkToResolve.value; | ||
@@ -263,4 +263,2 @@ | ||
console.log(event); | ||
if (event && event.link) { | ||
@@ -272,2 +270,8 @@ var cap = that.resolveLink(event.link); | ||
that.emit("stateChanged", cap); | ||
} else { | ||
that.emit("error", | ||
{ | ||
err: "No link for event", | ||
event: event | ||
}); | ||
} | ||
@@ -274,0 +278,0 @@ } |
{ | ||
"name": "innogy-smarthome-lib", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "JavaScript library for the Innogy SmartHome system", | ||
@@ -5,0 +5,0 @@ "main": "./lib/smarthome", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51184
1101