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"
|
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
|
}
|