@trackunit/geo-json-utils 1.4.31 → 1.4.32

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/index.cjs.js CHANGED
@@ -386,7 +386,7 @@ const getExtremeGeoJsonPointFromPolygon = ({ polygon, direction, }) => {
386
386
  throw new Error(`${direction} is not known`);
387
387
  }
388
388
  }
389
- }, polygonParsed.data.coordinates[0]?.[0]);
389
+ }, polygonParsed.data.coordinates[0][0]);
390
390
  return extremePosition
391
391
  ? {
392
392
  type: "Point",
package/index.esm.js CHANGED
@@ -384,7 +384,7 @@ const getExtremeGeoJsonPointFromPolygon = ({ polygon, direction, }) => {
384
384
  throw new Error(`${direction} is not known`);
385
385
  }
386
386
  }
387
- }, polygonParsed.data.coordinates[0]?.[0]);
387
+ }, polygonParsed.data.coordinates[0][0]);
388
388
  return extremePosition
389
389
  ? {
390
390
  type: "Point",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/geo-json-utils",
3
- "version": "1.4.31",
3
+ "version": "1.4.32",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {