homebridge-ring 11.0.6 → 11.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [11.0.7](https://github.com/dgreif/ring/compare/v11.0.6...v11.0.7) (2022-07-10)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * hide errors from snapshot request timeouts ([f997e34](https://github.com/dgreif/ring/commit/f997e340ad3c579d059ae07c11ad82ddc5ceb181)), closes [#932](https://github.com/dgreif/ring/issues/932)
11
+ * update dependencies ([ce0bf2a](https://github.com/dgreif/ring/commit/ce0bf2aa81d55e629931f38ba2c6ca16a79fa0d2))
12
+
5
13
  ### [11.0.6](https://github.com/dgreif/ring/compare/v11.0.5...v11.0.6) (2022-06-29)
6
14
 
7
15
 
@@ -282,7 +282,7 @@ class RingRestClient {
282
282
  if (response.statusCode) {
283
283
  (0, util_1.logError)(`Request to ${url} failed with status ${response.statusCode}. Response body: ${(0, util_1.stringify)(response.body)}`);
284
284
  }
285
- else {
285
+ else if (!options.allowNoResponse) {
286
286
  (0, util_1.logError)(`Request to ${url} failed:`);
287
287
  (0, util_1.logError)(e);
288
288
  }
@@ -356,6 +356,7 @@ class RingCamera extends subscribed_1.Subscribed {
356
356
  headers: {
357
357
  accept: 'image/jpeg',
358
358
  },
359
+ allowNoResponse: true,
359
360
  }), { responseTimestamp, timeMillis } = response, timestampAge = Math.abs(responseTimestamp - timeMillis);
360
361
  this.lastSnapshotTimestamp = timeMillis;
361
362
  this.lastSnapshotTimestampLocal = Date.now() - timestampAge;
@@ -294,6 +294,10 @@ class CameraSource {
294
294
  catch (e) {
295
295
  this.cachedSnapshot = undefined;
296
296
  (0, util_1.logDebug)(`Failed to cache snapshot for ${this.ringCamera.name} (${getDurationSeconds(start)}s), The camera currently reports that it is ${this.ringCamera.isOffline ? 'offline' : 'online'}`);
297
+ // log additioanl snapshot error message if one is present
298
+ if (e.message.includes('Snapshot')) {
299
+ (0, util_1.logDebug)(e.message);
300
+ }
297
301
  }
298
302
  }
299
303
  getCurrentSnapshot() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-ring",
3
- "version": "11.0.6",
3
+ "version": "11.0.7",
4
4
  "description": "Homebridge plugin for Ring doorbells, cameras, security alarm system and smart lighting",
5
5
  "main": "lib/homebridge/index.js",
6
6
  "bin": {
@@ -42,34 +42,34 @@
42
42
  "@eneris/push-receiver": "^3.0.2",
43
43
  "@homebridge/camera-utils": "^2.1.2",
44
44
  "@homebridge/plugin-ui-utils": "^0.0.19",
45
- "werift": "0.15.8",
45
+ "werift": "0.15.9",
46
46
  "@types/socket.io-client": "1.4.36",
47
47
  "colors": "^1.4.0",
48
48
  "debug": "^4.3.4",
49
49
  "got": "^11.8.5",
50
50
  "rxjs": "^7.5.5",
51
51
  "socket.io-client": "^2.4.0",
52
- "systeminformation": "^5.11.22",
52
+ "systeminformation": "^5.11.24",
53
53
  "uuid": "^8.3.2",
54
54
  "ws": "^8.8.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@swc-node/register": "^1.5.1",
58
58
  "@types/debug": "4.1.7",
59
- "@types/jest": "28.1.3",
60
- "@types/node": "18.0.0",
59
+ "@types/jest": "28.1.4",
60
+ "@types/node": "18.0.3",
61
61
  "@types/uuid": "8.3.4",
62
62
  "@types/ws": "^8.5.3",
63
- "@typescript-eslint/eslint-plugin": "5.30.0",
64
- "@typescript-eslint/parser": "5.30.0",
63
+ "@typescript-eslint/eslint-plugin": "5.30.5",
64
+ "@typescript-eslint/parser": "5.30.5",
65
65
  "concurrently": "^7.2.2",
66
66
  "conventional-github-releaser": "3.1.5",
67
67
  "dotenv": "16.0.1",
68
- "esbuild": "^0.14.47",
69
- "eslint": "8.18.0",
68
+ "esbuild": "^0.14.49",
69
+ "eslint": "8.19.0",
70
70
  "eslint-config-prettier": "8.5.0",
71
71
  "eslint-plugin-jest": "26.5.3",
72
- "eslint-plugin-prettier": "4.1.0",
72
+ "eslint-plugin-prettier": "4.2.1",
73
73
  "express": "4.18.1",
74
74
  "homebridge": "1.5.0",
75
75
  "jest": "28.1.2",