@apiverve/weatherforecast 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +12 -1
  2. package/index.d.ts +13 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Weather API
2
2
 
3
- Weather is a current weather API that reports conditions for any city name or zip code: real-time temperature and wind speed with compass direction, in both metric and imperial units. Paid plans add a 7-day forecast with daily highs, lows, rain chance and conditions for the week ahead.
3
+ Weather is a current weather API that reports conditions for any city name or zip code: real-time temperature and wind speed with compass direction, in both metric and imperial units, with the location's coordinates, time zone and local time, day or night, and a UV risk level. Paid plans add a 7-day forecast with daily highs, lows, rain chance and conditions for the week ahead.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@apiverve/weatherforecast.svg)](https://www.npmjs.com/package/@apiverve/weatherforecast)
6
6
 
@@ -128,6 +128,17 @@ async function makeRequest() {
128
128
  "windKph": 7.6,
129
129
  "windDegree": 273,
130
130
  "windDir": "W",
131
+ "isDay": false,
132
+ "uvRisk": "low",
133
+ "location": {
134
+ "name": "San Francisco",
135
+ "region": "California",
136
+ "country": "United States of America",
137
+ "latitude": 37.775,
138
+ "longitude": -122.4183,
139
+ "timezone": "America/Los_Angeles",
140
+ "localTime": "2026-10-27T21:05"
141
+ },
131
142
  "pressureMb": 1022,
132
143
  "pressureIn": 30.17,
133
144
  "precipMm": 0,
package/index.d.ts CHANGED
@@ -31,6 +31,9 @@ declare module '@apiverve/weatherforecast' {
31
31
  windKph: number | null;
32
32
  windDegree: number | null;
33
33
  windDir: null | string;
34
+ isDay: boolean | null;
35
+ uvRisk: null | string;
36
+ location: Location;
34
37
  pressureMB: number | null;
35
38
  pressureIn: number | null;
36
39
  precipMm: number | null;
@@ -76,6 +79,16 @@ declare module '@apiverve/weatherforecast' {
76
79
  tempTrendC: number | null;
77
80
  maxChanceOfRain: number | null;
78
81
  }
82
+
83
+ interface Location {
84
+ name: null | string;
85
+ region: null | string;
86
+ country: null | string;
87
+ latitude: number | null;
88
+ longitude: number | null;
89
+ timezone: null | string;
90
+ localTime: null | string;
91
+ }
79
92
 
80
93
  export default class weatherforecastWrapper {
81
94
  constructor(options: weatherforecastOptions);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apiverve/weatherforecast",
3
- "version": "1.2.2",
4
- "description": "Weather is a current weather API that reports conditions for any city name or zip code: real-time temperature and wind speed with compass direction, in both metric and imperial units. Paid plans add a 7-day forecast with daily highs, lows, rain chance and conditions for the week ahead.",
3
+ "version": "1.2.4",
4
+ "description": "Weather is a current weather API that reports conditions for any city name or zip code: real-time temperature and wind speed with compass direction, in both metric and imperial units, with the location's coordinates, time zone and local time, day or night, and a UV risk level. Paid plans add a 7-day forecast with daily highs, lows, rain chance and conditions for the week ahead.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "sideEffects": false,