New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

theweatherapi

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theweatherapi - npm Package Compare versions

Comparing version 2.2.0 to 2.2.2

2

package.json
{
"name": "theweatherapi",
"version": "2.2.0",
"version": "2.2.2",
"description": "An NPM Library used to get weather info",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -1,2 +0,1 @@

module.exports = {

@@ -6,3 +5,2 @@ //Clients

WeatherClient: require('./client/WeatherClient'),
//Structures

@@ -14,7 +12,21 @@ Current: require('./structures/Current'),

Forecast: require('./structures/Forecast'),
//Utils
Constants: require('./Utils/Constants'),
Util: require('./Utils/Util')
Util: require('./Utils/Util'),
//REST
RequestHandler: require('./rest/RequestHandler'),
WeatherAPIError: require('./rest/WeatherAPIError'),
//REST\API
APItypes: require('./rest/api//api-types.json'),
BaseAPI: require('./rest/api/BaseAPI'),
CurrentAPI: require('./rest/api/CurrentAPI'),
ForecastAPI: require('./rest/api/ForecastAPI'),
SearchAPI: require('./rest/api/SearchAPI'),
TimezoneAPI: require('./rest/api/TimezoneAPI'),
HistoryAPI: require('./rest/api/HistoryAPI'),
IPAPI: require('./rest/api/IPAPI'),
SportsAPI: require('./rest/api/SportsAPI'),
AstronomyAPI: require('./rest/api/AstronomyAPI'),
//Errors
Errors: require('./errors'),
};

@@ -77,13 +77,13 @@ import {

export class RequestHandler {
public static forecast: ForecastAPI;
public static current: CurrentAPI;
public static timezone: TimezoneAPI;
public static history: HistoryAPI;
public static astronomy: AstronomyAPI;
public static search: SearchAPI;
public static ip: IPAPI;
public static sports: SportsAPI;
public static makeRequest(request: object): Promise<object>
public static handleError(error: Error): WeatherAPIError
public static createRequestObj(path: string, method: string, parameters: Array<string>, key: apiKey): object
public forecast: ForecastAPI;
public current: CurrentAPI;
public timezone: TimezoneAPI;
public history: HistoryAPI;
public astronomy: AstronomyAPI;
public search: SearchAPI;
public ip: IPAPI;
public sports: SportsAPI;
public makeRequest(request: object): Promise<object>
public handleError(error: Error): WeatherAPIError
public createRequestObj(path: string, method: string, parameters: Array<string>, key: apiKey): object

@@ -90,0 +90,0 @@

Sorry, the diff of this file is not supported yet

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