@nextgis/geocoder 1.18.6 → 1.18.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.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/geocoder; version: 1.18.6; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 1.18.9; author: NextGIS */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/geocoder; version: 1.18.6; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 1.18.9; author: NextGIS */
2
2
  class CancelError extends Error {
3
3
  constructor() {
4
4
  super();
@@ -2286,8 +2286,11 @@ const FEATURE_REQUEST_PARAMS = {
2286
2286
  };
2287
2287
  function updateItemRequestParam(params, options) {
2288
2288
  const { extensions, geom, fields, srs, ilike, like } = options;
2289
- if (extensions) {
2290
- params.extensions = extensions.join(',');
2289
+ // Empty extesions by default
2290
+ let extensionsStr = extensions ? extensions.join(',') : '';
2291
+ // Use character * to set all extensions
2292
+ if (extensionsStr !== '*') {
2293
+ params.extensions = extensionsStr;
2291
2294
  }
2292
2295
  if (fields !== undefined) {
2293
2296
  params.fields = Array.isArray(fields) ? fields.join(',') : '';