mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-18 16:14:27 -04:00
fix: actually build new oapi version [skip ci]
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@
|
||||
"prepublish": "in-publish && pnpm build || echo Skipping build."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@insertish/oapi": "0.2.5",
|
||||
"@insertish/oapi": "0.2.6",
|
||||
"in-publish": "^2.0.1",
|
||||
"openapi-typescript": "^5.4.2",
|
||||
"typescript": "^5.8.3"
|
||||
|
||||
Generated
+5
-5
@@ -9,8 +9,8 @@ importers:
|
||||
.:
|
||||
devDependencies:
|
||||
'@insertish/oapi':
|
||||
specifier: 0.2.5
|
||||
version: 0.2.5
|
||||
specifier: 0.2.6
|
||||
version: 0.2.6
|
||||
in-publish:
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1
|
||||
@@ -27,8 +27,8 @@ packages:
|
||||
resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==}
|
||||
engines: {node: '>=14'}
|
||||
|
||||
'@insertish/oapi@0.2.5':
|
||||
resolution: {integrity: sha512-qepXfQz/jrT2DhvzMYzNzQN9HsuEZkDCPJFbszBuftIahXosmkoxgBHIyxYMCo1yVvBnMnfwSqYJTm9GmJ0JNw==}
|
||||
'@insertish/oapi@0.2.6':
|
||||
resolution: {integrity: sha512-6IWpLFhygWu+hN8+bNXH3pK0hypxoS522Vn6AOhphzXrWQlDo6IhEWRWXV/XlyYQIPiugkDcqtD2p0dtB9Wftg==}
|
||||
hasBin: true
|
||||
|
||||
argparse@2.0.1:
|
||||
@@ -88,7 +88,7 @@ snapshots:
|
||||
|
||||
'@fastify/busboy@2.1.1': {}
|
||||
|
||||
'@insertish/oapi@0.2.5':
|
||||
'@insertish/oapi@0.2.6':
|
||||
dependencies:
|
||||
typescript: 4.9.5
|
||||
optionalDependencies:
|
||||
|
||||
+4
-1
@@ -205,7 +205,10 @@ export class API {
|
||||
body: passbody,
|
||||
});
|
||||
|
||||
const data = await fetchdata[config?.responseType || "json"]();
|
||||
const data =
|
||||
fetchdata.status === 204
|
||||
? null
|
||||
: await fetchdata[config?.responseType || "json"]();
|
||||
|
||||
if (fetchdata.ok) {
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user