Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-plugin-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-plugin-wrapper - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

46

index.js

@@ -45,8 +45,13 @@ /* jshint -W097 */

mock(path.join(__dirname, '/hap-nodejs/lib/util/eventedhttp.js'), {
EventedHTTPServer: function() {
this.listen = function () {};
this.stop = function () {};
this.sendEvent = function () {};
this.on = function () {};
this.broadcastEvent = function () {};
EventedHTTPServer: function () {
this.listen = function () {
};
this.stop = function () {
};
this.sendEvent = function () {
};
this.on = function () {
};
this.broadcastEvent = function () {
};

@@ -58,3 +63,4 @@ that.logger.debug('Fake EventedHTTPServer initialized');

mock('qrcode-terminal', {
generate: function() {}
generate: function () {
}
});

@@ -69,16 +75,22 @@ mock('tweetnacl', {

mock('fast-srp-hap', {});
mock('bonjour-hap', function() {
mock('bonjour-hap', function () {
return {
publish: function() {
publish: function () {
return {
updateTxt: function() {},
stop: function() {},
destroy: function() {},
updateTxt: function () {
},
stop: function () {
},
destroy: function () {
},
}
},
destroy: function() {}
destroy: function () {
}
}
});
mock('@homebridge/ciao', function() {});
mock('@homebridge/dbus-native', function() {});
mock('@homebridge/ciao', function () {
});
mock('@homebridge/dbus-native', function () {
});
mock(path.join(__dirname, '/homebridge/version.js'), path.join(__dirname, '/homebridge-version.js'));

@@ -95,2 +107,6 @@

Accessory = hap.Accessory;
const homebridgeLogger = require(path.join(__dirname, 'homebridge/logger'));
if (config.debugModeEnabled) {
homebridgeLogger.setDebugEnabled(true);
}

@@ -97,0 +113,0 @@ this.logger = config.logger;

{
"name": "homebridge-plugin-wrapper",
"version": "3.1.0",
"version": "3.2.0",
"description": "Wrapper for Homebridge and NodeJS-HAP with reduced dependencies that allows to intercept plugin values and also send to them",

@@ -5,0 +5,0 @@ "author": {

@@ -69,2 +69,5 @@ # homebridge-plugin-wrapper

## Changelog
### 3.2.0 (2022-09-15)
* Add option to set debugModeEnabled property in the init options to enable the homebridge debug mode
### 3.1.0 (2022-09-14)

@@ -71,0 +74,0 @@ * Another adjustment to the management of services and characteristics to make sure always the current objects are used

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