@kubb/plugin-axios 5.0.0-beta.104 → 5.0.0-beta.107

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": "@kubb/plugin-axios",
3
- "version": "5.0.0-beta.104",
3
+ "version": "5.0.0-beta.107",
4
4
  "description": "Generate a slim, type-safe HTTP client with Kubb based on axios.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -49,19 +49,19 @@
49
49
  "registry": "https://registry.npmjs.org/"
50
50
  },
51
51
  "dependencies": {
52
- "@kubb/plugin-ts": "5.0.0-beta.103",
53
- "@kubb/plugin-zod": "5.0.0-beta.103"
52
+ "@kubb/plugin-ts": "^5.0.0-beta.106",
53
+ "@kubb/plugin-zod": "^5.0.0-beta.106"
54
54
  },
55
55
  "devDependencies": {
56
- "axios": "^1.18.1",
57
- "kubb": "5.0.0-beta.104",
56
+ "axios": "^1.19.0",
57
+ "kubb": "^5.0.0-beta.107",
58
58
  "typescript": "^6.0.3",
59
59
  "@internals/client": "0.0.0",
60
60
  "@internals/shared": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "axios": "^1.7.2",
64
- "kubb": "5.0.0-beta.104"
63
+ "axios": "^1.19.0",
64
+ "kubb": "^5.0.0-beta.107"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "axios": {
@@ -483,7 +483,8 @@ async function resolveRequest<TBody, TRequest, TResponse>({
483
483
  )
484
484
 
485
485
  const throwOnError = requestConfig.throwOnError ?? config.throwOnError ?? true
486
- const validateStatus = requestConfig.validateStatus ?? config.validateStatus ?? (throwOnError ? undefined : () => true)
486
+ const validateStatus =
487
+ requestConfig.validateStatus ?? config.validateStatus ?? (throwOnError ? (status: number) => status >= 200 && status < 300 : () => true)
487
488
 
488
489
  const options = config.options || requestConfig.options ? { ...config.options, ...requestConfig.options } : undefined
489
490