@kubb/plugin-fetch 5.0.0 → 5.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-fetch",
3
- "version": "5.0.0",
3
+ "version": "5.0.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",
@@ -13,6 +13,7 @@
13
13
  "swagger",
14
14
  "typescript"
15
15
  ],
16
+ "homepage": "https://kubb.dev/plugins/plugin-fetch",
16
17
  "license": "MIT",
17
18
  "author": "stijnvanhulle",
18
19
  "repository": {
@@ -20,6 +21,16 @@
20
21
  "url": "git+https://github.com/kubb-labs/plugins.git",
21
22
  "directory": "packages/plugin-fetch"
22
23
  },
24
+ "funding": [
25
+ {
26
+ "type": "github",
27
+ "url": "https://github.com/sponsors/stijnvanhulle"
28
+ },
29
+ {
30
+ "type": "opencollective",
31
+ "url": "https://opencollective.com/kubb"
32
+ }
33
+ ],
23
34
  "files": [
24
35
  "src",
25
36
  "dist",
@@ -1,6 +1,6 @@
1
1
  import { applyHeaderStyles, defaultBodySerializer, defaultPathSerializer, defaultQuerySerializer, isDefaultJsonBody, serializeCookies } from './serializers'
2
2
  import type { HeadersInit, PathParamStyle, PathSerializer, Serializers, Styles } from './serializers'
3
- import { type StandardSchemaValidator, validateStandardSchema } from './standardSchema.ts'
3
+ import { type StandardSchemaValidator, validateStandardSchema } from './standardSchema'
4
4
 
5
5
  /**
6
6
  * HTTP status codes treated as a success, everything else is an error.
@@ -50,5 +50,5 @@ export async function validateStandardSchema<TOutput>(schema: StandardSchemaVali
50
50
  if (result.issues) {
51
51
  throw new ParseError({ issues: result.issues })
52
52
  }
53
- return result.value as TOutput
53
+ return (result as { value: TOutput }).value
54
54
  }