@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
  function styleInject(css, ref) {
3
3
  if ( ref === void 0 ) ref = {};
4
4
  var insertAt = ref.insertAt;
@@ -18061,7 +18061,7 @@ let Cache = _Cache;
18061
18061
 
18062
18062
  var pkg = {
18063
18063
  name: "@nextgis/ngw-connector",
18064
- version: "3.0.0-alpha.2",
18064
+ version: "3.0.0-alpha.3",
18065
18065
  _priority: 12,
18066
18066
  description: "A lightweight HTTP client optimized for use with NextGIS Web API",
18067
18067
  main: "index.js",
@@ -18070,15 +18070,15 @@ var pkg = {
18070
18070
  jsdelivr: "lib/ngw-connector.global.prod.js",
18071
18071
  types: "lib/index.d.ts",
18072
18072
  dependencies: {
18073
- "@nextgis/cache": "^3.0.0-alpha.1",
18074
- "@nextgis/cancelable-promise": "^3.0.0-alpha.1",
18075
- "@nextgis/utils": "^3.0.0-alpha.1",
18073
+ "@nextgis/cache": "^3.0.0-alpha.3",
18074
+ "@nextgis/cancelable-promise": "^3.0.0-alpha.3",
18075
+ "@nextgis/utils": "^3.0.0-alpha.3",
18076
18076
  "@types/events": "^3.0.0",
18077
18077
  events: "*",
18078
18078
  "form-data": "^4.0.0"
18079
18079
  },
18080
18080
  devDependencies: {
18081
- "@nextgis/build-tools": "^3.0.0-alpha.1"
18081
+ "@nextgis/build-tools": "^3.0.0-alpha.3"
18082
18082
  },
18083
18083
  scripts: {
18084
18084
  clean: "rimraf ./lib",
@@ -18881,8 +18881,7 @@ class NgwConnector {
18881
18881
  credentials = credentials || this.options.auth;
18882
18882
  if (credentials) {
18883
18883
  const { login, password } = credentials;
18884
- const str = `${login}:${password}`;
18885
- const encodedStr = encodeURIComponent(str);
18884
+ const encodedStr = [login, password].map(encodeURIComponent).join(":");
18886
18885
  {
18887
18886
  return window.btoa(encodedStr);
18888
18887
  }