@kubb/plugin-fetch 5.7.0 → 5.7.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.
@@ -194,6 +194,47 @@
194
194
  "label": "SDK Name",
195
195
  "description": "Root client name for the generated SDK",
196
196
  "type": "text"
197
+ },
198
+ {
199
+ "key": "returnType",
200
+ "path": ["returnType"],
201
+ "label": "Return Type",
202
+ "description": "What a generated function resolves to. full is the whole result with status and error, data is only the success body when it throws, and plain is the client's own promise",
203
+ "type": "select",
204
+ "default": "full",
205
+ "choices": [
206
+ {
207
+ "value": "full"
208
+ },
209
+ {
210
+ "value": "data"
211
+ },
212
+ {
213
+ "value": "plain"
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ "key": "throwOnErrorDefault",
219
+ "path": ["throwOnErrorDefault"],
220
+ "label": "Throw on Error",
221
+ "description": "Throw when a request fails. A per-call throwOnError overrides it",
222
+ "type": "boolean",
223
+ "default": true
224
+ },
225
+ {
226
+ "key": "banner",
227
+ "path": ["output", "banner"],
228
+ "label": "Banner",
229
+ "description": "Text added at the top of every generated file",
230
+ "type": "text"
231
+ },
232
+ {
233
+ "key": "footer",
234
+ "path": ["output", "footer"],
235
+ "label": "Footer",
236
+ "description": "Text added at the end of every generated file",
237
+ "type": "text"
197
238
  }
198
239
  ]
199
240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-fetch",
3
- "version": "5.7.0",
3
+ "version": "5.7.1",
4
4
  "description": "Generate a slim, type-safe HTTP client with Kubb based on the native Fetch api.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -80,17 +80,17 @@
80
80
  "registry": "https://registry.npmjs.org/"
81
81
  },
82
82
  "dependencies": {
83
- "@kubb/plugin-ts": "^5.0.14",
84
- "@kubb/plugin-zod": "^5.4.12"
83
+ "@kubb/plugin-ts": "^5.0.15",
84
+ "@kubb/plugin-zod": "^5.4.13"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@internals/client": "0.0.0",
88
88
  "@internals/shared": "0.0.0",
89
- "kubb": "^5.10.3",
90
- "typescript": "^6.0.3"
89
+ "kubb": "^5.12.5",
90
+ "typescript": "^7.0.2"
91
91
  },
92
92
  "peerDependencies": {
93
- "kubb": "^5.10.3"
93
+ "kubb": "^5.12.5"
94
94
  },
95
95
  "engines": {
96
96
  "node": ">=22.12"