@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
package/lib/geocoder.cjs.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
|
function defined(val) {
|
|
3
3
|
return val !== void 0 && val !== null;
|
|
4
4
|
}
|
|
@@ -1017,7 +1017,7 @@ function unwrapListeners(arr) {
|
|
|
1017
1017
|
|
|
1018
1018
|
var pkg = {
|
|
1019
1019
|
name: "@nextgis/ngw-connector",
|
|
1020
|
-
version: "3.0.0-alpha.
|
|
1020
|
+
version: "3.0.0-alpha.20",
|
|
1021
1021
|
_priority: 12,
|
|
1022
1022
|
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
1023
1023
|
main: "index.js",
|
|
@@ -2699,10 +2699,6 @@ function propertiesFilter(properties, filters) {
|
|
|
2699
2699
|
return logic === "any" ? filters_.some(filterFunction) : filters_.every(filterFunction);
|
|
2700
2700
|
}
|
|
2701
2701
|
|
|
2702
|
-
const config = {
|
|
2703
|
-
defaultRequestLimit: 7e3
|
|
2704
|
-
};
|
|
2705
|
-
|
|
2706
2702
|
var __defProp$3 = Object.defineProperty;
|
|
2707
2703
|
var __defProps$1 = Object.defineProperties;
|
|
2708
2704
|
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
@@ -2828,13 +2824,7 @@ function getQueries(opt, _queries = [], _parentAllParams = []) {
|
|
|
2828
2824
|
}))
|
|
2829
2825
|
);
|
|
2830
2826
|
} else {
|
|
2831
|
-
getQueries(
|
|
2832
|
-
__spreadProps$1(__spreadValues$2({}, opt), {
|
|
2833
|
-
filters: f
|
|
2834
|
-
}),
|
|
2835
|
-
_queries,
|
|
2836
|
-
[..._parentAllParams]
|
|
2837
|
-
);
|
|
2827
|
+
getQueries(__spreadProps$1(__spreadValues$2({}, opt), { filters: f }), _queries, [..._parentAllParams]);
|
|
2838
2828
|
}
|
|
2839
2829
|
}
|
|
2840
2830
|
} else if (logic === "all") {
|
|
@@ -2849,13 +2839,10 @@ function getQueries(opt, _queries = [], _parentAllParams = []) {
|
|
|
2849
2839
|
}
|
|
2850
2840
|
if (propertiesFilterList.length) {
|
|
2851
2841
|
for (const x of propertiesFilterList) {
|
|
2852
|
-
getQueries(
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
_queries,
|
|
2857
|
-
[..._parentAllParams, ...filters2]
|
|
2858
|
-
);
|
|
2842
|
+
getQueries(__spreadProps$1(__spreadValues$2({}, opt), { filters: x }), _queries, [
|
|
2843
|
+
..._parentAllParams,
|
|
2844
|
+
...filters2
|
|
2845
|
+
]);
|
|
2859
2846
|
}
|
|
2860
2847
|
} else {
|
|
2861
2848
|
_queries.push(
|
|
@@ -2889,10 +2876,8 @@ function fetchNgwLayerItemsRequest(options) {
|
|
|
2889
2876
|
intersects,
|
|
2890
2877
|
resourceId
|
|
2891
2878
|
} = options;
|
|
2892
|
-
if (limit && limit !== Number.POSITIVE_INFINITY) {
|
|
2879
|
+
if (typeof limit === "number" && limit !== Number.POSITIVE_INFINITY) {
|
|
2893
2880
|
params.limit = limit;
|
|
2894
|
-
} else {
|
|
2895
|
-
params.limit = config.defaultRequestLimit;
|
|
2896
2881
|
}
|
|
2897
2882
|
if (offset) {
|
|
2898
2883
|
params.offset = offset;
|