@nextgis/ngw-map 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/ngw-map; version: 2.5.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 2.5.2; author: NextGIS */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 2.5.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 2.5.2; author: NextGIS */
2
2
  var domain;
3
3
 
4
4
  // This constructor is used to store event handlers. Instantiating this is
@@ -1255,7 +1255,7 @@ let Cache = _Cache;
1255
1255
 
1256
1256
  var pkg = {
1257
1257
  name: "@nextgis/ngw-connector",
1258
- version: "2.5.1",
1258
+ version: "2.5.2",
1259
1259
  _priority: 12,
1260
1260
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
1261
1261
  main: "index.js",
@@ -2027,9 +2027,9 @@ class NgwConnector {
2027
2027
  credentials = credentials || this.options.auth;
2028
2028
  if (credentials) {
2029
2029
  const { login, password } = credentials;
2030
- const str = unescape(encodeURIComponent(`${login}:${password}`));
2030
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
2031
2031
  {
2032
- return window.btoa(str);
2032
+ return window.btoa(encodedStr);
2033
2033
  }
2034
2034
  }
2035
2035
  }