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.12 to 0.1.13

36

HAPNodeJSClient.js

@@ -13,3 +13,3 @@ 'use strict';

var discovered = [];
var mdnsCache = [];
var mdnsCache = {};
var populateCache = false;

@@ -129,2 +129,7 @@

// debug('refreshed', mdnsCache[deviceID]);
var pin = _findPinByKey(deviceID);
var host = mdnsCache[deviceID].host + ':' + mdnsCache[deviceID].port;
this.RegisterPin(host, pin);
callback(null, mdnsCache[deviceID]);

@@ -261,3 +266,3 @@ } else {

callback(err, response);
});
}, instance);
}

@@ -276,5 +281,5 @@ }.bind(this));

HAPNodeJSClient.prototype.HAPcontrol = function(ipAddress, port, body, callback) {
var host = ipAddress + ':' + port;
var pin = _findPinByKey(host);
HAPNodeJSClient.prototype.HAPcontrol = function(ipAddress, port, body, callback, instance) {
var pin = _findPinByKey(instance ? instance.deviceID : ipAddress + ':' + port);
request({

@@ -426,3 +431,2 @@ eventBus: this._eventBus,

} else {
var host = instance.host + ':' + instance.port;
var pin = _findPinByKey(deviceID);

@@ -462,3 +466,2 @@

var rsp;
this.RegisterPin(host, pin);

@@ -500,5 +503,4 @@ if (!this.eventRegistry[deviceID]) {

HAPNodeJSClient.prototype.HAPevent = function(ipAddress, port, body, callback) {
var host = ipAddress + ':' + port;
var pin = _findPinByKey(host);
HAPNodeJSClient.prototype.HAPevent = function(ipAddress, port, body, callback, instance) {
var pin = _findPinByKey(instance ? instance.deviceID : ipAddress + ':' + port);
hapRequest({

@@ -578,3 +580,3 @@ eventBus: this._eventBus,

callback(err, response);
});
}, instance);
}

@@ -593,5 +595,4 @@ }.bind(this));

HAPNodeJSClient.prototype.HAPresource = function(ipAddress, port, body, callback) {
var host = ipAddress + ':' + port;
var pin = _findPinByKey(host);
HAPNodeJSClient.prototype.HAPresource = function(ipAddress, port, body, callback, instance) {
var pin = _findPinByKey(instance ? instance.deviceID : ipAddress + ':' + port);

@@ -661,3 +662,3 @@ request({

callback(err, response);
});
}, instance);
}

@@ -676,5 +677,4 @@ }.bind(this));

HAPNodeJSClient.prototype.HAPstatus = function(ipAddress, port, body, callback) {
var host = ipAddress + ':' + port;
var pin = _findPinByKey(host);
HAPNodeJSClient.prototype.HAPstatus = function(ipAddress, port, body, callback, instance) {
var pin = _findPinByKey(instance ? instance.deviceID : ipAddress + ':' + port);

@@ -681,0 +681,0 @@ // debug('HAPstatus', pin);

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