@nextgis/geocoder 3.0.0-alpha.2 → 3.0.0-alpha.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.
- package/lib/geocoder.cjs.js +1 -1
- package/lib/geocoder.esm-browser.js +7 -8
- package/lib/geocoder.esm-browser.js.map +1 -1
- package/lib/geocoder.esm-browser.prod.js +1 -1
- package/lib/geocoder.esm-browser.prod.js.map +1 -1
- package/lib/geocoder.esm-bundler.js +1 -1
- package/lib/geocoder.global.js +7 -8
- package/lib/geocoder.global.js.map +1 -1
- package/lib/geocoder.global.prod.js +1 -1
- package/lib/geocoder.global.prod.js.map +1 -1
- package/package.json +7 -7
package/lib/geocoder.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/geocoder; version: 3.0.0-alpha.3; author: NextGIS */
|
|
2
2
|
function defined(val) {
|
|
3
3
|
return val !== void 0 && val !== null;
|
|
4
4
|
}
|
|
@@ -892,7 +892,7 @@ let Cache = _Cache;
|
|
|
892
892
|
|
|
893
893
|
var pkg = {
|
|
894
894
|
name: "@nextgis/ngw-connector",
|
|
895
|
-
version: "3.0.0-alpha.
|
|
895
|
+
version: "3.0.0-alpha.3",
|
|
896
896
|
_priority: 12,
|
|
897
897
|
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
898
898
|
main: "index.js",
|
|
@@ -901,15 +901,15 @@ var pkg = {
|
|
|
901
901
|
jsdelivr: "lib/ngw-connector.global.prod.js",
|
|
902
902
|
types: "lib/index.d.ts",
|
|
903
903
|
dependencies: {
|
|
904
|
-
"@nextgis/cache": "^3.0.0-alpha.
|
|
905
|
-
"@nextgis/cancelable-promise": "^3.0.0-alpha.
|
|
906
|
-
"@nextgis/utils": "^3.0.0-alpha.
|
|
904
|
+
"@nextgis/cache": "^3.0.0-alpha.3",
|
|
905
|
+
"@nextgis/cancelable-promise": "^3.0.0-alpha.3",
|
|
906
|
+
"@nextgis/utils": "^3.0.0-alpha.3",
|
|
907
907
|
"@types/events": "^3.0.0",
|
|
908
908
|
events: "*",
|
|
909
909
|
"form-data": "^4.0.0"
|
|
910
910
|
},
|
|
911
911
|
devDependencies: {
|
|
912
|
-
"@nextgis/build-tools": "^3.0.0-alpha.
|
|
912
|
+
"@nextgis/build-tools": "^3.0.0-alpha.3"
|
|
913
913
|
},
|
|
914
914
|
scripts: {
|
|
915
915
|
clean: "rimraf ./lib",
|
|
@@ -1712,8 +1712,7 @@ class NgwConnector {
|
|
|
1712
1712
|
credentials = credentials || this.options.auth;
|
|
1713
1713
|
if (credentials) {
|
|
1714
1714
|
const { login, password } = credentials;
|
|
1715
|
-
const
|
|
1716
|
-
const encodedStr = encodeURIComponent(str);
|
|
1715
|
+
const encodedStr = [login, password].map(encodeURIComponent).join(":");
|
|
1717
1716
|
{
|
|
1718
1717
|
return window.btoa(encodedStr);
|
|
1719
1718
|
}
|