homebridge-plugin-wrapper
Advanced tools
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 |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
2929089
41129
147
25