@aws-amplify/geo 1.2.5-geo.17 → 1.2.5-geo.18

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.
@@ -30428,6 +30428,10 @@ function validatePolygon(polygon, geofenceId) {
30428
30428
  if (verticesCount > 1000) {
30429
30429
  throw new Error(errorPrefix + "Polygon has more than the maximum 1000 vertices.");
30430
30430
  }
30431
+
30432
+ polygon.forEach(function (linearRing) {
30433
+ validateLinearRing(linearRing, geofenceId);
30434
+ });
30431
30435
  }
30432
30436
  function validateGeofencesInput(geofences) {
30433
30437
  var geofenceIds = {};