@apiverve/moonposition 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 +19 -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: 37.7749,
|
|
63
63
|
lon: -122.4194,
|
|
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: 37.7749,
|
|
85
85
|
lon: -122.4194,
|
|
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: 37.7749,
|
|
108
108
|
lon: -122.4194,
|
|
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,28 @@ declare module '@apiverve/moonposition' {
|
|
|
7
7
|
export interface moonpositionResponse {
|
|
8
8
|
status: string;
|
|
9
9
|
error: string | null;
|
|
10
|
-
data:
|
|
10
|
+
data: MoonPositionData;
|
|
11
11
|
code?: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
interface MoonPositionData {
|
|
16
|
+
date: string;
|
|
17
|
+
coordinates: Coordinates;
|
|
18
|
+
moon: Moon;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface Coordinates {
|
|
22
|
+
latitude: number;
|
|
23
|
+
longitude: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface Moon {
|
|
27
|
+
altitude: number;
|
|
28
|
+
azimuth: number;
|
|
29
|
+
distance: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
14
32
|
export default class moonpositionWrapper {
|
|
15
33
|
constructor(options: moonpositionOptions);
|
|
16
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/moonposition",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Moon Position is a simple tool for getting moon position data. It returns data such as altitude, azimuth, and distance of the moon based on the location provided.",
|
|
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/moonposition-
|
|
13
|
+
"url": "git+https://github.com/apiverve/moonposition-api.git",
|
|
14
|
+
"directory": "npm"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"moon position", "moon position api", "moon position tool", "moon position software", "moon position 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/moonposition-
|
|
22
|
+
"url": "https://github.com/apiverve/moonposition-api/issues"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://apiverve.com/marketplace/moonposition?utm_source=npm",
|
|
24
25
|
"devDependencies": {
|