homebridge-ring 10.0.0-beta.8 → 10.0.0

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,13 @@
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
+ ## [10.0.0](https://github.com/dgreif/ring/compare/v10.0.0-beta.8...v10.0.0) (2022-05-08)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * prevent push receiver ECONNRESET error from logging ([644e86d](https://github.com/dgreif/ring/commit/644e86d6517e73391139b12bac4dc048c8bedf13))
11
+
5
12
  ## [10.0.0-beta.8](https://github.com/dgreif/ring/compare/v10.0.0-beta.7...v10.0.0-beta.8) (2022-05-07)
6
13
 
7
14
 
package/lib/api/util.js CHANGED
@@ -123,6 +123,15 @@ function randomString(length) {
123
123
  exports.randomString = randomString;
124
124
  // Override push receiver logging to avoid ECONNRESET errors leaking
125
125
  function logPushReceiver(...args) {
126
+ try {
127
+ if (args[0].toString().includes('ECONNRESET')) {
128
+ // don't log ECONNRESET errors
129
+ return;
130
+ }
131
+ }
132
+ catch (_) {
133
+ // proceed to log error
134
+ }
126
135
  logDebug('[Push Receiver]');
127
136
  logDebug(args[0]);
128
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-ring",
3
- "version": "10.0.0-beta.8",
3
+ "version": "10.0.0",
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": {