geoserver-node-client 1.4.8 → 1.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/README.md +3 -6
- package/dist/package.json +13 -12
- package/dist/src/about.js +17 -17
- package/dist/src/datastore.js +105 -105
- package/dist/src/imagemosaic.js +32 -32
- package/dist/src/layer.js +472 -201
- package/dist/src/layergroup.js +31 -32
- package/dist/src/namespace.js +44 -44
- package/dist/src/reset-reload.js +14 -14
- package/dist/src/security.js +87 -41
- package/dist/src/settings.js +37 -37
- package/dist/src/style.js +77 -77
- package/dist/src/util/geoserver.js +7 -6
- package/dist/src/workspace.js +49 -49
- package/geoserver-rest-client.js +2 -2
- package/package.json +13 -12
- package/src/about.js +5 -5
- package/src/datastore.js +69 -29
- package/src/imagemosaic.js +38 -11
- package/src/layer.js +361 -79
- package/src/layergroup.js +18 -19
- package/src/namespace.js +11 -10
- package/src/reset-reload.js +3 -3
- package/src/security.js +31 -6
- package/src/settings.js +16 -6
- package/src/style.js +36 -18
- package/src/util/geoserver.js +7 -9
- package/src/workspace.js +13 -9
package/README.md
CHANGED
|
@@ -161,13 +161,10 @@ npm run release
|
|
|
161
161
|
|
|
162
162
|
## Who do I talk to?
|
|
163
163
|
|
|
164
|
+
You need professional support, maintenance or project-driven development around ***geoserver-node-client***? Please contact a service provider listed below:
|
|
165
|
+
|
|
164
166
|
- meggsimum (Christian Mayer) - info __at## meggsimum ~~dot** de
|
|
165
167
|
|
|
166
168
|
## Credits
|
|
167
169
|
|
|
168
|
-
This project was initiated by [meggsimum](https://meggsimum.de) within the [mFund](https://www.
|
|
169
|
-
<p><img src="https://sauber-projekt.de/wp-content/uploads/2018/12/SAG_SAUBER_Logo_Dez3_transparent-1-e1543843688935.png" alt="SAUBER Logo" width="200"/></p>.
|
|
170
|
-
<p><img src="http://www.klips-projekt.de/wp-content/uploads/2021/02/SAG_KLIPS-Logo_Jan21.png" alt="KLIPS Logo" width="200"/></p>.
|
|
171
|
-
|
|
172
|
-
<img src="https://sauber-projekt.de/wp-content/uploads/2018/12/mfund-logo-download-e1547545420815-300x77.jpg" alt="mFund Logo" width="300"/>
|
|
173
|
-
<img src="https://sauber-projekt.de/wp-content/uploads/2019/06/BMVI_Fz_2017_Office_Farbe_de_Bundestag-400x402.png" alt="BMVI Logo" height="200"/>
|
|
170
|
+
This project was initiated by [meggsimum](https://meggsimum.de) within the [mFund](https://www.bmv.de/EN/Topics/Digital-Matters/mFund/mFund.html) research project **SAUBER** and was further developed in the mFund research project **KLIPS**.
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geoserver-node-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Node.js client for GeoServer REST API",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "geoserver-rest-client.js",
|
|
@@ -36,22 +36,23 @@
|
|
|
36
36
|
"author": "C. Mayer, meggsimum (info_at*meggsimum?dot?de)",
|
|
37
37
|
"license": "BSD-2-Clause",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@babel/runtime": "^7.
|
|
39
|
+
"@babel/runtime": "^7.27.6",
|
|
40
40
|
"node-fetch": "^3.3.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/cli": "^7.23.0",
|
|
44
|
-
"@babel/core": "^7.
|
|
45
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
44
|
+
"@babel/core": "^7.27.4",
|
|
45
|
+
"@babel/plugin-transform-runtime": "^7.27.4",
|
|
46
46
|
"@babel/preset-env": "^7.22.20",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"eslint
|
|
50
|
-
"eslint-
|
|
51
|
-
"eslint-plugin-
|
|
52
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
47
|
+
"@eslint/compat": "^1.2.9",
|
|
48
|
+
"chai": "^6.0.1",
|
|
49
|
+
"eslint": "^9.29.0",
|
|
50
|
+
"eslint-config-prettier": "^10.1.5",
|
|
51
|
+
"eslint-plugin-prettier": "^5.5.1",
|
|
53
52
|
"jsdoc": "^4.0.2",
|
|
54
|
-
"mocha": "^11.
|
|
55
|
-
"
|
|
53
|
+
"mocha": "^11.7.1",
|
|
54
|
+
"neostandard": "^0.12.1",
|
|
55
|
+
"prettier": "^3.6.1",
|
|
56
|
+
"release-it": "^19.0.3"
|
|
56
57
|
}
|
|
57
58
|
}
|
package/dist/src/about.js
CHANGED
|
@@ -41,11 +41,11 @@ var AboutClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
41
41
|
value: (function () {
|
|
42
42
|
var _getVersion = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
43
43
|
var url, response, geoServerResponse;
|
|
44
|
-
return _regenerator["default"].wrap(function
|
|
44
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
45
45
|
while (1) switch (_context.prev = _context.next) {
|
|
46
46
|
case 0:
|
|
47
47
|
url = this.url + 'about/version.json';
|
|
48
|
-
_context.next =
|
|
48
|
+
_context.next = 1;
|
|
49
49
|
return (0, _nodeFetch["default"])(url, {
|
|
50
50
|
credentials: 'include',
|
|
51
51
|
method: 'GET',
|
|
@@ -53,20 +53,20 @@ var AboutClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
53
53
|
Authorization: this.auth
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
case
|
|
56
|
+
case 1:
|
|
57
57
|
response = _context.sent;
|
|
58
58
|
if (response.ok) {
|
|
59
|
-
_context.next =
|
|
59
|
+
_context.next = 3;
|
|
60
60
|
break;
|
|
61
61
|
}
|
|
62
|
-
_context.next =
|
|
62
|
+
_context.next = 2;
|
|
63
63
|
return (0, _geoserver.getGeoServerResponseText)(response);
|
|
64
|
-
case
|
|
64
|
+
case 2:
|
|
65
65
|
geoServerResponse = _context.sent;
|
|
66
66
|
throw new _geoserver.GeoServerResponseError(null, geoServerResponse);
|
|
67
|
-
case
|
|
67
|
+
case 3:
|
|
68
68
|
return _context.abrupt("return", response.json());
|
|
69
|
-
case
|
|
69
|
+
case 4:
|
|
70
70
|
case "end":
|
|
71
71
|
return _context.stop();
|
|
72
72
|
}
|
|
@@ -87,25 +87,25 @@ var AboutClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
87
87
|
key: "exists",
|
|
88
88
|
value: (function () {
|
|
89
89
|
var _exists = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
90
|
-
var versionInfo;
|
|
91
|
-
return _regenerator["default"].wrap(function
|
|
90
|
+
var versionInfo, _t;
|
|
91
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
92
92
|
while (1) switch (_context2.prev = _context2.next) {
|
|
93
93
|
case 0:
|
|
94
94
|
_context2.prev = 0;
|
|
95
|
-
_context2.next =
|
|
95
|
+
_context2.next = 1;
|
|
96
96
|
return this.getVersion();
|
|
97
|
-
case
|
|
97
|
+
case 1:
|
|
98
98
|
versionInfo = _context2.sent;
|
|
99
99
|
return _context2.abrupt("return", !!versionInfo);
|
|
100
|
-
case
|
|
101
|
-
_context2.prev =
|
|
102
|
-
|
|
100
|
+
case 2:
|
|
101
|
+
_context2.prev = 2;
|
|
102
|
+
_t = _context2["catch"](0);
|
|
103
103
|
return _context2.abrupt("return", false);
|
|
104
|
-
case
|
|
104
|
+
case 3:
|
|
105
105
|
case "end":
|
|
106
106
|
return _context2.stop();
|
|
107
107
|
}
|
|
108
|
-
}, _callee2, this, [[0,
|
|
108
|
+
}, _callee2, this, [[0, 2]]);
|
|
109
109
|
}));
|
|
110
110
|
function exists() {
|
|
111
111
|
return _exists.apply(this, arguments);
|