Skip to content

Commit

Permalink
Truly fixed issue #27
Browse files Browse the repository at this point in the history
Updated dependency eufy-security-client to 1.2.1
Updated dependency commander to 8.3.0
Updated dev dependencies
  • Loading branch information
bropat committed Oct 23, 2021
1 parent 373f4b8 commit a2ddb57
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 36 deletions.
60 changes: 30 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eufy-security-ws",
"version": "0.5.0",
"version": "0.5.1",
"description": "Node WebSocket server implementation to integrate Eufy Security devices",
"main": "dist/lib/index.js",
"bin": {
Expand Down Expand Up @@ -43,16 +43,16 @@
},
"dependencies": {
"ansi-colors": "^4.1.1",
"commander": "^8.2.0",
"eufy-security-client": "^1.2.0",
"commander": "^8.3.0",
"eufy-security-client": "^1.2.1",
"fs-extra": "^10.0.0",
"promptly": "^3.2.0",
"tslog": "^3.2.2",
"ws": "^8.2.3"
},
"devDependencies": {
"@types/ansi-colors": "3.2.2",
"@types/node": "^16.11.0",
"@types/node": "^16.11.4",
"@types/node-rsa": "^1.1.1",
"@types/promptly": "^3.0.2",
"@types/ws": "^8.2.0",
Expand All @@ -61,7 +61,7 @@
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"prettier": "^2.4.1",
"ts-node": "^10.3.0",
"ts-node": "^10.4.0",
"typescript": "^4.4.4"
}
}
1 change: 0 additions & 1 deletion src/lib/device/message_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ export class DeviceMessageHandler {
}
if (DeviceMessageHandler.streamingDevices[station.getSerial()] !== undefined && DeviceMessageHandler.streamingDevices[station.getSerial()].includes(client)) {
if (DeviceMessageHandler.streamingDevices[station.getSerial()].length === 1) {
client.receiveLivestream[serialNumber] = false;
DeviceMessageHandler.removeStreamingDevice(station.getSerial(), client);
await station.stopLivestream(device).catch((error) => {
throw error;
Expand Down

0 comments on commit a2ddb57

Please sign in to comment.