@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
  import CancelablePromise from '@nextgis/cancelable-promise';
3
3
  import { objectAssign, fixUrlStr } from '@nextgis/utils';
4
4
  import NgwConnector from '@nextgis/ngw-connector';
@@ -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 Geocoder = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -1210,7 +1210,7 @@ var Geocoder = (function (exports) {
1210
1210
 
1211
1211
  var pkg = {
1212
1212
  name: "@nextgis/ngw-connector",
1213
- version: "2.5.2",
1213
+ version: "2.5.5",
1214
1214
  _priority: 12,
1215
1215
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
1216
1216
  main: "index.js",
@@ -1476,7 +1476,8 @@ var Geocoder = (function (exports) {
1476
1476
  }
1477
1477
  return this.connector.get("resource.search", requestOptions, __spreadValues$4({
1478
1478
  serialization: "full"
1479
- }, query)).then((resources) => {
1479
+ }, query)).then((response) => {
1480
+ const resources = Array.isArray(response) ? response : response.items;
1480
1481
  if (resources) {
1481
1482
  for (const x of resources) {
1482
1483
  this.cache.add("resource.item", CancelablePromise.resolve(x), {