@autofleet/settings 1.4.3 → 1.4.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.
package/dist/index.js CHANGED
@@ -181,7 +181,7 @@ class SettingsManager {
181
181
  return Object.assign(Object.assign({}, l), { time: moment_1.default(l.time).startOf('hour').format(), day: moment_1.default(l.time).day() });
182
182
  }
183
183
  if (l.location && l.location.lat && l.location.lng) {
184
- const h3Index = h3_js_1.default.geoToH3(l.location.lat, l.location.lng, 8);
184
+ const h3Index = h3_js_1.default.latLngToCell(l.location.lat, l.location.lng, 8);
185
185
  return Object.assign(Object.assign({}, l), { location: h3Index });
186
186
  }
187
187
  return l;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/settings",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "@types/jest": "^22.0.0",
20
20
  "bluebird": "^3.7.2",
21
21
  "dotenv": "^8.2.0",
22
- "h3-js": "^3.7.2",
22
+ "h3-js": "^4.1.0",
23
23
  "jest": "^22.4.4",
24
24
  "moment": "^2.29.1",
25
25
  "nock": "^10.0.2",
package/src/index.ts CHANGED
@@ -240,7 +240,7 @@ class SettingsManager {
240
240
  }
241
241
 
242
242
  if (l.location && l.location.lat && l.location.lng) {
243
- const h3Index = h3.geoToH3(l.location.lat, l.location.lng, 8);
243
+ const h3Index = h3.latLngToCell(l.location.lat, l.location.lng, 8);
244
244
  return {
245
245
  ...l,
246
246
  location: h3Index,