Comparing version 1.0.1 to 1.0.2
@@ -16,2 +16,3 @@ 'use strict'; | ||
this.baseUrl = 'https://airapi.airly.eu/v2'; | ||
this.config = { | ||
@@ -34,3 +35,3 @@ headers: { | ||
const response = await got(`https://airapi.airly.eu/v2/measurements/installation?installationId=${id}`, this.config); | ||
const response = await got(this.baseUrl + `/measurements/installation?installationId=${id}`, this.config); | ||
return response.body; | ||
@@ -47,3 +48,3 @@ } | ||
const response = await got(`https://airapi.airly.eu/v2/installations/${id}`, this.config); | ||
const response = await got(this.baseUrl + `/installations/${id}`, this.config); | ||
return response.body; | ||
@@ -65,5 +66,5 @@ } | ||
const search = await got(`https://airapi.airly.eu/v2/installations/nearest?lat=${lat}&lng=${lng}&maxResults=3&maxDistanceKM=-1`, this.config); | ||
const search = await got(this.baseUrl + `/installations/nearest?lat=${lat}&lng=${lng}&maxResults=3&maxDistanceKM=-1`, this.config); | ||
return search.body; | ||
} | ||
}; |
{ | ||
"name": "airly", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Simple wrapper for Airly API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
5681
57