@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.
package/lib/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { EventEmitter } from 'events';
3
2
  import { getIcon } from '@nextgis/icons';
4
3
  import { MapOptions, RuntimeParams, WebMapEvents, WebMap, MapControls, ControlPosition, LayerAdapter, LayerDef, FitOptions, MapClickEvent } from '@nextgis/webmap';
@@ -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
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -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 domain;
3
3
 
4
4
  // This constructor is used to store event handlers. Instantiating this is
@@ -940,7 +940,7 @@ let Cache = _Cache;
940
940
 
941
941
  var pkg = {
942
942
  name: "@nextgis/ngw-connector",
943
- version: "3.0.0-alpha.2",
943
+ version: "3.0.0-alpha.3",
944
944
  _priority: 12,
945
945
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
946
946
  main: "index.js",
@@ -949,15 +949,15 @@ var pkg = {
949
949
  jsdelivr: "lib/ngw-connector.global.prod.js",
950
950
  types: "lib/index.d.ts",
951
951
  dependencies: {
952
- "@nextgis/cache": "^3.0.0-alpha.1",
953
- "@nextgis/cancelable-promise": "^3.0.0-alpha.1",
954
- "@nextgis/utils": "^3.0.0-alpha.1",
952
+ "@nextgis/cache": "^3.0.0-alpha.3",
953
+ "@nextgis/cancelable-promise": "^3.0.0-alpha.3",
954
+ "@nextgis/utils": "^3.0.0-alpha.3",
955
955
  "@types/events": "^3.0.0",
956
956
  events: "*",
957
957
  "form-data": "^4.0.0"
958
958
  },
959
959
  devDependencies: {
960
- "@nextgis/build-tools": "^3.0.0-alpha.1"
960
+ "@nextgis/build-tools": "^3.0.0-alpha.3"
961
961
  },
962
962
  scripts: {
963
963
  clean: "rimraf ./lib",
@@ -1760,8 +1760,7 @@ class NgwConnector {
1760
1760
  credentials = credentials || this.options.auth;
1761
1761
  if (credentials) {
1762
1762
  const { login, password } = credentials;
1763
- const str = `${login}:${password}`;
1764
- const encodedStr = encodeURIComponent(str);
1763
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
1765
1764
  {
1766
1765
  return window.btoa(encodedStr);
1767
1766
  }