@nextgis/ngw-leaflet 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-leaflet; version: 2.5.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 2.5.2; author: NextGIS */
2
2
  function styleInject(css, ref) {
3
3
  if ( ref === void 0 ) ref = {};
4
4
  var insertAt = ref.insertAt;
@@ -18376,7 +18376,7 @@ let Cache = _Cache;
18376
18376
 
18377
18377
  var pkg = {
18378
18378
  name: "@nextgis/ngw-connector",
18379
- version: "2.5.1",
18379
+ version: "2.5.2",
18380
18380
  _priority: 12,
18381
18381
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
18382
18382
  main: "index.js",
@@ -19148,9 +19148,9 @@ class NgwConnector {
19148
19148
  credentials = credentials || this.options.auth;
19149
19149
  if (credentials) {
19150
19150
  const { login, password } = credentials;
19151
- const str = unescape(encodeURIComponent(`${login}:${password}`));
19151
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
19152
19152
  {
19153
- return window.btoa(str);
19153
+ return window.btoa(encodedStr);
19154
19154
  }
19155
19155
  }
19156
19156
  }