Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Looskie committed Jul 17, 2021
2 parents 0fcd7a5 + 11e1183 commit 117f852
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 24 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 1.2.8 (2021-07-16)

- Fix bug where it returns the forecast of the geocoords instead of the actual weather.

#### 1.2.7 (2020-07-30)

- Fix language bug
Expand Down
1 change: 1 addition & 0 deletions dist/types/CurrentReponse.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ declare const data: {
temp_min: number;
temp_max: number;
};
visibility: number;
wind: {
speed: number;
deg: number;
Expand Down
15 changes: 4 additions & 11 deletions dist/types/CurrentReponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
// https://samples.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
},
coord: { lon: -0.13, lat: 51.51 },
weather: [
{
id: 300,
Expand All @@ -23,13 +20,9 @@ var data = {
temp_min: 279.15,
temp_max: 281.15
},
wind: {
speed: 4.1,
deg: 80
},
clouds: {
all: 90
},
visibility: 10000,
wind: { speed: 4.1, deg: 80 },
clouds: { all: 90 },
dt: 1485789600,
sys: {
type: 1,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "openweathermap-ts",
"version": "1.2.8",
"description": "Fork for fix, an abstract layer over openWeatherMap APIs",
"version": "1.2.9",
"description": "An abstract layer over openWeatherMap APIs",
"main": "dist/app.js",
"types": "dist/app.d.ts",
"author": "Phillip Shim, devlooskie",
Expand Down
15 changes: 4 additions & 11 deletions src/types/CurrentReponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
// https://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=439d4b804bc8187953eb36d2a8c26a02

const data = {
coord: {
lon: -0.13,
lat: 51.51
},
coord: { lon: -0.13, lat: 51.51 },
weather: [
{
id: 300,
Expand All @@ -22,13 +19,9 @@ const data = {
temp_min: 279.15,
temp_max: 281.15
},
wind: {
speed: 4.1,
deg: 80
},
clouds: {
all: 90
},
visibility: 10000,
wind: { speed: 4.1, deg: 80 },
clouds: { all: 90 },
dt: 1485789600,
sys: {
type: 1,
Expand Down

0 comments on commit 117f852

Please sign in to comment.