homebridge-air
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
@@ -119,8 +119,10 @@ import { interval } from 'rxjs'; | ||
let response; | ||
let rawBody = ''; | ||
try { | ||
response = await body.json(); | ||
rawBody = await body.text(); // Read the raw response body as text | ||
response = JSON.parse(rawBody); // Parse the raw response body as JSON | ||
} | ||
catch (jsonError) { | ||
this.errorLog(`Failed to parse JSON response: ${jsonError.message}`); | ||
this.errorLog(`Raw response body: ${await body.text()}`); | ||
this.errorLog(`Raw response body: ${rawBody}`); | ||
throw jsonError; | ||
@@ -127,0 +129,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"type": "module", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"description": "The AirNow plugin allows you to monitor the current AirQuality for your Zip Code from HomeKit and Siri.", | ||
@@ -8,0 +8,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
332218
3020