@nextgis/geocoder 3.0.0-alpha.19 → 3.0.0-alpha.20
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 +8 -23
- 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 +8 -23
- 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 +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.20; author: NextGIS */
|
|
2
2
|
import { objectAssign, fixUrlStr } from '@nextgis/utils';
|
|
3
3
|
import NgwConnector from '@nextgis/ngw-connector';
|
|
4
4
|
import { fetchNgwLayerItems } from '@nextgis/ngw-kit';
|
package/lib/geocoder.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.20; author: NextGIS */
|
|
2
2
|
var Geocoder = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -1020,7 +1020,7 @@ var Geocoder = (function (exports) {
|
|
|
1020
1020
|
|
|
1021
1021
|
var pkg = {
|
|
1022
1022
|
name: "@nextgis/ngw-connector",
|
|
1023
|
-
version: "3.0.0-alpha.
|
|
1023
|
+
version: "3.0.0-alpha.20",
|
|
1024
1024
|
_priority: 12,
|
|
1025
1025
|
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
1026
1026
|
main: "index.js",
|
|
@@ -2702,10 +2702,6 @@ var Geocoder = (function (exports) {
|
|
|
2702
2702
|
return logic === "any" ? filters_.some(filterFunction) : filters_.every(filterFunction);
|
|
2703
2703
|
}
|
|
2704
2704
|
|
|
2705
|
-
const config = {
|
|
2706
|
-
defaultRequestLimit: 7e3
|
|
2707
|
-
};
|
|
2708
|
-
|
|
2709
2705
|
var __defProp$3 = Object.defineProperty;
|
|
2710
2706
|
var __defProps$1 = Object.defineProperties;
|
|
2711
2707
|
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
@@ -2831,13 +2827,7 @@ var Geocoder = (function (exports) {
|
|
|
2831
2827
|
}))
|
|
2832
2828
|
);
|
|
2833
2829
|
} else {
|
|
2834
|
-
getQueries(
|
|
2835
|
-
__spreadProps$1(__spreadValues$2({}, opt), {
|
|
2836
|
-
filters: f
|
|
2837
|
-
}),
|
|
2838
|
-
_queries,
|
|
2839
|
-
[..._parentAllParams]
|
|
2840
|
-
);
|
|
2830
|
+
getQueries(__spreadProps$1(__spreadValues$2({}, opt), { filters: f }), _queries, [..._parentAllParams]);
|
|
2841
2831
|
}
|
|
2842
2832
|
}
|
|
2843
2833
|
} else if (logic === "all") {
|
|
@@ -2852,13 +2842,10 @@ var Geocoder = (function (exports) {
|
|
|
2852
2842
|
}
|
|
2853
2843
|
if (propertiesFilterList.length) {
|
|
2854
2844
|
for (const x of propertiesFilterList) {
|
|
2855
|
-
getQueries(
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
_queries,
|
|
2860
|
-
[..._parentAllParams, ...filters2]
|
|
2861
|
-
);
|
|
2845
|
+
getQueries(__spreadProps$1(__spreadValues$2({}, opt), { filters: x }), _queries, [
|
|
2846
|
+
..._parentAllParams,
|
|
2847
|
+
...filters2
|
|
2848
|
+
]);
|
|
2862
2849
|
}
|
|
2863
2850
|
} else {
|
|
2864
2851
|
_queries.push(
|
|
@@ -2892,10 +2879,8 @@ var Geocoder = (function (exports) {
|
|
|
2892
2879
|
intersects,
|
|
2893
2880
|
resourceId
|
|
2894
2881
|
} = options;
|
|
2895
|
-
if (limit && limit !== Number.POSITIVE_INFINITY) {
|
|
2882
|
+
if (typeof limit === "number" && limit !== Number.POSITIVE_INFINITY) {
|
|
2896
2883
|
params.limit = limit;
|
|
2897
|
-
} else {
|
|
2898
|
-
params.limit = config.defaultRequestLimit;
|
|
2899
2884
|
}
|
|
2900
2885
|
if (offset) {
|
|
2901
2886
|
params.offset = offset;
|