Skip to content

Commit

Permalink
Merge pull request #4 from marcus-j-davies/dev
Browse files Browse the repository at this point in the history
3.0.1
  • Loading branch information
marcus-j-davies authored Oct 23, 2021
2 parents 3c2e2c4 + 22d7d8c commit a834c09
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
- **3.0.1**

- **Fixes**
- Fix incorrect accessory function call in the UI

- **Changes**
- Bump dependencies.
- Change default Max Packet Size for Camera Accessory

- **3.0.0**

- **Breaking Changes**
Expand Down
4 changes: 2 additions & 2 deletions core/accessories/Types.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ const Types = {
},
{
id: 'packetSize',
label: 'Max Packet Size',
label: 'Max Packet Size (multiples of 188)',
type: 'numeric',
default: 1316
default: 376
},
{
id: 'maxStreams',
Expand Down
2 changes: 1 addition & 1 deletion core/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const Server = function (Accesories, Bridge, RouteSetup, AccessoryIniter) {
const ID = req.query.aid;
const Method = req.query.method;

if (_ConfiguredAccessories[ID].hasOwnProperty(Method)) {
if (_ConfiguredAccessories[ID][Method] !== undefined) {
if (typeof _ConfiguredAccessories[ID][Method] === 'function') {
_ConfiguredAccessories[ID][Method]();
res.contentType('application/json');
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hap-router",
"version": "3.0.0",
"version": "3.0.1",
"description": "A Middleware HAP Router for bringing HomeKit functionality to your Home Automation.",
"main": "HAPRouter.js",
"keywords": [
Expand Down Expand Up @@ -28,7 +28,7 @@
"events": "^3.3.0",
"express": "^4.17.1",
"express-basic-auth": "^1.2.0",
"hap-nodejs": "^0.9.5",
"hap-nodejs": "^0.9.6",
"ip": "^1.1.5",
"mqtt": "^4.2.8",
"handlebars": "^4.7.7",
Expand All @@ -37,8 +37,8 @@
"matcher": "^4.0.0",
"qrcode": "^1.4.4",
"bcrypt": "^5.0.1",
"express-rate-limit": "^5.3.0",
"ws": "^8.2.2",
"express-rate-limit": "^5.5.0",
"ws": "^8.2.3",
"@marcus-j-davies/haprouter-route-http": "^3.2.0",
"@marcus-j-davies/haprouter-route-udp": "^3.2.0",
"@marcus-j-davies/haprouter-route-websocket": "^3.2.0",
Expand All @@ -51,8 +51,8 @@
"node": ">=12.22.2"
},
"devDependencies": {
"eslint": "^7.32.0",
"prettier": "^2.3.2"
"eslint": "^8.1.0",
"prettier": "^2.4.1"
},
"repository": {
"type": "git",
Expand All @@ -63,5 +63,3 @@
},
"homepage": "https://github.com/marcus-j-davies/hap-router#readme"
}


0 comments on commit a834c09

Please sign in to comment.