webuntis-client 1.0.1 → 1.0.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.
- package/dist/clients/Http.js +2 -2
- package/package.json +5 -2
package/dist/clients/Http.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.0.2",
|
|
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",
|