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.1.28 to 0.1.29

32

HAPNodeJSClient.js

@@ -164,20 +164,26 @@ 'use strict';

break;
} else if (ip.isV6Format(address)) {
} else if (ip.isV6Format(address) && address.substring(0, 7) !== '169.254') {
ipAddress = address;
url = 'http://[' + ipAddress + ']:' + result.port;
} else {
debug('Invalid address found', result.name, result.addresses);
}
}
// debug('result', result);
mdnsCache[result.txt.id] = {
host: ipAddress,
port: result.port,
url: url,
deviceID: result.txt.id,
txt: result.txt,
name: result.name
};
// debug('HAP Device address %s -> ', result.name, mdnsCache[result.txt.id]);
// debug('discovery', discovery);
if (discovery) {
discovery.call(this, mdnsCache[result.txt.id], function () { });
if (url) {
mdnsCache[result.txt.id] = {
host: ipAddress,
port: result.port,
url: url,
deviceID: result.txt.id,
txt: result.txt,
name: result.name
};
// debug('HAP Device address %s -> ', result.name, mdnsCache[result.txt.id]);
// debug('discovery', discovery);
if (discovery) {
discovery.call(this, mdnsCache[result.txt.id], function () { });
}
} else {
debug('No address found', result.name, result.addresses);
}

@@ -184,0 +190,0 @@ } else {

{
"name": "hap-node-client",
"version": "0.1.28",
"version": "0.1.29",
"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