@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.
- package/dist/aws-amplify-geo.js +4 -0
- package/dist/aws-amplify-geo.js.map +1 -1
- package/dist/aws-amplify-geo.min.js +1 -1
- package/dist/aws-amplify-geo.min.js.map +1 -1
- package/lib/util.js +3 -0
- package/lib/util.js.map +1 -1
- package/lib-esm/util.js +3 -0
- package/lib-esm/util.js.map +1 -1
- package/package.json +3 -3
- package/src/util.ts +4 -0
package/dist/aws-amplify-geo.js
CHANGED
|
@@ -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 = {};
|