homebridge-melcloud-control 4.0.0-beta.313 → 4.0.0-beta.314

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.0.0-beta.313",
4
+ "version": "4.0.0-beta.314",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -175,7 +175,7 @@ class MelCloudHomeToken extends EventEmitter {
175
175
  validateStatus: status => [200, 302, 400].includes(status),
176
176
  });
177
177
 
178
- this.emit('warn', `No cookie returned from login. Response headers: ${JSON.stringify(postResp)}`);
178
+ this.emit('warn', `No cookie returned from login. Response headers: ${postResp}`);
179
179
 
180
180
  if (response.status !== 200) {
181
181
  if (this.logError) this.emit('error', `Login failed with status code: ${postResp.status}`);
@@ -184,7 +184,7 @@ class MelCloudHomeToken extends EventEmitter {
184
184
 
185
185
  const cookie = response.headers['set-cookie'];
186
186
  if (!cookie) {
187
- if (this.logWarn) this.emit('warn', `No cookie returned from login. Response headers: ${JSON.stringify(response.headers)}`);
187
+ if (this.logWarn) this.emit('warn', `No cookie returned from login. Response headers: ${JSON.stringify(postResp.headers)}`);
188
188
  return null;
189
189
  }
190
190