@nextgis/geocoder 3.0.0-alpha.0 → 3.0.0-alpha.1

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: 3.0.0-alpha.0; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.1; 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';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.0; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.1; author: NextGIS */
2
2
  var Geocoder = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -1518,6 +1518,7 @@ var Geocoder = (function (exports) {
1518
1518
  __publicField$2(this, "user");
1519
1519
  __publicField$2(this, "resources");
1520
1520
  __publicField$2(this, "cache");
1521
+ __publicField$2(this, "withCredentials");
1521
1522
  __publicField$2(this, "routeStr", "/api/component/pyramid/route");
1522
1523
  __publicField$2(this, "activeRequests", {});
1523
1524
  __publicField$2(this, "requestTransform");
@@ -1526,11 +1527,15 @@ var Geocoder = (function (exports) {
1526
1527
  if (exist) {
1527
1528
  return exist;
1528
1529
  } else {
1529
- if (this.options.route) {
1530
- this.routeStr = this.options.route;
1530
+ const { route, requestTransform, withCredentials } = this.options;
1531
+ if (route) {
1532
+ this.routeStr = route;
1531
1533
  }
1532
- if (this.options.requestTransform) {
1533
- this.requestTransform = this.options.requestTransform;
1534
+ if (requestTransform) {
1535
+ this.requestTransform = requestTransform;
1536
+ }
1537
+ if (withCredentials !== void 0) {
1538
+ this.withCredentials = withCredentials;
1534
1539
  }
1535
1540
  this.resources = new ResourcesControl({
1536
1541
  connector: this,
@@ -1804,6 +1809,7 @@ var Geocoder = (function (exports) {
1804
1809
  url = template(url, restParams);
1805
1810
  }
1806
1811
  url = encodeURI(fixUrlStr(url));
1812
+ options = __spreadValues$3({ withCredentials: this.withCredentials }, options);
1807
1813
  const {
1808
1814
  cache,
1809
1815
  signal: externalSignal,