@apiverve/sunrisesunset 1.1.10 → 1.1.12
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 +3 -3
- package/examples/basic.js +1 -1
- package/index.d.ts +18 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ Using the API is simple. All you have to do is make a request. The API will retu
|
|
|
61
61
|
var query = {
|
|
62
62
|
lat: 36.7201600,
|
|
63
63
|
lon: -4.4203400,
|
|
64
|
-
date: "
|
|
64
|
+
date: "12-02-2025"
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
api.execute(query, function (error, data) {
|
|
@@ -83,7 +83,7 @@ You can also use promises to make requests. The API returns a promise that you c
|
|
|
83
83
|
var query = {
|
|
84
84
|
lat: 36.7201600,
|
|
85
85
|
lon: -4.4203400,
|
|
86
|
-
date: "
|
|
86
|
+
date: "12-02-2025"
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
api.execute(query)
|
|
@@ -106,7 +106,7 @@ async function makeRequest() {
|
|
|
106
106
|
var query = {
|
|
107
107
|
lat: 36.7201600,
|
|
108
108
|
lon: -4.4203400,
|
|
109
|
-
date: "
|
|
109
|
+
date: "12-02-2025"
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
try {
|
package/examples/basic.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -7,10 +7,27 @@ declare module '@apiverve/sunrisesunset' {
|
|
|
7
7
|
export interface sunrisesunsetResponse {
|
|
8
8
|
status: string;
|
|
9
9
|
error: string | null;
|
|
10
|
-
data:
|
|
10
|
+
data: SunriseSunsetData;
|
|
11
11
|
code?: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
interface SunriseSunsetData {
|
|
16
|
+
solarNoon: Date;
|
|
17
|
+
sunrise: Date;
|
|
18
|
+
sunset: Date;
|
|
19
|
+
sunriseEnd: Date;
|
|
20
|
+
sunsetStart: Date;
|
|
21
|
+
dawn: Date;
|
|
22
|
+
dusk: Date;
|
|
23
|
+
nauticalDawn: Date;
|
|
24
|
+
nauticalDusk: Date;
|
|
25
|
+
nightEnd: Date;
|
|
26
|
+
night: Date;
|
|
27
|
+
goldenHourEnd: Date;
|
|
28
|
+
goldenHour: Date;
|
|
29
|
+
}
|
|
30
|
+
|
|
14
31
|
export default class sunrisesunsetWrapper {
|
|
15
32
|
constructor(options: sunrisesunsetOptions);
|
|
16
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/sunrisesunset",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Sunrise Sunset is a simple tool for getting the sunrise and sunset times. It returns the sunrise and sunset times for a given location and date.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/apiverve/sunrisesunset-
|
|
13
|
+
"url": "git+https://github.com/apiverve/sunrisesunset-api.git",
|
|
14
|
+
"directory": "npm"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"sunrise sunset", "sunrise sunset api", "sunrise sunset tool", "sunrise sunset software", "sunrise sunset service"
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/apiverve/sunrisesunset-
|
|
22
|
+
"url": "https://github.com/apiverve/sunrisesunset-api/issues"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://apiverve.com/marketplace/sunrisesunset?utm_source=npm",
|
|
24
25
|
"devDependencies": {
|