homey-api 1.7.6 → 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.
@@ -105,6 +105,14 @@
105
105
  "type": "string",
106
106
  "in": "body"
107
107
  },
108
+ "homeyPlatform": {
109
+ "type": "string",
110
+ "in": "body"
111
+ },
112
+ "homeyPlatformVersion": {
113
+ "type": "number",
114
+ "in": "body"
115
+ },
108
116
  "version": {
109
117
  "type": "string",
110
118
  "in": "body"
@@ -1220,6 +1220,14 @@
1220
1220
 
1221
1221
 
1222
1222
 
1223
+ homeyPlatform: string,
1224
+
1225
+
1226
+
1227
+ homeyPlatformVersion: number,
1228
+
1229
+
1230
+
1223
1231
  version: string,
1224
1232
 
1225
1233
 
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.6",
3
+ "version": "1.7.8",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [