@osimatic/helpers-js 1.4.1 → 1.4.2

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 +1 -1
  2. package/package.json +1 -1
package/location.js CHANGED
@@ -428,7 +428,7 @@ class PostalAddress {
428
428
  }
429
429
 
430
430
  class Polygon {
431
- static polygonSummary(geoJsonPolygon) {
431
+ static format(geoJsonPolygon) {
432
432
  const rings = geoJsonPolygon.coordinates || [];
433
433
  const ring0 = rings[0] || [];
434
434
  const n = ring0.length ? ring0.length - (JSON.stringify(ring0[0])===JSON.stringify(ring0[ring0.length-1]) ? 1 : 0) : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osimatic/helpers-js",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "main": "main.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"