@aws-amplify/geo 1.1.13-unstable.4 → 1.1.13-unstable.9

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.
@@ -27095,9 +27095,15 @@ function () {
27095
27095
  locationServiceInput.IndexName = options.searchIndexName;
27096
27096
  }
27097
27097
 
27098
+ if (options['biasPosition'] && options['searchAreaConstraints']) {
27099
+ throw new Error('BiasPosition and SearchAreaConstraints are mutually exclusive, please remove one or the other from the options object');
27100
+ }
27101
+
27098
27102
  if (options['biasPosition']) {
27099
27103
  locationServiceInput.BiasPosition = options['biasPosition'];
27100
- } else if (options['searchAreaConstraints']) {
27104
+ }
27105
+
27106
+ if (options['searchAreaConstraints']) {
27101
27107
  locationServiceInput.FilterBBox = options['searchAreaConstraints'];
27102
27108
  }
27103
27109
  }
@@ -27269,13 +27275,13 @@ function () {
27269
27275
 
27270
27276
  AmazonLocationServiceProvider.prototype._verifyMapResources = function () {
27271
27277
  if (!this._config.maps) {
27272
- var errorString = "No map resources found in amplify config, run 'amplify add geo' to create them and ensure to run `amplify push` after";
27278
+ var errorString = "No map resources found in amplify config, run 'amplify add geo' to create them and run `amplify push` after";
27273
27279
  logger.warn(errorString);
27274
27280
  throw new Error(errorString);
27275
27281
  }
27276
27282
 
27277
27283
  if (!this._config.maps["default"]) {
27278
- var errorString = "No default map resource found in amplify config, run 'amplify add geo' to create one and ensure to run `amplify push` after";
27284
+ var errorString = "No default map resource found in amplify config, run 'amplify add geo' to create one and run `amplify push` after";
27279
27285
  logger.warn(errorString);
27280
27286
  throw new Error(errorString);
27281
27287
  }
@@ -27283,7 +27289,7 @@ function () {
27283
27289
 
27284
27290
  AmazonLocationServiceProvider.prototype._verifySearchIndex = function (optionalSearchIndex) {
27285
27291
  if ((!this._config.search_indices || !this._config.search_indices["default"]) && !optionalSearchIndex) {
27286
- var errorString = 'No Search Index found, please run `amplify add geo` to add one and ensure to run `amplify push` after.';
27292
+ var errorString = 'No Search Index found, please run `amplify add geo` to add one and run `amplify push` after.';
27287
27293
  logger.warn(errorString);
27288
27294
  throw new Error(errorString);
27289
27295
  }