@osimatic/helpers-js 1.4.16 → 1.4.17

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 (2) hide show
  1. package/location.js +2 -2
  2. package/package.json +1 -1
package/location.js CHANGED
@@ -460,7 +460,7 @@ class Polygon {
460
460
  }
461
461
 
462
462
  const [firstLon, firstLat] = ring0[0];
463
- return asString ? str.join(',') : [firstLat, firstLon];
463
+ return asString ? firstLat+','+firstLon : [firstLat, firstLon];
464
464
  }
465
465
 
466
466
  static convertToGeoJson(latlngs) {
@@ -644,7 +644,7 @@ class GeographicCoordinates {
644
644
  return null;
645
645
  }
646
646
 
647
- return asString ? str.join(',') : [lat, long];
647
+ return asString ? lat+','+long : [lat, long];
648
648
  }
649
649
 
650
650
  static getAllLatLongsFromGeoJsonList(geoJsonList) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"