@nextgis/geocoder 2.5.1 → 2.5.3

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.3; 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.1; author: NextGIS */
1
+ /** Bundle of @nextgis/geocoder; version: 2.5.3; 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.1",
1210
+ version: "2.5.2",
1211
1211
  _priority: 12,
1212
1212
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
1213
1213
  main: "index.js",
@@ -1979,9 +1979,9 @@ class NgwConnector {
1979
1979
  credentials = credentials || this.options.auth;
1980
1980
  if (credentials) {
1981
1981
  const { login, password } = credentials;
1982
- const str = unescape(encodeURIComponent(`${login}:${password}`));
1982
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
1983
1983
  {
1984
- return window.btoa(str);
1984
+ return window.btoa(encodedStr);
1985
1985
  }
1986
1986
  }
1987
1987
  }