@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
  import { EventEmitter } from 'events';
3
3
  import CancelablePromise from '@nextgis/cancelable-promise';
4
4
  import { getIcon } from '@nextgis/icons';
@@ -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 NgwMap = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -1258,7 +1258,7 @@ var NgwMap = (function (exports) {
1258
1258
 
1259
1259
  var pkg = {
1260
1260
  name: "@nextgis/ngw-connector",
1261
- version: "2.5.1",
1261
+ version: "2.5.2",
1262
1262
  _priority: 12,
1263
1263
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
1264
1264
  main: "index.js",
@@ -2030,9 +2030,9 @@ var NgwMap = (function (exports) {
2030
2030
  credentials = credentials || this.options.auth;
2031
2031
  if (credentials) {
2032
2032
  const { login, password } = credentials;
2033
- const str = unescape(encodeURIComponent(`${login}:${password}`));
2033
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
2034
2034
  {
2035
- return window.btoa(str);
2035
+ return window.btoa(encodedStr);
2036
2036
  }
2037
2037
  }
2038
2038
  }