@bratislava/ginis-sdk 0.4.1 → 0.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 CHANGED
@@ -6,10 +6,6 @@ A small wrapper for most commonly used requests towards the GINIS system. Made t
6
6
 
7
7
  ## Installation
8
8
 
9
- `yarn add @bratislava/ginis-sdk`
10
-
11
- or
12
-
13
9
  `npm i @bratislava/ginis-sdk`
14
10
 
15
11
  ## Using the library
@@ -63,7 +59,7 @@ You need to have GINIS credentials setup in `.env` file - see `.env.example`. If
63
59
 
64
60
  Start the test using
65
61
 
66
- `yarn test`
62
+ `npm test`
67
63
 
68
64
  ## XML example
69
65
 
package/dist/index.d.ts CHANGED
@@ -290,4 +290,4 @@ declare class GinisError extends Error {
290
290
  constructor(message: string);
291
291
  }
292
292
 
293
- export { Ginis, GinisConfig, GinisError };
293
+ export { Ginis, type GinisConfig, GinisError };
package/dist/index.js CHANGED
@@ -105,8 +105,7 @@ var GinisError = class extends Error {
105
105
  // src/api/json/ssl/Detail-dokumentu.ts
106
106
  async function detailDokumentu(bodyObj) {
107
107
  const url = this.config.urls.ssl;
108
- if (!url)
109
- throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
108
+ if (!url) throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
110
109
  const response = await makeAxiosRequest(
111
110
  void 0,
112
111
  `${url}/json/Detail-dokumentu`,
@@ -125,8 +124,7 @@ async function detailDokumentu(bodyObj) {
125
124
  // src/api/json/ssl/Pridat-soubor.ts
126
125
  async function pridatSoubor(bodyObj) {
127
126
  const url = this.config.urls.ssl;
128
- if (!url)
129
- throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
127
+ if (!url) throw new GinisError("GINIS SDK Error: Missing SSL url in GINIS config");
130
128
  const response = await makeAxiosRequest(
131
129
  void 0,
132
130
  `${url}/json/Pridat-soubor`,
@@ -151,8 +149,7 @@ var ssl_default = {
151
149
  // src/api/json/pod/Detail-el-podani.ts
152
150
  async function detailElPodani(bodyObj) {
153
151
  const url = this.config.urls.pod;
154
- if (!url)
155
- throw new GinisError("GINIS SDK Error: Missing POD url in GINIS config");
152
+ if (!url) throw new GinisError("GINIS SDK Error: Missing POD url in GINIS config");
156
153
  const response = await makeAxiosRequest(
157
154
  void 0,
158
155
  `${url}/json/Detail-el-podani`,
@@ -176,8 +173,7 @@ var pod_default = {
176
173
  // src/api/json/gin/Detail-funkcniho-mista.ts
177
174
  async function detailFunkcnihoMista(bodyObj) {
178
175
  const url = this.config.urls.gin;
179
- if (!url)
180
- throw new GinisError("GINIS SDK Error: Missing GIN url in GINIS config");
176
+ if (!url) throw new GinisError("GINIS SDK Error: Missing GIN url in GINIS config");
181
177
  const response = await makeAxiosRequest(
182
178
  void 0,
183
179
  `${url}/json/Detail-funkcniho-mista`,
@@ -196,8 +192,7 @@ async function detailFunkcnihoMista(bodyObj) {
196
192
  // src/api/json/gin/Detail-referenta.ts
197
193
  async function detailReferenta(bodyObj) {
198
194
  const url = this.config.urls.gin;
199
- if (!url)
200
- throw new GinisError("GINIS SDK Error: Missing GIN url in GINIS config");
195
+ if (!url) throw new GinisError("GINIS SDK Error: Missing GIN url in GINIS config");
201
196
  const response = await makeAxiosRequest(
202
197
  void 0,
203
198
  `${url}/json/Detail-referenta`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bratislava/ginis-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.5.1",
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": [
@@ -10,10 +10,9 @@
10
10
  "scripts": {
11
11
  "build": "tsup src/index.ts --dts",
12
12
  "test": "jest --watch",
13
- "typecheck": "tsc && tsc-strict",
14
- "eslint": "eslint --color --ext .js,.json,.ts .",
15
- "eslint:fix": "npm run eslint -- --fix",
16
- "docs": "typedoc --options typedoc.json"
13
+ "typecheck": "tsc",
14
+ "lint": "eslint --color --ext .js,.json,.ts .",
15
+ "lint:fix": "npm run lint -- --fix"
17
16
  },
18
17
  "bin": {
19
18
  "ginis-sdk": "./bin/index.js"
@@ -31,40 +30,38 @@
31
30
  },
32
31
  "homepage": "https://github.com/bratislava/ginis-sdk#readme",
33
32
  "devDependencies": {
34
- "@babel/core": "^7.19.3",
35
- "@babel/preset-env": "^7.19.3",
36
- "@babel/preset-typescript": "^7.18.6",
37
- "@types/jest": "^29.1.1",
38
- "@types/lodash": "^4.14.186",
39
- "@typescript-eslint/eslint-plugin": "^5.39.0",
40
- "@typescript-eslint/parser": "^5.39.0",
41
- "babel-jest": "^29.1.2",
42
- "dotenv": "^16.0.3",
43
- "eslint": "^8.24.0",
44
- "eslint-config-prettier": "^8.5.0",
33
+ "@babel/core": "^7.26.0",
34
+ "@babel/preset-env": "^7.26.0",
35
+ "@babel/preset-typescript": "^7.26.0",
36
+ "@types/jest": "^29.5.14",
37
+ "@types/lodash": "^4.17.13",
38
+ "@typescript-eslint/eslint-plugin": "^8.17.0",
39
+ "@typescript-eslint/parser": "^8.17.0",
40
+ "babel-jest": "^29.7.0",
41
+ "dotenv": "^16.4.7",
42
+ "eslint": "^9.16.0",
43
+ "eslint-config-prettier": "^9.1.0",
45
44
  "eslint-plugin-eslint-comments": "^3.2.0",
46
- "eslint-plugin-no-secrets": "^0.8.9",
47
- "jest": "^29.1.2",
48
- "ts-jest": "^29.0.3",
49
- "ts-loader": "^9.4.1",
50
- "tsup": "^7.2.0",
51
- "typedoc": "^0.23.16",
52
- "typedoc-theme-hierarchy": "^3.0.2",
53
- "typescript-strict-plugin": "^2.1.0"
45
+ "eslint-plugin-import": "^2.31.0",
46
+ "eslint-plugin-no-secrets": "^2.1.1",
47
+ "jest": "^29.7.0",
48
+ "prettier": "^3.4.2",
49
+ "ts-jest": "^29.2.5",
50
+ "ts-loader": "^9.5.1",
51
+ "tsup": "^8.3.5"
54
52
  },
55
53
  "engines": {
56
- "node": "16.x.x",
57
- "npm": ">=6.0.0",
58
- "yarn": "1.22"
54
+ "node": ">=20.x.x",
55
+ "npm": ">=9.x.x"
59
56
  },
60
57
  "dependencies": {
61
- "axios": "^1.3.2",
62
- "crypto-browserify": "^3.12.0",
58
+ "axios": "^1.7.9",
59
+ "crypto-browserify": "^3.12.1",
63
60
  "lodash": "^4.17.21",
64
61
  "stream-browserify": "^3.0.0",
65
- "typescript": "5.1.6"
62
+ "typescript": "5.7.2"
66
63
  },
67
64
  "volta": {
68
- "node": "16.19.0"
65
+ "node": "20.11.1"
69
66
  }
70
67
  }