webuntis-client 1.0.1 → 1.0.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 LeChacal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,9 +1,16 @@
1
+ <div align="center">
2
+
1
3
  # Web Untis Client
2
4
 
5
+ [![npm version](https://badge.fury.io/js/webuntis-client.svg)](https://www.npmjs.com/package/webuntis-client)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+
3
8
  A Web Untis API Client to interact with [Web Untis](https://webuntis.com).
4
9
 
5
- > Work In Progress \
6
- > Not complete
10
+ </div>
11
+
12
+ > [!CAUTION]
13
+ > Work In Progress - Not feature complete yet
7
14
 
8
15
  ## Examples
9
16
 
@@ -45,4 +52,22 @@ await client.getAppData();
45
52
 
46
53
  ```typescript
47
54
  await client.getProfile();
48
- ```
55
+ ```
56
+
57
+ ## Installation
58
+
59
+ ```bash
60
+ yarn add webuntis-client
61
+
62
+ npm i webuntis-client
63
+
64
+ pnpm i webuntis-client
65
+ ```
66
+
67
+ ## License
68
+
69
+ [MIT](LICENSE)
70
+
71
+ ## Disclaimer
72
+
73
+ This is an unofficial client and is not affiliated with Untis GmbH.
@@ -64,8 +64,8 @@ export class HttpClient {
64
64
  }
65
65
  const contentType = response.headers.get('content-type');
66
66
  if (contentType?.includes('application/json')) {
67
- return response.json();
67
+ return await response.json();
68
68
  }
69
- return response.text();
69
+ return await response.text();
70
70
  }
71
71
  }
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "webuntis-client",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A Web Untis API Client",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "typings": "dist/index.d.ts",
8
8
  "scripts": {
9
- "build": "tsc"
9
+ "build": "tsc",
10
+ "release:patch": "npm version patch && bun run build && npm publish",
11
+ "release:minor": "npm version minor && bun run build && npm publish",
12
+ "release:major": "npm version major && bun run build && npm publish"
10
13
  },
11
14
  "repository": {
12
15
  "type": "git",