@nextgis/geocoder 2.5.2 → 2.5.5

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: 2.5.2; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 2.5.5; 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: 2.5.2; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 2.5.5; author: NextGIS */
2
2
  var __defProp$g = Object.defineProperty;
3
3
  var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField$e = (obj, key, value) => __defNormalProp$g(obj, key + "" , value);
@@ -1207,7 +1207,7 @@ let Cache = _Cache;
1207
1207
 
1208
1208
  var pkg = {
1209
1209
  name: "@nextgis/ngw-connector",
1210
- version: "2.5.2",
1210
+ version: "2.5.5",
1211
1211
  _priority: 12,
1212
1212
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
1213
1213
  main: "index.js",
@@ -1473,7 +1473,8 @@ class ResourcesControl {
1473
1473
  }
1474
1474
  return this.connector.get("resource.search", requestOptions, __spreadValues$4({
1475
1475
  serialization: "full"
1476
- }, query)).then((resources) => {
1476
+ }, query)).then((response) => {
1477
+ const resources = Array.isArray(response) ? response : response.items;
1477
1478
  if (resources) {
1478
1479
  for (const x of resources) {
1479
1480
  this.cache.add("resource.item", CancelablePromise.resolve(x), {