openweathermap-ts
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
#### 1.2.9 (2021-07-17) | ||
- Updated types with CurrentResponse | ||
#### 1.2.8 (2021-07-16) | ||
@@ -2,0 +6,0 @@ |
@@ -15,7 +15,9 @@ declare const data: { | ||
temp: number; | ||
feels_like: number; | ||
temp_min: number; | ||
temp_max: number; | ||
pressure: number; | ||
humidity: number; | ||
temp_min: number; | ||
temp_max: number; | ||
}; | ||
visibility: number; | ||
wind: { | ||
@@ -32,3 +34,2 @@ speed: number; | ||
id: number; | ||
message: number; | ||
country: string; | ||
@@ -38,2 +39,3 @@ sunrise: number; | ||
}; | ||
timezone: number; | ||
id: number; | ||
@@ -40,0 +42,0 @@ name: string; |
"use strict"; | ||
// 20200516233806 | ||
// https://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=439d4b804bc8187953eb36d2a8c26a02 | ||
// https://openweathermap.org/data/2.5/weather?q=London,uk&appid=439d4b804bc8187953eb36d2a8c26a02 | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var data = { | ||
coord: { | ||
lon: -0.13, | ||
lat: 51.51 | ||
lon: -0.1257, | ||
lat: 51.5085 | ||
}, | ||
weather: [ | ||
{ | ||
id: 300, | ||
main: 'Drizzle', | ||
description: 'light intensity drizzle', | ||
icon: '09d' | ||
id: 800, | ||
main: 'Clear', | ||
description: 'clear sky', | ||
icon: '01d' | ||
} | ||
@@ -20,24 +20,26 @@ ], | ||
main: { | ||
temp: 280.32, | ||
pressure: 1012, | ||
humidity: 81, | ||
temp_min: 279.15, | ||
temp_max: 281.15 | ||
temp: 23.6, | ||
feels_like: 23.69, | ||
temp_min: 18.92, | ||
temp_max: 25.98, | ||
pressure: 1028, | ||
humidity: 64 | ||
}, | ||
visibility: 10000, | ||
wind: { | ||
speed: 4.1, | ||
deg: 80 | ||
speed: 4.12, | ||
deg: 100 | ||
}, | ||
clouds: { | ||
all: 90 | ||
all: 0 | ||
}, | ||
dt: 1485789600, | ||
dt: 1626552114, | ||
sys: { | ||
type: 1, | ||
id: 5091, | ||
message: 0.0103, | ||
type: 2, | ||
id: 268730, | ||
country: 'GB', | ||
sunrise: 1485762037, | ||
sunset: 1485794875 | ||
sunrise: 1626494599, | ||
sunset: 1626552575 | ||
}, | ||
timezone: 3600, | ||
id: 2643743, | ||
@@ -44,0 +46,0 @@ name: 'London', |
{ | ||
"name": "openweathermap-ts", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "An abstract layer over openWeatherMap APIs", | ||
@@ -5,0 +5,0 @@ "main": "dist/app.js", |
94821
0.14%2687
0.15%