@nextgis/geocoder 1.18.6 → 1.18.10
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/lib/geocoder.cjs.js +1 -1
- package/lib/geocoder.esm-browser.js +6 -3
- package/lib/geocoder.esm-browser.js.map +1 -1
- package/lib/geocoder.esm-browser.prod.js +1 -1
- package/lib/geocoder.esm-browser.prod.js.map +1 -1
- package/lib/geocoder.esm-bundler.js +1 -1
- package/lib/geocoder.global.js +6 -3
- package/lib/geocoder.global.js.map +1 -1
- package/lib/geocoder.global.prod.js +1 -1
- package/lib/geocoder.global.prod.js.map +1 -1
- package/package.json +3 -3
package/lib/geocoder.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/geocoder; version: 1.18.
|
|
1
|
+
/** Bundle of @nextgis/geocoder; version: 1.18.10; 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
|
-
|
|
2290
|
-
|
|
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(',') : '';
|