@kubb/plugin-swr 3.0.0-alpha.21 → 3.0.0-alpha.23

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-swr",
3
- "version": "3.0.0-alpha.21",
3
+ "version": "3.0.0-alpha.23",
4
4
  "description": "Generator plugin-swr",
5
5
  "keywords": [
6
6
  "typescript",
@@ -63,25 +63,25 @@
63
63
  "!/**/__tests__/**"
64
64
  ],
65
65
  "dependencies": {
66
- "@kubb/core": "3.0.0-alpha.21",
67
- "@kubb/fs": "3.0.0-alpha.21",
68
- "@kubb/oas": "3.0.0-alpha.21",
69
- "@kubb/plugin-oas": "3.0.0-alpha.21",
70
- "@kubb/plugin-client": "3.0.0-alpha.21",
71
- "@kubb/react": "3.0.0-alpha.21",
72
- "@kubb/plugin-ts": "3.0.0-alpha.21",
73
- "@kubb/plugin-zod": "3.0.0-alpha.21"
66
+ "@kubb/core": "3.0.0-alpha.23",
67
+ "@kubb/fs": "3.0.0-alpha.23",
68
+ "@kubb/oas": "3.0.0-alpha.23",
69
+ "@kubb/plugin-client": "3.0.0-alpha.23",
70
+ "@kubb/plugin-oas": "3.0.0-alpha.23",
71
+ "@kubb/plugin-ts": "3.0.0-alpha.23",
72
+ "@kubb/plugin-zod": "3.0.0-alpha.23",
73
+ "@kubb/react": "3.0.0-alpha.23"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/react": "^18.3.8",
77
77
  "react": "^18.3.1",
78
78
  "tsup": "^8.3.0",
79
79
  "typescript": "^5.6.2",
80
- "@kubb/config-ts": "3.0.0-alpha.21",
81
- "@kubb/config-tsup": "3.0.0-alpha.21"
80
+ "@kubb/config-ts": "3.0.0-alpha.23",
81
+ "@kubb/config-tsup": "3.0.0-alpha.23"
82
82
  },
83
83
  "peerDependencies": {
84
- "@kubb/react": "3.0.0-alpha.21"
84
+ "@kubb/react": "3.0.0-alpha.23"
85
85
  },
86
86
  "engines": {
87
87
  "node": ">=20"
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
9
9
  * @link /pet/findByTags
10
10
  */
11
11
  async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
12
- const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "get", url: `/pet/findByTags`, params, ...config });
12
+ const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
13
13
  return res;
14
14
  }
15
15
 
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
9
9
  * @link /pet/findByTags
10
10
  */
11
11
  async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
12
- const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "get", url: `/pet/findByTags`, params, ...config });
12
+ const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
13
13
  return res.data;
14
14
  }
15
15
 
@@ -9,7 +9,7 @@ import type { SWRMutationConfiguration } from "swr/mutation";
9
9
  * @link /pet/:petId
10
10
  */
11
11
  async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig> = {}) {
12
- const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "post", url: `/pet/${petId}`, params, ...config });
12
+ const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "POST", url: `/pet/${petId}`, params, ...config });
13
13
  return res.data;
14
14
  }
15
15
 
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
9
9
  * @link /pet/findByTags
10
10
  */
11
11
  async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
12
- const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "get", url: `/pet/findByTags`, params, ...config });
12
+ const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
13
13
  return res.data;
14
14
  }
15
15
 
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
9
9
  * @link /pet/findByTags
10
10
  */
11
11
  async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
12
- const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "get", url: `/pet/findByTags`, params, ...config });
12
+ const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
13
13
  return res.data;
14
14
  }
15
15
 
@@ -9,7 +9,7 @@ import type { Key, SWRConfiguration } from "swr";
9
9
  * @link /pet/findByTags
10
10
  */
11
11
  async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
12
- const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "get", url: `/pet/findByTags`, params, ...config });
12
+ const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
13
13
  return findPetsByTagsQueryResponse.parse(res.data);
14
14
  }
15
15
 
@@ -10,7 +10,7 @@ import type { Key } from "swr";
10
10
  * @link /pet/findByTags
11
11
  */
12
12
  async function findPetsByTags(params?: FindPetsByTagsQueryParams, config: Partial<RequestConfig> = {}) {
13
- const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "get", url: `/pet/findByTags`, params, ...config });
13
+ const res = await client<FindPetsByTagsQueryResponse, FindPetsByTags400, unknown>({ method: "GET", url: `/pet/findByTags`, params, ...config });
14
14
  return res.data;
15
15
  }
16
16
 
@@ -9,7 +9,7 @@ import type { Key } from "swr";
9
9
  * @link /pet/:petId
10
10
  */
11
11
  async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig> = {}) {
12
- const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "post", url: `/pet/${petId}`, params, ...config });
12
+ const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "POST", url: `/pet/${petId}`, params, ...config });
13
13
  return res.data;
14
14
  }
15
15
 
@@ -9,7 +9,7 @@ import type { SWRMutationConfiguration } from "swr/mutation";
9
9
  * @link /pet/:petId
10
10
  */
11
11
  async function updatePetWithForm(petId: UpdatePetWithFormPathParams["petId"], params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig> = {}) {
12
- const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "post", url: `/pet/${petId}`, params, ...config });
12
+ const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "POST", url: `/pet/${petId}`, params, ...config });
13
13
  return res.data;
14
14
  }
15
15
 
@@ -11,7 +11,7 @@ import type { SWRMutationConfiguration } from "swr/mutation";
11
11
  async function updatePetWithForm({ petId }: {
12
12
  petId: UpdatePetWithFormPathParams["petId"];
13
13
  }, params?: UpdatePetWithFormQueryParams, config: Partial<RequestConfig> = {}) {
14
- const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "post", url: `/pet/${petId}`, params, ...config });
14
+ const res = await client<UpdatePetWithFormMutationResponse, UpdatePetWithForm405, unknown>({ method: "POST", url: `/pet/${petId}`, params, ...config });
15
15
  return res.data;
16
16
  }
17
17