Skip to content

Commit 2dd8ce6

Browse files
committed
fix: actually build new oapi version [skip ci]
1 parent 6676e65 commit 2dd8ce6

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"prepublish": "in-publish && pnpm build || echo Skipping build."
1717
},
1818
"devDependencies": {
19-
"@insertish/oapi": "0.2.5",
19+
"@insertish/oapi": "0.2.6",
2020
"in-publish": "^2.0.1",
2121
"openapi-typescript": "^5.4.2",
2222
"typescript": "^5.8.3"

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ export class API {
205205
body: passbody,
206206
});
207207

208-
const data = await fetchdata[config?.responseType || "json"]();
208+
const data =
209+
fetchdata.status === 204
210+
? null
211+
: await fetchdata[config?.responseType || "json"]();
209212

210213
if (fetchdata.ok) {
211214
return data;

0 commit comments

Comments
 (0)