@technicity/openapi-sdk-generator 5.4.7 → 5.4.8

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.
@@ -132,7 +132,7 @@ async function generate(input) {
132
132
  status: result?.status,
133
133
  body:
134
134
  result?.body == null
135
- ? result?.body
135
+ ? (result?.body as any)
136
136
  : JSON.stringify(result.body),
137
137
  };
138
138
  };
@@ -617,7 +617,7 @@ function getHttpClientCode() {
617
617
  url: URL;
618
618
  method: string;
619
619
  headers: Headers;
620
- reqBody: BodyInit | undefined;
620
+ reqBody: BodyInit | null | undefined;
621
621
  }) => Promise<TNullFetchRes> | TNullFetchRes;
622
622
  };
623
623
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicity/openapi-sdk-generator",
3
- "version": "5.4.7",
3
+ "version": "5.4.8",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -135,7 +135,7 @@ export async function generate(input: {
135
135
  status: result?.status,
136
136
  body:
137
137
  result?.body == null
138
- ? result?.body
138
+ ? (result?.body as any)
139
139
  : JSON.stringify(result.body),
140
140
  };
141
141
  };
@@ -733,7 +733,7 @@ function getHttpClientCode() {
733
733
  url: URL;
734
734
  method: string;
735
735
  headers: Headers;
736
- reqBody: BodyInit | undefined;
736
+ reqBody: BodyInit | null | undefined;
737
737
  }) => Promise<TNullFetchRes> | TNullFetchRes;
738
738
  };
739
739