@bratislava/ginis-sdk 2.1.0 → 2.1.2

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -5
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -176,11 +176,8 @@ async function extractResponseJson(responseXml, requestName2, responseSchema) {
176
176
  explicitArray: false,
177
177
  ignoreAttrs: true
178
178
  });
179
- return responseSchema.parse(
180
- // try catch is covering all parsing, access and validation problems
181
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
182
- response?.["s:Envelope"]?.["s:Body"]?.[`${requestName2}Response`]?.[`${requestName2}Result`]?.Xrg
183
- );
179
+ const xrgContent = response?.["s:Envelope"]?.["s:Body"]?.[`${requestName2}Response`]?.[`${requestName2}Result`]?.Xrg;
180
+ return responseSchema.parse(xrgContent === "" ? {} : xrgContent);
184
181
  } catch (error) {
185
182
  const message = error instanceof Error ? `: ${error.toString()}` : "";
186
183
  throw new GinisError(`Failed to parse XML response${message}\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bratislava/ginis-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "A small wrapper for most commonly used requests towards the Bratislava GINIS system",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -35,23 +35,23 @@
35
35
  "@babel/core": "^7.28.5",
36
36
  "@babel/preset-env": "^7.28.5",
37
37
  "@babel/preset-typescript": "^7.28.5",
38
- "@darraghor/eslint-plugin-nestjs-typed": "^6.9.3",
38
+ "@darraghor/eslint-plugin-nestjs-typed": "^7.0.2",
39
39
  "@eslint/js": "^9.39.1",
40
40
  "@eslint/json": "^0.14.0",
41
41
  "@eslint/markdown": "^7.5.1",
42
42
  "@types/eslint-config-prettier": "^6.11.3",
43
43
  "@types/eslint-plugin-security": "^3.0.0",
44
44
  "@types/jest": "^30.0.0",
45
- "@types/lodash": "^4.17.20",
45
+ "@types/lodash": "^4.17.21",
46
46
  "@types/xml2js": "^0.4.14",
47
- "@typescript-eslint/eslint-plugin": "^8.46.4",
48
- "@typescript-eslint/parser": "^8.46.4",
47
+ "@typescript-eslint/eslint-plugin": "^8.49.0",
48
+ "@typescript-eslint/parser": "^8.49.0",
49
49
  "babel-jest": "^30.2.0",
50
50
  "dotenv": "^17.2.3",
51
51
  "eslint": "^9.39.1",
52
52
  "eslint-config-prettier": "^10.1.8",
53
53
  "eslint-plugin-eslint-comments": "^3.2.0",
54
- "eslint-plugin-jest": "^29.1.0",
54
+ "eslint-plugin-jest": "^29.2.1",
55
55
  "eslint-plugin-jest-async": "^1.0.3",
56
56
  "eslint-plugin-no-unsanitized": "^4.1.4",
57
57
  "eslint-plugin-node": "^11.1.0",
@@ -61,15 +61,15 @@
61
61
  "eslint-plugin-xss": "^0.1.12",
62
62
  "jest": "^30.2.0",
63
63
  "jiti": "^2.6.1",
64
- "prettier": "^3.6.2",
65
- "ts-jest": "^29.4.5",
64
+ "prettier": "^3.7.4",
65
+ "ts-jest": "^29.4.6",
66
66
  "ts-loader": "^9.5.4",
67
67
  "tsup": "^8.5.1",
68
68
  "typescript": "^5.9.3",
69
- "typescript-eslint": "^8.46.4"
69
+ "typescript-eslint": "^8.49.0"
70
70
  },
71
71
  "overrides": {
72
- "glob": "^11.0.3"
72
+ "glob": "^11.1.0"
73
73
  },
74
74
  "engines": {
75
75
  "node": ">=20.9.x",
@@ -80,7 +80,7 @@
80
80
  "lodash": "^4.17.21",
81
81
  "uuid": "^11.1.0",
82
82
  "xml2js": "^0.6.2",
83
- "zod": "^4.1.12"
83
+ "zod": "^4.1.13"
84
84
  },
85
85
  "volta": {
86
86
  "node": "22.14.0",