@nextgis/ngw-map 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.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 3.0.0-alpha.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 3.0.0-alpha.3; author: NextGIS */
2
2
  import { EventEmitter } from 'events';
3
3
  import { getIcon } from '@nextgis/icons';
4
4
  import { NgwKit, fetchNgwLayerItem, fetchNgwLayerItems, fetchNgwLayerFeature, fetchNgwLayerFeatureCollection, fetchIdentifyItem, fetchIdentifyGeoJson, createNgwLayerAdapter, fetchNgwExtent, sendIdentifyRequest, getCompanyLogo, getIdentifyItems, createIdentifyItem } from '@nextgis/ngw-kit';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 3.0.0-alpha.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 3.0.0-alpha.3; author: NextGIS */
2
2
  var NgwMap = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -943,7 +943,7 @@ var NgwMap = (function (exports) {
943
943
 
944
944
  var pkg = {
945
945
  name: "@nextgis/ngw-connector",
946
- version: "3.0.0-alpha.2",
946
+ version: "3.0.0-alpha.3",
947
947
  _priority: 12,
948
948
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
949
949
  main: "index.js",
@@ -952,15 +952,15 @@ var NgwMap = (function (exports) {
952
952
  jsdelivr: "lib/ngw-connector.global.prod.js",
953
953
  types: "lib/index.d.ts",
954
954
  dependencies: {
955
- "@nextgis/cache": "^3.0.0-alpha.1",
956
- "@nextgis/cancelable-promise": "^3.0.0-alpha.1",
957
- "@nextgis/utils": "^3.0.0-alpha.1",
955
+ "@nextgis/cache": "^3.0.0-alpha.3",
956
+ "@nextgis/cancelable-promise": "^3.0.0-alpha.3",
957
+ "@nextgis/utils": "^3.0.0-alpha.3",
958
958
  "@types/events": "^3.0.0",
959
959
  events: "*",
960
960
  "form-data": "^4.0.0"
961
961
  },
962
962
  devDependencies: {
963
- "@nextgis/build-tools": "^3.0.0-alpha.1"
963
+ "@nextgis/build-tools": "^3.0.0-alpha.3"
964
964
  },
965
965
  scripts: {
966
966
  clean: "rimraf ./lib",
@@ -1763,8 +1763,7 @@ var NgwMap = (function (exports) {
1763
1763
  credentials = credentials || this.options.auth;
1764
1764
  if (credentials) {
1765
1765
  const { login, password } = credentials;
1766
- const str = `${login}:${password}`;
1767
- const encodedStr = encodeURIComponent(str);
1766
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
1768
1767
  {
1769
1768
  return window.btoa(encodedStr);
1770
1769
  }