@nextgis/geocoder 2.5.1 → 2.5.2

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.1; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 2.5.2; 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.1; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 2.5.2; 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.1",
1213
+ version: "2.5.2",
1214
1214
  _priority: 12,
1215
1215
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
1216
1216
  main: "index.js",
@@ -1982,9 +1982,9 @@ var Geocoder = (function (exports) {
1982
1982
  credentials = credentials || this.options.auth;
1983
1983
  if (credentials) {
1984
1984
  const { login, password } = credentials;
1985
- const str = unescape(encodeURIComponent(`${login}:${password}`));
1985
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
1986
1986
  {
1987
- return window.btoa(str);
1987
+ return window.btoa(encodedStr);
1988
1988
  }
1989
1989
  }
1990
1990
  }