@apiverve/worldtime 1.1.14 → 1.2.0
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 +18 -18
- package/index.d.ts +33 -21
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -132,17 +132,17 @@ async function makeRequest() {
|
|
|
132
132
|
"iso3": "ARG",
|
|
133
133
|
"province": "Córdoba",
|
|
134
134
|
"timezone": "America/Argentina/Cordoba",
|
|
135
|
-
"time": "
|
|
136
|
-
"time24": "
|
|
137
|
-
"time12": "
|
|
138
|
-
"date": "2025-
|
|
139
|
-
"day": "
|
|
140
|
-
"month": "
|
|
135
|
+
"time": "19:33",
|
|
136
|
+
"time24": "19:33:04",
|
|
137
|
+
"time12": "07:33:04 PM",
|
|
138
|
+
"date": "2025-12-16",
|
|
139
|
+
"day": "Tuesday",
|
|
140
|
+
"month": "December",
|
|
141
141
|
"year": "2025",
|
|
142
|
-
"unix": "
|
|
142
|
+
"unix": "1765924384",
|
|
143
143
|
"dst": false,
|
|
144
|
-
"dst_start": "2025-
|
|
145
|
-
"dst_end": "2025-
|
|
144
|
+
"dst_start": "2025-12-16 19:33:04",
|
|
145
|
+
"dst_end": "2025-12-16 19:33:04",
|
|
146
146
|
"dst_name": "-03"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
@@ -154,17 +154,17 @@ async function makeRequest() {
|
|
|
154
154
|
"province": "California",
|
|
155
155
|
"state_ansi": "CA",
|
|
156
156
|
"timezone": "America/Los_Angeles",
|
|
157
|
-
"time": "
|
|
158
|
-
"time24": "
|
|
159
|
-
"time12": "
|
|
160
|
-
"date": "2025-
|
|
161
|
-
"day": "
|
|
162
|
-
"month": "
|
|
157
|
+
"time": "14:33",
|
|
158
|
+
"time24": "14:33:04",
|
|
159
|
+
"time12": "02:33:04 PM",
|
|
160
|
+
"date": "2025-12-16",
|
|
161
|
+
"day": "Tuesday",
|
|
162
|
+
"month": "December",
|
|
163
163
|
"year": "2025",
|
|
164
|
-
"unix": "
|
|
164
|
+
"unix": "1765924384",
|
|
165
165
|
"dst": false,
|
|
166
|
-
"dst_start": "2025-
|
|
167
|
-
"dst_end": "2025-
|
|
166
|
+
"dst_start": "2025-12-16 14:33:04",
|
|
167
|
+
"dst_end": "2025-12-16 14:33:04",
|
|
168
168
|
"dst_name": "PST"
|
|
169
169
|
}
|
|
170
170
|
]
|
package/index.d.ts
CHANGED
|
@@ -4,40 +4,52 @@ declare module '@apiverve/worldtime' {
|
|
|
4
4
|
secure?: boolean;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Describes fields the current plan does not unlock. Locked fields arrive as null
|
|
9
|
+
* in `data`; `locked_fields` names them, using dot paths for nested fields.
|
|
10
|
+
* Absent when the plan unlocks everything.
|
|
11
|
+
*/
|
|
12
|
+
export interface PremiumInfo {
|
|
13
|
+
message: string;
|
|
14
|
+
upgrade_url: string;
|
|
15
|
+
locked_fields: string[];
|
|
16
|
+
}
|
|
17
|
+
|
|
7
18
|
export interface worldtimeResponse {
|
|
8
19
|
status: string;
|
|
9
20
|
error: string | null;
|
|
10
21
|
data: WorldTimeData;
|
|
11
22
|
code?: number;
|
|
23
|
+
premium?: PremiumInfo;
|
|
12
24
|
}
|
|
13
25
|
|
|
14
26
|
|
|
15
27
|
interface WorldTimeData {
|
|
16
|
-
search: string;
|
|
28
|
+
search: null | string;
|
|
17
29
|
foundCities: FoundCity[];
|
|
18
30
|
}
|
|
19
31
|
|
|
20
32
|
interface FoundCity {
|
|
21
|
-
city: string;
|
|
22
|
-
cityASCII: string;
|
|
23
|
-
country: string;
|
|
24
|
-
iso2: string;
|
|
25
|
-
iso3: string;
|
|
26
|
-
province: string;
|
|
27
|
-
timezone: string;
|
|
28
|
-
time: string;
|
|
29
|
-
time24: string;
|
|
30
|
-
time12: string;
|
|
31
|
-
date: Date;
|
|
32
|
-
day: string;
|
|
33
|
-
month: string;
|
|
34
|
-
year: string;
|
|
35
|
-
unix: string;
|
|
36
|
-
dst: boolean;
|
|
37
|
-
dstStart: Date;
|
|
38
|
-
dstEnd: Date;
|
|
39
|
-
dstName: string;
|
|
40
|
-
stateANSI?: string;
|
|
33
|
+
city: null | string;
|
|
34
|
+
cityASCII: null | string;
|
|
35
|
+
country: null | string;
|
|
36
|
+
iso2: null | string;
|
|
37
|
+
iso3: null | string;
|
|
38
|
+
province: null | string;
|
|
39
|
+
timezone: null | string;
|
|
40
|
+
time: null | string;
|
|
41
|
+
time24: null | string;
|
|
42
|
+
time12: null | string;
|
|
43
|
+
date: Date | null;
|
|
44
|
+
day: null | string;
|
|
45
|
+
month: null | string;
|
|
46
|
+
year: null | string;
|
|
47
|
+
unix: null | string;
|
|
48
|
+
dst: boolean | null;
|
|
49
|
+
dstStart: Date | null;
|
|
50
|
+
dstEnd: Date | null;
|
|
51
|
+
dstName: null | string;
|
|
52
|
+
stateANSI?: null | string;
|
|
41
53
|
}
|
|
42
54
|
|
|
43
55
|
export default class worldtimeWrapper {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/worldtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "World Time is a simple tool for getting the current time in any city. It returns the current time, date, and more.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=18.0.0"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"directory": "npm"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
|
-
""
|
|
26
|
+
"time", "world time", "current time", "time zone", "time zone api"
|
|
27
27
|
],
|
|
28
28
|
"author": {
|
|
29
29
|
"name": "APIVerve",
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"dotenv": "^16.4.7"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"axios": "1.13.2"
|
|
44
|
+
"axios": "1.13.2",
|
|
45
|
+
"form-data": "^4.0.1"
|
|
47
46
|
}
|
|
48
47
|
}
|