homey-api 1.7.7 → 1.7.8

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.
Files changed (2) hide show
  1. package/lib/API.js +6 -0
  2. package/package.json +1 -1
package/lib/API.js CHANGED
@@ -148,6 +148,12 @@ class API {
148
148
  context: { operation },
149
149
  timeout: $timeout,
150
150
  timeoutMessage: $timeoutMessage,
151
+ }).catch(err => {
152
+ if (typeof this.__secret === 'string' && err.message.includes(this.__secret)) {
153
+ err.message = err.message.replace(this.__secret, '<redacted>');
154
+ }
155
+
156
+ throw err;
151
157
  });
152
158
  };
153
159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [