New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hap-node-client

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hap-node-client - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

README.md.orig.2019-03-23_093128

38

HAPNodeJSClient.js

@@ -107,22 +107,26 @@ "use strict";

// debug('Found an HAP server:', instance);
debug("HAP Device discovered", instance.txt.md, instance.addresses);
var ipAddress;
for (let address of instance.addresses) {
if (ip.isV4Format(address)) {
ipAddress = address;
break;
if (instance.txt) {
debug("HAP Device discovered", instance.txt.md, instance.addresses);
var ipAddress;
for (let address of instance.addresses) {
if (ip.isV4Format(address)) {
ipAddress = address;
break;
}
}
}
debug("HAP instance address: %s -> %s -> %s:%s", instance.txt.md, instance.host, ipAddress, instance.port);
_getAccessories.call(this, ipAddress, instance, function(err, data) {
if (!err) {
debug("Homebridge instance discovered %s with %s accessories", instance.name, Object.keys(data.accessories.accessories).length);
if (Object.keys(data.accessories.accessories).length > 0) {
discovered.push(data);
debug("HAP instance address: %s -> %s -> %s:%s", instance.txt.md, instance.host, ipAddress, instance.port);
_getAccessories.call(this, ipAddress, instance, function(err, data) {
if (!err) {
debug("Homebridge instance discovered %s with %s accessories", instance.name, Object.keys(data.accessories.accessories).length);
if (Object.keys(data.accessories.accessories).length > 0) {
discovered.push(data);
}
} else {
// Error, no data
}
} else {
// Error, no data
}
});
});
} else {
debug("Unsupported device found, skipping", instance.host, instance.addresses);
}
}.bind(this));

@@ -129,0 +133,0 @@

{
"name": "hap-node-client",
"version": "0.0.21",
"version": "0.0.22",
"description": "Client for Hap-NodeJS",

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