@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
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -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
  function defined(val) {
3
3
  return val !== void 0 && val !== null;
4
4
  }
@@ -1515,6 +1515,7 @@ class NgwConnector {
1515
1515
  __publicField$2(this, "user");
1516
1516
  __publicField$2(this, "resources");
1517
1517
  __publicField$2(this, "cache");
1518
+ __publicField$2(this, "withCredentials");
1518
1519
  __publicField$2(this, "routeStr", "/api/component/pyramid/route");
1519
1520
  __publicField$2(this, "activeRequests", {});
1520
1521
  __publicField$2(this, "requestTransform");
@@ -1523,11 +1524,15 @@ class NgwConnector {
1523
1524
  if (exist) {
1524
1525
  return exist;
1525
1526
  } else {
1526
- if (this.options.route) {
1527
- this.routeStr = this.options.route;
1527
+ const { route, requestTransform, withCredentials } = this.options;
1528
+ if (route) {
1529
+ this.routeStr = route;
1528
1530
  }
1529
- if (this.options.requestTransform) {
1530
- this.requestTransform = this.options.requestTransform;
1531
+ if (requestTransform) {
1532
+ this.requestTransform = requestTransform;
1533
+ }
1534
+ if (withCredentials !== void 0) {
1535
+ this.withCredentials = withCredentials;
1531
1536
  }
1532
1537
  this.resources = new ResourcesControl({
1533
1538
  connector: this,
@@ -1801,6 +1806,7 @@ class NgwConnector {
1801
1806
  url = template(url, restParams);
1802
1807
  }
1803
1808
  url = encodeURI(fixUrlStr(url));
1809
+ options = __spreadValues$3({ withCredentials: this.withCredentials }, options);
1804
1810
  const {
1805
1811
  cache,
1806
1812
  signal: externalSignal,