@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.
- package/lib/ngw-map.cjs.js +1 -1
- package/lib/ngw-map.esm-browser.js +4 -4
- package/lib/ngw-map.esm-browser.js.map +1 -1
- package/lib/ngw-map.esm-browser.prod.js +1 -1
- package/lib/ngw-map.esm-browser.prod.js.map +1 -1
- package/lib/ngw-map.esm-bundler.js +1 -1
- package/lib/ngw-map.global.js +4 -4
- package/lib/ngw-map.global.js.map +1 -1
- package/lib/ngw-map.global.prod.js +1 -1
- package/lib/ngw-map.global.prod.js.map +1 -1
- package/package.json +4 -4
package/lib/ngw-map.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version: 2.5.
|
|
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.
|
|
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
|
|
2030
|
+
const encodedStr = [login, password].map(encodeURIComponent).join(":");
|
|
2031
2031
|
{
|
|
2032
|
-
return window.btoa(
|
|
2032
|
+
return window.btoa(encodedStr);
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|