geoserver-node-client 1.4.7 → 1.5.0
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/dist/package.json +12 -11
- package/dist/src/about.js +17 -17
- package/dist/src/datastore.js +189 -189
- package/dist/src/imagemosaic.js +33 -33
- package/dist/src/layer.js +460 -189
- 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 +38 -38
- package/dist/src/style.js +79 -79
- 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 +12 -11
- 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/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geoserver-node-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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
|
+
"@eslint/compat": "^1.2.9",
|
|
47
48
|
"chai": "^5.0.3",
|
|
48
|
-
"eslint": "^
|
|
49
|
-
"eslint-config-
|
|
50
|
-
"eslint-plugin-
|
|
51
|
-
"eslint-plugin-node": "^11.1.0",
|
|
52
|
-
"eslint-plugin-promise": "^6.1.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);
|