@nextgis/ngw-leaflet 2.5.0 → 2.5.1
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/ngw-leaflet.esm-browser.js +61 -3
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.esm-bundler.js +1 -1
- package/lib/ngw-leaflet.global.js +61 -3
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +1 -1
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 2.5.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 2.5.1; author: NextGIS */
|
|
2
2
|
function styleInject(css, ref) {
|
|
3
3
|
if ( ref === void 0 ) ref = {};
|
|
4
4
|
var insertAt = ref.insertAt;
|
|
@@ -18374,6 +18374,62 @@ const _Cache = class _Cache {
|
|
|
18374
18374
|
__publicField$v(_Cache, "instance", {});
|
|
18375
18375
|
let Cache = _Cache;
|
|
18376
18376
|
|
|
18377
|
+
var pkg = {
|
|
18378
|
+
name: "@nextgis/ngw-connector",
|
|
18379
|
+
version: "2.5.1",
|
|
18380
|
+
_priority: 12,
|
|
18381
|
+
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
18382
|
+
main: "index.js",
|
|
18383
|
+
module: "lib/ngw-connector.esm-bundler.js",
|
|
18384
|
+
unpkg: "lib/ngw-connector.global.prod.js",
|
|
18385
|
+
jsdelivr: "lib/ngw-connector.global.prod.js",
|
|
18386
|
+
types: "lib/index.d.ts",
|
|
18387
|
+
dependencies: {
|
|
18388
|
+
"@nextgis/cache": "^2.5.0",
|
|
18389
|
+
"@nextgis/cancelable-promise": "^2.5.0",
|
|
18390
|
+
"@nextgis/utils": "^2.5.0",
|
|
18391
|
+
"@types/events": "^3.0.0",
|
|
18392
|
+
events: "*",
|
|
18393
|
+
"form-data": "^4.0.0"
|
|
18394
|
+
},
|
|
18395
|
+
devDependencies: {
|
|
18396
|
+
"@nextgis/build-tools": "^2.5.0"
|
|
18397
|
+
},
|
|
18398
|
+
scripts: {
|
|
18399
|
+
clean: "rimraf ./lib",
|
|
18400
|
+
dev: "node ../build-tools/lib/build.js",
|
|
18401
|
+
prod: "npm run dev -- --release",
|
|
18402
|
+
lint: "eslint ./src/**/*.ts --fix --c ../../.eslintrc",
|
|
18403
|
+
watch: "npm run dev -- --watch",
|
|
18404
|
+
"gen:types": "node ./scripts/generator"
|
|
18405
|
+
},
|
|
18406
|
+
buildOptions: {
|
|
18407
|
+
name: "NgwConnector",
|
|
18408
|
+
formats: [
|
|
18409
|
+
"esm-bundler",
|
|
18410
|
+
"esm-browser",
|
|
18411
|
+
"cjs",
|
|
18412
|
+
"global"
|
|
18413
|
+
]
|
|
18414
|
+
},
|
|
18415
|
+
keywords: [
|
|
18416
|
+
"NextGIS",
|
|
18417
|
+
"MAP"
|
|
18418
|
+
],
|
|
18419
|
+
author: "NextGIS",
|
|
18420
|
+
files: [
|
|
18421
|
+
"index.js",
|
|
18422
|
+
"lib"
|
|
18423
|
+
],
|
|
18424
|
+
license: "MIT",
|
|
18425
|
+
homepage: "https://github.com/nextgis/nextgis_frontend/tree/master/packages/ngw-connector#readme",
|
|
18426
|
+
repository: {
|
|
18427
|
+
type: "git",
|
|
18428
|
+
url: "git://github.com/nextgis/nextgis_frontend.git"
|
|
18429
|
+
},
|
|
18430
|
+
gitHead: "edc68033f914f6c95c4125b9738bba6d36e990b4"
|
|
18431
|
+
};
|
|
18432
|
+
|
|
18377
18433
|
var __defProp$F = Object.defineProperty;
|
|
18378
18434
|
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
18379
18435
|
var __publicField$u = (obj, key, value) => __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -18952,6 +19008,7 @@ class NgwConnector {
|
|
|
18952
19008
|
__publicField$p(this, "resources");
|
|
18953
19009
|
__publicField$p(this, "cache");
|
|
18954
19010
|
__publicField$p(this, "withCredentials");
|
|
19011
|
+
__publicField$p(this, "client", `NextGIS-NGW-Connector/${pkg.version}`);
|
|
18955
19012
|
__publicField$p(this, "routeStr", "/api/component/pyramid/route");
|
|
18956
19013
|
__publicField$p(this, "activeRequests", []);
|
|
18957
19014
|
__publicField$p(this, "requestTransform");
|
|
@@ -19017,7 +19074,8 @@ class NgwConnector {
|
|
|
19017
19074
|
const auth = this.options.auth;
|
|
19018
19075
|
const makeConnect = () => new CancelablePromise((resolve, reject) => {
|
|
19019
19076
|
const makeQuery = () => {
|
|
19020
|
-
|
|
19077
|
+
const routeUrl = `${this.routeStr}?client=${this.client}`;
|
|
19078
|
+
return this.makeQuery(routeUrl.toString(), {}, {}).then((route) => {
|
|
19021
19079
|
resolve(route);
|
|
19022
19080
|
}).catch((er) => {
|
|
19023
19081
|
reject(er);
|
|
@@ -19448,7 +19506,7 @@ function updateItemRequestParam(params, options) {
|
|
|
19448
19506
|
if (extensionsStr !== "*") {
|
|
19449
19507
|
params.extensions = extensionsStr;
|
|
19450
19508
|
}
|
|
19451
|
-
if (fields !== void 0) {
|
|
19509
|
+
if (fields !== void 0 && fields !== null) {
|
|
19452
19510
|
params.fields = Array.isArray(fields) ? fields.join(",") : "";
|
|
19453
19511
|
}
|
|
19454
19512
|
if (geom !== void 0) {
|