@nextgis/ngw-leaflet 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-leaflet; version: 3.0.0-alpha.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 3.0.0-alpha.3; author: NextGIS */
2
2
  import 'leaflet/dist/leaflet.css';
3
3
  import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';
4
4
  import { NgwMap } from '@nextgis/ngw-map';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-leaflet; version: 3.0.0-alpha.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 3.0.0-alpha.3; author: NextGIS */
2
2
  var NgwLeaflet = (function () {
3
3
  'use strict';
4
4
 
@@ -18064,7 +18064,7 @@ var NgwLeaflet = (function () {
18064
18064
 
18065
18065
  var pkg = {
18066
18066
  name: "@nextgis/ngw-connector",
18067
- version: "3.0.0-alpha.2",
18067
+ version: "3.0.0-alpha.3",
18068
18068
  _priority: 12,
18069
18069
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
18070
18070
  main: "index.js",
@@ -18073,15 +18073,15 @@ var NgwLeaflet = (function () {
18073
18073
  jsdelivr: "lib/ngw-connector.global.prod.js",
18074
18074
  types: "lib/index.d.ts",
18075
18075
  dependencies: {
18076
- "@nextgis/cache": "^3.0.0-alpha.1",
18077
- "@nextgis/cancelable-promise": "^3.0.0-alpha.1",
18078
- "@nextgis/utils": "^3.0.0-alpha.1",
18076
+ "@nextgis/cache": "^3.0.0-alpha.3",
18077
+ "@nextgis/cancelable-promise": "^3.0.0-alpha.3",
18078
+ "@nextgis/utils": "^3.0.0-alpha.3",
18079
18079
  "@types/events": "^3.0.0",
18080
18080
  events: "*",
18081
18081
  "form-data": "^4.0.0"
18082
18082
  },
18083
18083
  devDependencies: {
18084
- "@nextgis/build-tools": "^3.0.0-alpha.1"
18084
+ "@nextgis/build-tools": "^3.0.0-alpha.3"
18085
18085
  },
18086
18086
  scripts: {
18087
18087
  clean: "rimraf ./lib",
@@ -18884,8 +18884,7 @@ var NgwLeaflet = (function () {
18884
18884
  credentials = credentials || this.options.auth;
18885
18885
  if (credentials) {
18886
18886
  const { login, password } = credentials;
18887
- const str = `${login}:${password}`;
18888
- const encodedStr = encodeURIComponent(str);
18887
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
18889
18888
  {
18890
18889
  return window.btoa(encodedStr);
18891
18890
  }