attlaz-client 1.50.0 → 1.50.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/dist/Http/HttpClient.js +4 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/Http/HttpClient.js
CHANGED
|
@@ -6,7 +6,10 @@ export class HttpClient {
|
|
|
6
6
|
method: request.method,
|
|
7
7
|
headers: request.headers,
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
// Node's fetch (undici) throws TypeError when GET/HEAD carry a body. Axios used to silently drop it,
|
|
10
|
+
// so callers may still set body on GET — skip it here instead of propagating a confusing network error.
|
|
11
|
+
const method = request.method.toUpperCase();
|
|
12
|
+
if (request.body !== null && request.body !== undefined && method !== 'GET' && method !== 'HEAD') {
|
|
10
13
|
init.body = request.body;
|
|
11
14
|
}
|
|
12
15
|
try {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.50.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.50.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.50.
|
|
3
|
+
"version": "1.50.1",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/jest": "^30.0.0",
|
|
53
|
-
"@types/node": "^24.12.
|
|
53
|
+
"@types/node": "^24.12.4",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
55
55
|
"@typescript-eslint/parser": "^8.1.0",
|
|
56
56
|
"eslint": "^9.39.4",
|