@apiverve/weatherseasons 1.1.4 → 1.1.5
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.
- package/README.md +7 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Weather Seasons API
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
-
Weather Seasons is a simple tool for getting the dates of the solstice and equinox. It returns the dates of the solstice and equinox for
|
|
4
|
+
Weather Seasons is a simple tool for getting the dates of the solstice and equinox. It returns the dates of the solstice and equinox for a given year.
|
|
5
5
|
|
|
6
6
|

|
|
7
7
|

|
|
@@ -47,13 +47,15 @@ Using the API client, you can perform requests to the API.
|
|
|
47
47
|
###### Define Query
|
|
48
48
|
|
|
49
49
|
```
|
|
50
|
-
|
|
50
|
+
var query = {
|
|
51
|
+
year: 2024
|
|
52
|
+
};
|
|
51
53
|
```
|
|
52
54
|
|
|
53
55
|
###### Simple Request (using Callback)
|
|
54
56
|
|
|
55
57
|
```
|
|
56
|
-
api.execute(function (error, data) {
|
|
58
|
+
api.execute(query, function (error, data) {
|
|
57
59
|
if (error) {
|
|
58
60
|
return console.error(error);
|
|
59
61
|
} else {
|
|
@@ -69,6 +71,8 @@ api.execute(function (error, data) {
|
|
|
69
71
|
"status": "ok",
|
|
70
72
|
"error": null,
|
|
71
73
|
"data": {
|
|
74
|
+
"year": 2024,
|
|
75
|
+
"timezone": "UTC",
|
|
72
76
|
"march_equinox": "2024-03-20 03:06:24",
|
|
73
77
|
"june_solstice": "2024-06-20 20:50:58",
|
|
74
78
|
"september_equinox": "2024-09-22 12:43:55",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/weatherseasons",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Weather Seasons is a simple tool for getting the dates of the solstice and equinox. It returns the dates of the solstice and equinox for
|
|
3
|
+
"version": "1.1.5",
|
|
4
|
+
"description": "Weather Seasons is a simple tool for getting the dates of the solstice and equinox. It returns the dates of the solstice and equinox for a given year.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "mocha"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"bugs": {
|
|
19
19
|
"url": "https://github.com/apiverve/weatherseasons-API/issues"
|
|
20
20
|
},
|
|
21
|
-
"homepage": "https://apiverve.com/marketplace/api/weatherseasons",
|
|
21
|
+
"homepage": "https://apiverve.com/marketplace/api/weatherseasons?utm_source=npm",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"mocha": "^10.7.3",
|
|
24
24
|
"chai": "^5.1.1",
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"node-fetch": "^3.3.2",
|
|
29
29
|
"promise": "^8.3.0",
|
|
30
|
-
"axios": "1.7.
|
|
30
|
+
"axios": "1.7.7"
|
|
31
31
|
}
|
|
32
32
|
}
|