@aws-amplify/geo 1.1.13-unstable.4 → 1.1.14-unstable.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.
- package/CHANGELOG.md +12 -0
- package/dist/aws-amplify-geo.js +10 -4
- package/dist/aws-amplify-geo.js.map +1 -1
- package/dist/aws-amplify-geo.min.js +6 -6
- package/dist/aws-amplify-geo.min.js.map +1 -1
- package/lib/Providers/AmazonLocationServiceProvider.js +7 -4
- package/lib/Providers/AmazonLocationServiceProvider.js.map +1 -1
- package/lib-esm/Providers/AmazonLocationServiceProvider.js +7 -4
- package/lib-esm/Providers/AmazonLocationServiceProvider.js.map +1 -1
- package/package.json +3 -3
- package/src/Providers/AmazonLocationServiceProvider.ts +10 -4
- package/src/types/Geo.ts +1 -1
- package/lib/types/AmazonLocationServicesProvider.d.ts +0 -4
- package/lib/types/AmazonLocationServicesProvider.js +0 -3
- package/lib/types/AmazonLocationServicesProvider.js.map +0 -1
- package/lib-esm/types/AmazonLocationServicesProvider.d.ts +0 -4
- package/lib-esm/types/AmazonLocationServicesProvider.js +0 -1
- package/lib-esm/types/AmazonLocationServicesProvider.js.map +0 -1
- package/src/types/AmazonLocationServicesProvider.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.1.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/geo@1.1.12...@aws-amplify/geo@1.1.13) (2022-01-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **geo:** error if mutually exclusive options are given ([67af04a](https://github.com/aws-amplify/amplify-js/commit/67af04a3a4ae6e7d727403437517f1693f672ab6))
|
|
12
|
+
* **geo:** remove 'ensure to' from error message ([ce84b9b](https://github.com/aws-amplify/amplify-js/commit/ce84b9b7a99081b81ebd193bc900eb73a1554169))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [1.1.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/geo@1.1.11...@aws-amplify/geo@1.1.12) (2022-01-07)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-amplify/geo
|
package/dist/aws-amplify-geo.js
CHANGED
|
@@ -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
|
-
}
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|