@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
|
@@ -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
|
import { objectAssign, fixUrlStr } from '@nextgis/utils';
|
|
3
3
|
import NgwConnector from '@nextgis/ngw-connector';
|
|
4
4
|
import { fetchNgwLayerItems } from '@nextgis/ngw-kit';
|
package/lib/geocoder.global.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
|
var Geocoder = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -895,7 +895,7 @@ var Geocoder = (function (exports) {
|
|
|
895
895
|
|
|
896
896
|
var pkg = {
|
|
897
897
|
name: "@nextgis/ngw-connector",
|
|
898
|
-
version: "3.0.0-alpha.
|
|
898
|
+
version: "3.0.0-alpha.3",
|
|
899
899
|
_priority: 12,
|
|
900
900
|
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
901
901
|
main: "index.js",
|
|
@@ -904,15 +904,15 @@ var Geocoder = (function (exports) {
|
|
|
904
904
|
jsdelivr: "lib/ngw-connector.global.prod.js",
|
|
905
905
|
types: "lib/index.d.ts",
|
|
906
906
|
dependencies: {
|
|
907
|
-
"@nextgis/cache": "^3.0.0-alpha.
|
|
908
|
-
"@nextgis/cancelable-promise": "^3.0.0-alpha.
|
|
909
|
-
"@nextgis/utils": "^3.0.0-alpha.
|
|
907
|
+
"@nextgis/cache": "^3.0.0-alpha.3",
|
|
908
|
+
"@nextgis/cancelable-promise": "^3.0.0-alpha.3",
|
|
909
|
+
"@nextgis/utils": "^3.0.0-alpha.3",
|
|
910
910
|
"@types/events": "^3.0.0",
|
|
911
911
|
events: "*",
|
|
912
912
|
"form-data": "^4.0.0"
|
|
913
913
|
},
|
|
914
914
|
devDependencies: {
|
|
915
|
-
"@nextgis/build-tools": "^3.0.0-alpha.
|
|
915
|
+
"@nextgis/build-tools": "^3.0.0-alpha.3"
|
|
916
916
|
},
|
|
917
917
|
scripts: {
|
|
918
918
|
clean: "rimraf ./lib",
|
|
@@ -1715,8 +1715,7 @@ var Geocoder = (function (exports) {
|
|
|
1715
1715
|
credentials = credentials || this.options.auth;
|
|
1716
1716
|
if (credentials) {
|
|
1717
1717
|
const { login, password } = credentials;
|
|
1718
|
-
const
|
|
1719
|
-
const encodedStr = encodeURIComponent(str);
|
|
1718
|
+
const encodedStr = [login, password].map(encodeURIComponent).join(":");
|
|
1720
1719
|
{
|
|
1721
1720
|
return window.btoa(encodedStr);
|
|
1722
1721
|
}
|