@apiverve/timezonelookup 1.0.3 → 1.1.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 +15 -14
  2. package/index.js +1 -1
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -48,7 +48,7 @@ Using the API client, you can perform requests to the API.
48
48
 
49
49
  ```
50
50
  var query = {
51
- timezone: "America/New_York"
51
+ city: "Harare"
52
52
  };
53
53
  ```
54
54
 
@@ -71,21 +71,22 @@ api.execute(query, function (error, data) {
71
71
  "status": "ok",
72
72
  "error": null,
73
73
  "data": {
74
- "timezone": "America/New_York",
75
- "timezone_offset": -240,
76
- "date": "2024-05-15",
77
- "time": "17:53",
78
- "time24": "17:53:17",
79
- "time12": "05:53:17 PM",
74
+ "timezone": "Africa/Harare",
75
+ "timezone_offset": 120,
76
+ "date": "2024-08-14",
77
+ "time": "08:18",
78
+ "time24": "08:18:10",
79
+ "time12": "08:18:10 AM",
80
80
  "day": "Wednesday",
81
- "month": "May",
81
+ "month": "August",
82
82
  "year": "2024",
83
- "unix": "1715809997",
84
- "dst": true,
85
- "dst_start": "2024-05-15 17:53:17",
86
- "dst_end": "2024-05-15 17:53:17",
87
- "dst_name": "EDT"
88
- }
83
+ "unix": "1723616290",
84
+ "dst": false,
85
+ "dst_start": "2024-08-14 08:18:10",
86
+ "dst_end": "2024-08-14 08:18:10",
87
+ "dst_name": "CAT"
88
+ },
89
+ "code": 200
89
90
  }
90
91
  ```
91
92
 
package/index.js CHANGED
@@ -33,7 +33,7 @@ class timezonelookupWrapper {
33
33
  query = {};
34
34
  }
35
35
 
36
- var requiredParams = ["timezone"];
36
+ var requiredParams = ["city"];
37
37
  if (requiredParams.length > 0) {
38
38
  for (var i = 0; i < requiredParams.length; i++) {
39
39
  if (!query[requiredParams[i]]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apiverve/timezonelookup",
3
- "version": "1.0.3",
3
+ "version": "1.1.4",
4
4
  "description": "Timezone Lookup is a simple tool for looking up timezone data. It returns the timezone name, offset, and more.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,15 +18,15 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/apiverve/timezonelookup-API/issues"
20
20
  },
21
- "homepage": "https://github.com/apiverve/timezonelookup-API",
21
+ "homepage": "https://apiverve.com/marketplace/api/timezonelookup",
22
22
  "devDependencies": {
23
- "mocha": "^10.4.0",
23
+ "mocha": "^10.7.3",
24
24
  "chai": "^5.1.1",
25
25
  "dotenv": "^16.4.5"
26
26
  },
27
27
  "dependencies": {
28
- "node-fetch": "3.3.2",
28
+ "node-fetch": "^3.3.2",
29
29
  "promise": "^8.3.0",
30
- "axios": "1.6.8"
30
+ "axios": "1.7.4"
31
31
  }
32
32
  }