Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

airly

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airly - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc