swagger-typescript-api 13.2.9 → 13.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagger-typescript-api",
3
- "version": "13.2.9",
3
+ "version": "13.2.11",
4
4
  "description": "Generate the API client for Fetch or Axios from an OpenAPI Specification",
5
5
  "homepage": "https://github.com/acacode/swagger-typescript-api",
6
6
  "bugs": "https://github.com/acacode/swagger-typescript-api/issues",
@@ -48,12 +48,12 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@biomejs/js-api": "3.0.0",
51
- "@biomejs/wasm-nodejs": "2.2.2",
51
+ "@biomejs/wasm-nodejs": "2.2.4",
52
52
  "@types/swagger-schema-official": "^2.0.25",
53
- "c12": "^3.2.0",
53
+ "c12": "^3.3.0",
54
54
  "citty": "^0.1.6",
55
55
  "consola": "^3.4.2",
56
- "eta": "^2.2.0",
56
+ "eta": "^4.0.1",
57
57
  "js-yaml": "^4.1.0",
58
58
  "lodash": "^4.17.21",
59
59
  "nanoid": "^5.1.5",
@@ -62,19 +62,19 @@
62
62
  "typescript": "~5.9.2"
63
63
  },
64
64
  "devDependencies": {
65
- "@biomejs/biome": "2.2.2",
65
+ "@biomejs/biome": "2.2.4",
66
66
  "@changesets/changelog-github": "0.5.1",
67
- "@changesets/cli": "2.29.6",
68
- "@tsconfig/node18": "18.2.4",
67
+ "@changesets/cli": "2.29.7",
68
+ "@tsconfig/node20": "20.1.6",
69
69
  "@tsconfig/strictest": "2.0.5",
70
70
  "@types/js-yaml": "4.0.9",
71
71
  "@types/lodash": "4.17.20",
72
- "@types/node": "24.3.0",
72
+ "@types/node": "24.5.2",
73
73
  "@types/swagger2openapi": "7.0.4",
74
- "axios": "1.11.0",
74
+ "axios": "1.12.2",
75
75
  "openapi-types": "12.1.3",
76
- "tsdown": "0.14.2",
77
- "typedoc": "0.28.11",
76
+ "tsdown": "0.15.2",
77
+ "typedoc": "0.28.13",
78
78
  "vitest": "3.2.4"
79
79
  },
80
80
  "packageManager": "yarn@4.9.4",
@@ -200,7 +200,8 @@ export class HttpClient<SecurityDataType = unknown> {
200
200
  r.data = (null as unknown) as T;
201
201
  r.error = (null as unknown) as E;
202
202
 
203
- const data = !responseFormat ? r : await response[responseFormat]()
203
+ const responseToParse = responseFormat ? response.clone() : response;
204
+ const data = !responseFormat ? r : await responseToParse[responseFormat]()
204
205
  .then((data) => {
205
206
  if (r.ok) {
206
207
  r.data = data;