@nextgis/ngw-leaflet 1.19.5 → 1.19.6
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 +2 -2
- 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 +2 -2
- 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: 1.19.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 1.19.6; author: NextGIS */
|
|
2
2
|
function styleInject(css, ref) {
|
|
3
3
|
if ( ref === void 0 ) ref = {};
|
|
4
4
|
var insertAt = ref.insertAt;
|
|
@@ -18333,6 +18333,62 @@ class Cache {
|
|
|
18333
18333
|
}
|
|
18334
18334
|
Cache.instance = {};
|
|
18335
18335
|
|
|
18336
|
+
var pkg = {
|
|
18337
|
+
name: "@nextgis/ngw-connector",
|
|
18338
|
+
version: "1.19.6",
|
|
18339
|
+
_priority: 12,
|
|
18340
|
+
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
18341
|
+
main: "index.js",
|
|
18342
|
+
module: "lib/ngw-connector.esm-bundler.js",
|
|
18343
|
+
unpkg: "lib/ngw-connector.global.prod.js",
|
|
18344
|
+
jsdelivr: "lib/ngw-connector.global.prod.js",
|
|
18345
|
+
types: "lib/index.d.ts",
|
|
18346
|
+
dependencies: {
|
|
18347
|
+
"@nextgis/cache": "^1.19.0",
|
|
18348
|
+
"@nextgis/cancelable-promise": "^1.19.0",
|
|
18349
|
+
"@nextgis/utils": "^1.19.0",
|
|
18350
|
+
"@types/events": "^3.0.0",
|
|
18351
|
+
events: "^3.3.0",
|
|
18352
|
+
"form-data": "^4.0.0"
|
|
18353
|
+
},
|
|
18354
|
+
devDependencies: {
|
|
18355
|
+
"@nextgis/build-tools": "^1.19.0"
|
|
18356
|
+
},
|
|
18357
|
+
scripts: {
|
|
18358
|
+
clean: "rimraf ./lib",
|
|
18359
|
+
dev: "node ../build-tools/lib/build.js",
|
|
18360
|
+
prod: "npm run dev -- --release",
|
|
18361
|
+
lint: "eslint ./src/**/*.ts --fix --c ../../.eslintrc",
|
|
18362
|
+
watch: "npm run dev -- --watch",
|
|
18363
|
+
"gen:types": "node ./scripts/generator"
|
|
18364
|
+
},
|
|
18365
|
+
buildOptions: {
|
|
18366
|
+
name: "NgwConnector",
|
|
18367
|
+
formats: [
|
|
18368
|
+
"esm-bundler",
|
|
18369
|
+
"esm-browser",
|
|
18370
|
+
"cjs",
|
|
18371
|
+
"global"
|
|
18372
|
+
]
|
|
18373
|
+
},
|
|
18374
|
+
keywords: [
|
|
18375
|
+
"NextGIS",
|
|
18376
|
+
"MAP"
|
|
18377
|
+
],
|
|
18378
|
+
author: "NextGIS",
|
|
18379
|
+
files: [
|
|
18380
|
+
"index.js",
|
|
18381
|
+
"lib"
|
|
18382
|
+
],
|
|
18383
|
+
license: "MIT",
|
|
18384
|
+
homepage: "https://github.com/nextgis/nextgis_frontend/tree/master/packages/ngw-connector#readme",
|
|
18385
|
+
repository: {
|
|
18386
|
+
type: "git",
|
|
18387
|
+
url: "git://github.com/nextgis/nextgis_frontend.git"
|
|
18388
|
+
},
|
|
18389
|
+
gitHead: "edc68033f914f6c95c4125b9738bba6d36e990b4"
|
|
18390
|
+
};
|
|
18391
|
+
|
|
18336
18392
|
/**
|
|
18337
18393
|
* Thrown when...
|
|
18338
18394
|
*/
|
|
@@ -18878,6 +18934,7 @@ class NgwConnector {
|
|
|
18878
18934
|
this.options = options;
|
|
18879
18935
|
this.id = ID$1++;
|
|
18880
18936
|
this.emitter = new events.exports.EventEmitter();
|
|
18937
|
+
this.client = `NextGIS-NGW-Connector/${pkg.version}`;
|
|
18881
18938
|
this.routeStr = '/api/component/pyramid/route';
|
|
18882
18939
|
this.activeRequests = [];
|
|
18883
18940
|
const exist = findConnector(options);
|
|
@@ -18929,7 +18986,8 @@ class NgwConnector {
|
|
|
18929
18986
|
const auth = this.options.auth;
|
|
18930
18987
|
const makeConnect = () => new CancelablePromise((resolve, reject) => {
|
|
18931
18988
|
const makeQuery = () => {
|
|
18932
|
-
|
|
18989
|
+
const routeUrl = `${this.routeStr}?client=${this.client}`;
|
|
18990
|
+
return this.makeQuery(routeUrl.toString(), {}, {})
|
|
18933
18991
|
.then((route) => {
|
|
18934
18992
|
resolve(route);
|
|
18935
18993
|
})
|
|
@@ -20240,7 +20298,7 @@ function updateItemRequestParam(params, options) {
|
|
|
20240
20298
|
if (extensionsStr !== '*') {
|
|
20241
20299
|
params.extensions = extensionsStr;
|
|
20242
20300
|
}
|
|
20243
|
-
if (fields !== undefined) {
|
|
20301
|
+
if (fields !== undefined && fields !== null) {
|
|
20244
20302
|
params.fields = Array.isArray(fields) ? fields.join(',') : '';
|
|
20245
20303
|
}
|
|
20246
20304
|
if (geom !== undefined) {
|