@kubb/agent 5.0.0-alpha.35 → 5.0.0-alpha.36

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.
Files changed (180) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +1293 -20554
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +16 -14
  5. package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
  6. package/.output/server/index.mjs +16 -14
  7. package/.output/server/index.mjs.map +1 -1
  8. package/.output/server/node_modules/.nitro/ws@8.18.0/lib/constants.js +18 -0
  9. package/.output/server/node_modules/.nitro/ws@8.18.0/lib/permessage-deflate.js +514 -0
  10. package/.output/server/node_modules/.nitro/ws@8.18.0/lib/sender.js +602 -0
  11. package/.output/server/node_modules/.nitro/ws@8.18.0/lib/stream.js +159 -0
  12. package/.output/server/node_modules/.nitro/ws@8.18.0/lib/websocket-server.js +540 -0
  13. package/.output/server/node_modules/.nitro/ws@8.18.0/lib/websocket.js +1388 -0
  14. package/.output/server/node_modules/.nitro/ws@8.18.0/package.json +69 -0
  15. package/.output/server/node_modules/.nitro/ws@8.18.0/wrapper.mjs +8 -0
  16. package/.output/server/node_modules/.nitro/ws@8.20.0/lib/buffer-util.js +131 -0
  17. package/.output/server/node_modules/.nitro/ws@8.20.0/lib/event-target.js +292 -0
  18. package/.output/server/node_modules/.nitro/ws@8.20.0/lib/extension.js +203 -0
  19. package/.output/server/node_modules/.nitro/ws@8.20.0/lib/limiter.js +55 -0
  20. package/.output/server/node_modules/.nitro/ws@8.20.0/lib/receiver.js +706 -0
  21. package/.output/server/node_modules/.nitro/ws@8.20.0/lib/subprotocol.js +62 -0
  22. package/.output/server/node_modules/.nitro/ws@8.20.0/lib/validation.js +152 -0
  23. package/.output/server/node_modules/@clack/core/dist/index.mjs +11 -0
  24. package/.output/server/node_modules/@clack/core/package.json +60 -0
  25. package/.output/server/node_modules/@clack/prompts/dist/index.mjs +137 -0
  26. package/.output/server/node_modules/@clack/prompts/package.json +65 -0
  27. package/.output/server/node_modules/@kubb/ast/dist/chunk--u3MIqq1.js +8 -0
  28. package/.output/server/node_modules/@kubb/ast/dist/index.js +423 -0
  29. package/.output/server/node_modules/@kubb/ast/package.json +70 -0
  30. package/.output/server/node_modules/@kubb/core/dist/chunk--u3MIqq1.js +8 -0
  31. package/.output/server/node_modules/@kubb/core/dist/hooks.js +23 -0
  32. package/.output/server/node_modules/@kubb/core/dist/index.js +2311 -0
  33. package/.output/server/node_modules/@kubb/core/package.json +109 -0
  34. package/.output/server/node_modules/@kubb/fabric-core/dist/chunk-O_arW02_.js +17 -0
  35. package/.output/server/node_modules/@kubb/fabric-core/dist/defaultParser-iCpMSYCp.js +15 -0
  36. package/.output/server/node_modules/@kubb/fabric-core/dist/getRelativePath-NAm_Y-vp.js +55 -0
  37. package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +653 -0
  38. package/.output/server/node_modules/@kubb/fabric-core/dist/onProcessExit-Cput7j2c.js +742 -0
  39. package/.output/server/node_modules/@kubb/fabric-core/dist/parsers/typescript.js +101 -0
  40. package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +17 -0
  41. package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +375 -0
  42. package/.output/server/node_modules/@kubb/fabric-core/package.json +111 -0
  43. package/.output/server/node_modules/@kubb/oas/dist/chunk--u3MIqq1.js +8 -0
  44. package/.output/server/node_modules/@kubb/oas/dist/index.js +918 -0
  45. package/.output/server/node_modules/@kubb/oas/package.json +94 -0
  46. package/.output/server/node_modules/@kubb/plugin-client/dist/StaticClassClient-bCe7RG_w.js +636 -0
  47. package/.output/server/node_modules/@kubb/plugin-client/dist/chunk--u3MIqq1.js +8 -0
  48. package/.output/server/node_modules/@kubb/plugin-client/dist/components.js +2 -0
  49. package/.output/server/node_modules/@kubb/plugin-client/dist/generators-BffddRNu.js +723 -0
  50. package/.output/server/node_modules/@kubb/plugin-client/dist/index.js +124 -0
  51. package/.output/server/node_modules/@kubb/plugin-client/dist/templates/clients/axios.source.js +6 -0
  52. package/.output/server/node_modules/@kubb/plugin-client/dist/templates/clients/fetch.source.js +6 -0
  53. package/.output/server/node_modules/@kubb/plugin-client/dist/templates/config.source.js +6 -0
  54. package/.output/server/node_modules/@kubb/plugin-client/package.json +153 -0
  55. package/.output/server/node_modules/@kubb/plugin-cypress/dist/chunk--u3MIqq1.js +8 -0
  56. package/.output/server/node_modules/@kubb/plugin-cypress/dist/components-BK_6GU4v.js +257 -0
  57. package/.output/server/node_modules/@kubb/plugin-cypress/dist/generators-D5YFtyyC.js +71 -0
  58. package/.output/server/node_modules/@kubb/plugin-cypress/dist/index.js +79 -0
  59. package/.output/server/node_modules/@kubb/plugin-cypress/package.json +108 -0
  60. package/.output/server/node_modules/@kubb/plugin-faker/dist/chunk--u3MIqq1.js +8 -0
  61. package/.output/server/node_modules/@kubb/plugin-faker/dist/components-BkBIov4R.js +419 -0
  62. package/.output/server/node_modules/@kubb/plugin-faker/dist/fakerGenerator-BztogaeO.js +200 -0
  63. package/.output/server/node_modules/@kubb/plugin-faker/dist/index.js +141 -0
  64. package/.output/server/node_modules/@kubb/plugin-faker/package.json +103 -0
  65. package/.output/server/node_modules/@kubb/plugin-mcp/dist/Server-H3SwqhwF.js +178 -0
  66. package/.output/server/node_modules/@kubb/plugin-mcp/dist/chunk--u3MIqq1.js +8 -0
  67. package/.output/server/node_modules/@kubb/plugin-mcp/dist/generators-BqkMrcs9.js +274 -0
  68. package/.output/server/node_modules/@kubb/plugin-mcp/dist/index.js +122 -0
  69. package/.output/server/node_modules/@kubb/plugin-mcp/package.json +107 -0
  70. package/.output/server/node_modules/@kubb/plugin-msw/dist/chunk--u3MIqq1.js +8 -0
  71. package/.output/server/node_modules/@kubb/plugin-msw/dist/components-DgtTZkWX.js +277 -0
  72. package/.output/server/node_modules/@kubb/plugin-msw/dist/generators-C34kqa1L.js +161 -0
  73. package/.output/server/node_modules/@kubb/plugin-msw/dist/index.js +84 -0
  74. package/.output/server/node_modules/@kubb/plugin-msw/package.json +109 -0
  75. package/.output/server/node_modules/@kubb/plugin-oas/dist/SchemaMapper-CqMkO2T1.js +58 -0
  76. package/.output/server/node_modules/@kubb/plugin-oas/dist/chunk--u3MIqq1.js +8 -0
  77. package/.output/server/node_modules/@kubb/plugin-oas/dist/generators-D7C3CXsN.js +79 -0
  78. package/.output/server/node_modules/@kubb/plugin-oas/dist/generators.js +2 -0
  79. package/.output/server/node_modules/@kubb/plugin-oas/dist/getFooter-Pw3tLCiV.js +112 -0
  80. package/.output/server/node_modules/@kubb/plugin-oas/dist/hooks.js +200 -0
  81. package/.output/server/node_modules/@kubb/plugin-oas/dist/index.js +408 -0
  82. package/.output/server/node_modules/@kubb/plugin-oas/dist/requestBody-pRavthCw.js +1336 -0
  83. package/.output/server/node_modules/@kubb/plugin-oas/dist/utils.js +268 -0
  84. package/.output/server/node_modules/@kubb/plugin-oas/package.json +122 -0
  85. package/.output/server/node_modules/@kubb/plugin-react-query/dist/chunk--u3MIqq1.js +8 -0
  86. package/.output/server/node_modules/@kubb/plugin-react-query/dist/components-CpyHYGOw.js +1520 -0
  87. package/.output/server/node_modules/@kubb/plugin-react-query/dist/generators-CpiBv5eE.js +1427 -0
  88. package/.output/server/node_modules/@kubb/plugin-react-query/dist/index.js +166 -0
  89. package/.output/server/node_modules/@kubb/plugin-react-query/package.json +112 -0
  90. package/.output/server/node_modules/@kubb/plugin-redoc/dist/chunk--u3MIqq1.js +8 -0
  91. package/.output/server/node_modules/@kubb/plugin-redoc/dist/index.js +65 -0
  92. package/.output/server/node_modules/@kubb/plugin-redoc/package.json +85 -0
  93. package/.output/server/node_modules/@kubb/plugin-redoc/static/redoc.hbs +22 -0
  94. package/.output/server/node_modules/@kubb/plugin-solid-query/dist/chunk--u3MIqq1.js +8 -0
  95. package/.output/server/node_modules/@kubb/plugin-solid-query/dist/components-BhStIi1M.js +665 -0
  96. package/.output/server/node_modules/@kubb/plugin-solid-query/dist/generators-CQClzsST.js +415 -0
  97. package/.output/server/node_modules/@kubb/plugin-solid-query/dist/index.js +145 -0
  98. package/.output/server/node_modules/@kubb/plugin-solid-query/package.json +113 -0
  99. package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/chunk--u3MIqq1.js +8 -0
  100. package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/components-DntKBsnB.js +666 -0
  101. package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/generators-BtTsGGrM.js +414 -0
  102. package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/index.js +145 -0
  103. package/.output/server/node_modules/@kubb/plugin-svelte-query/package.json +113 -0
  104. package/.output/server/node_modules/@kubb/plugin-swr/dist/chunk--u3MIqq1.js +8 -0
  105. package/.output/server/node_modules/@kubb/plugin-swr/dist/components-DRDGvgXG.js +702 -0
  106. package/.output/server/node_modules/@kubb/plugin-swr/dist/generators-ClWZJ-YG.js +399 -0
  107. package/.output/server/node_modules/@kubb/plugin-swr/dist/index.js +144 -0
  108. package/.output/server/node_modules/@kubb/plugin-swr/package.json +115 -0
  109. package/.output/server/node_modules/@kubb/plugin-ts/dist/chunk--u3MIqq1.js +8 -0
  110. package/.output/server/node_modules/@kubb/plugin-ts/dist/components-C7fu-sK1.js +723 -0
  111. package/.output/server/node_modules/@kubb/plugin-ts/dist/index.js +2 -0
  112. package/.output/server/node_modules/@kubb/plugin-ts/dist/plugin-CYC-FGXe.js +479 -0
  113. package/.output/server/node_modules/@kubb/plugin-ts/package.json +105 -0
  114. package/.output/server/node_modules/@kubb/plugin-vue-query/dist/chunk--u3MIqq1.js +8 -0
  115. package/.output/server/node_modules/@kubb/plugin-vue-query/dist/components-_AMBl0g-.js +1029 -0
  116. package/.output/server/node_modules/@kubb/plugin-vue-query/dist/generators-Zb1s5Wmb.js +661 -0
  117. package/.output/server/node_modules/@kubb/plugin-vue-query/dist/index.js +157 -0
  118. package/.output/server/node_modules/@kubb/plugin-vue-query/package.json +114 -0
  119. package/.output/server/node_modules/@kubb/plugin-zod/dist/chunk--u3MIqq1.js +8 -0
  120. package/.output/server/node_modules/@kubb/plugin-zod/dist/components-eECfXVou.js +842 -0
  121. package/.output/server/node_modules/@kubb/plugin-zod/dist/generators-D1R6NNf2.js +290 -0
  122. package/.output/server/node_modules/@kubb/plugin-zod/dist/index.js +175 -0
  123. package/.output/server/node_modules/@kubb/plugin-zod/dist/templates/ToZod.source.js +6 -0
  124. package/.output/server/node_modules/@kubb/plugin-zod/package.json +112 -0
  125. package/.output/server/node_modules/@kubb/react-fabric/dist/chunk-BGCRLu6H.js +38 -0
  126. package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +525 -0
  127. package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime-Bl0DfUmV.js +1448 -0
  128. package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime.js +12 -0
  129. package/.output/server/node_modules/@kubb/react-fabric/dist/parsers.js +2 -0
  130. package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +4 -0
  131. package/.output/server/node_modules/@kubb/react-fabric/dist/reactPlugin-QQPrjNuQ.js +17813 -0
  132. package/.output/server/node_modules/@kubb/react-fabric/package.json +143 -0
  133. package/.output/server/node_modules/buffer-from/index.js +72 -0
  134. package/.output/server/node_modules/buffer-from/package.json +19 -0
  135. package/.output/server/node_modules/empathic/access.js +39 -0
  136. package/.output/server/node_modules/empathic/access.mjs +34 -0
  137. package/.output/server/node_modules/empathic/find.js +81 -0
  138. package/.output/server/node_modules/empathic/find.mjs +76 -0
  139. package/.output/server/node_modules/empathic/package.json +49 -0
  140. package/.output/server/node_modules/empathic/package.mjs +52 -0
  141. package/.output/server/node_modules/empathic/resolve.js +31 -0
  142. package/.output/server/node_modules/empathic/resolve.mjs +27 -0
  143. package/.output/server/node_modules/empathic/walk.js +22 -0
  144. package/.output/server/node_modules/empathic/walk.mjs +20 -0
  145. package/.output/server/node_modules/fast-string-truncated-width/dist/index.js +171 -0
  146. package/.output/server/node_modules/fast-string-truncated-width/dist/utils.js +15 -0
  147. package/.output/server/node_modules/fast-string-truncated-width/package.json +35 -0
  148. package/.output/server/node_modules/fast-string-width/dist/index.js +14 -0
  149. package/.output/server/node_modules/fast-string-width/package.json +34 -0
  150. package/.output/server/node_modules/fast-wrap-ansi/lib/main.js +216 -0
  151. package/.output/server/node_modules/fast-wrap-ansi/package.json +51 -0
  152. package/.output/server/node_modules/p-limit/index.js +127 -0
  153. package/.output/server/node_modules/p-limit/package.json +58 -0
  154. package/.output/server/node_modules/react-devtools-core/dist/backend.js +18302 -0
  155. package/.output/server/node_modules/react-devtools-core/package.json +38 -0
  156. package/.output/server/node_modules/sisteransi/package.json +34 -0
  157. package/.output/server/node_modules/sisteransi/src/index.js +58 -0
  158. package/.output/server/node_modules/source-map-support/package.json +31 -0
  159. package/.output/server/node_modules/source-map-support/source-map-support.js +625 -0
  160. package/.output/server/node_modules/typescript/lib/typescript.js +200276 -0
  161. package/.output/server/node_modules/typescript/package.json +120 -0
  162. package/.output/server/node_modules/yocto-queue/index.js +90 -0
  163. package/.output/server/node_modules/yocto-queue/package.json +48 -0
  164. package/.output/server/package.json +34 -2
  165. package/package.json +20 -20
  166. /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/buffer-util.js +0 -0
  167. /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/event-target.js +0 -0
  168. /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/extension.js +0 -0
  169. /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/limiter.js +0 -0
  170. /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/receiver.js +0 -0
  171. /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/subprotocol.js +0 -0
  172. /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/validation.js +0 -0
  173. /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/constants.js +0 -0
  174. /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/permessage-deflate.js +0 -0
  175. /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/sender.js +0 -0
  176. /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/stream.js +0 -0
  177. /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/websocket-server.js +0 -0
  178. /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/websocket.js +0 -0
  179. /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/package.json +0 -0
  180. /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/wrapper.mjs +0 -0
@@ -0,0 +1,157 @@
1
+ import "./chunk--u3MIqq1.js";
2
+ import { c as camelCase, l as pascalCase, r as MutationKey, s as QueryKey } from "./components-_AMBl0g-.js";
3
+ import { n as mutationGenerator, r as infiniteQueryGenerator, t as queryGenerator } from "./generators-Zb1s5Wmb.js";
4
+ import path from "node:path";
5
+ import { definePlugin, getBarrelFiles, getMode } from "@kubb/core";
6
+ import { pluginClientName } from "@kubb/plugin-client";
7
+ import { source } from "@kubb/plugin-client/templates/clients/axios.source";
8
+ import { source as source$1 } from "@kubb/plugin-client/templates/clients/fetch.source";
9
+ import { source as source$2 } from "@kubb/plugin-client/templates/config.source";
10
+ import { OperationGenerator, pluginOasName } from "@kubb/plugin-oas";
11
+ import { pluginTsName } from "@kubb/plugin-ts";
12
+ import { pluginZodName } from "@kubb/plugin-zod";
13
+ //#region src/plugin.ts
14
+ const pluginVueQueryName = "plugin-vue-query";
15
+ const pluginVueQuery = definePlugin((options) => {
16
+ const { output = {
17
+ path: "hooks",
18
+ barrelType: "named"
19
+ }, group, exclude = [], include, override = [], parser = "client", infinite, transformers = {}, paramsType = "inline", pathParamsType = paramsType === "object" ? "object" : options.pathParamsType || "inline", mutation = {}, query = {}, paramsCasing, mutationKey = MutationKey.getTransformer, queryKey = QueryKey.getTransformer, generators = [
20
+ queryGenerator,
21
+ infiniteQueryGenerator,
22
+ mutationGenerator
23
+ ].filter(Boolean), contentType, client } = options;
24
+ const clientName = client?.client ?? "axios";
25
+ const clientImportPath = client?.importPath ?? (!client?.bundle ? `@kubb/plugin-client/clients/${clientName}` : void 0);
26
+ return {
27
+ name: pluginVueQueryName,
28
+ options: {
29
+ output,
30
+ client: {
31
+ bundle: client?.bundle,
32
+ baseURL: client?.baseURL,
33
+ client: clientName,
34
+ clientType: client?.clientType ?? "function",
35
+ dataReturnType: client?.dataReturnType ?? "data",
36
+ pathParamsType,
37
+ importPath: clientImportPath,
38
+ paramsCasing
39
+ },
40
+ infinite: infinite ? {
41
+ queryParam: "id",
42
+ initialPageParam: 0,
43
+ cursorParam: void 0,
44
+ nextParam: void 0,
45
+ previousParam: void 0,
46
+ ...infinite
47
+ } : false,
48
+ queryKey,
49
+ query: query === false ? false : {
50
+ methods: ["get"],
51
+ importPath: "@tanstack/vue-query",
52
+ ...query
53
+ },
54
+ mutationKey,
55
+ mutation: mutation === false ? false : {
56
+ methods: [
57
+ "post",
58
+ "put",
59
+ "patch",
60
+ "delete"
61
+ ],
62
+ importPath: "@tanstack/vue-query",
63
+ ...mutation
64
+ },
65
+ paramsType,
66
+ pathParamsType,
67
+ parser,
68
+ paramsCasing,
69
+ group
70
+ },
71
+ pre: [
72
+ pluginOasName,
73
+ pluginTsName,
74
+ parser === "zod" ? pluginZodName : void 0
75
+ ].filter(Boolean),
76
+ resolvePath(baseName, pathMode, options) {
77
+ const root = path.resolve(this.config.root, this.config.output.path);
78
+ if ((pathMode ?? getMode(path.resolve(root, output.path))) === "single")
79
+ /**
80
+ * when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend
81
+ * Other plugins then need to call addOrAppend instead of just add from the fileManager class
82
+ */
83
+ return path.resolve(root, output.path);
84
+ if (group && (options?.group?.path || options?.group?.tag)) {
85
+ const groupName = group?.name ? group.name : (ctx) => {
86
+ if (group?.type === "path") return `${ctx.group.split("/")[1]}`;
87
+ return `${camelCase(ctx.group)}Controller`;
88
+ };
89
+ return path.resolve(root, output.path, groupName({ group: group.type === "path" ? options.group.path : options.group.tag }), baseName);
90
+ }
91
+ return path.resolve(root, output.path, baseName);
92
+ },
93
+ resolveName(name, type) {
94
+ let resolvedName = camelCase(name);
95
+ if (type === "file" || type === "function") resolvedName = camelCase(name, { isFile: type === "file" });
96
+ if (type === "type") resolvedName = pascalCase(name);
97
+ if (type) return transformers?.name?.(resolvedName, type) || resolvedName;
98
+ return resolvedName;
99
+ },
100
+ async install() {
101
+ const root = path.resolve(this.config.root, this.config.output.path);
102
+ const mode = getMode(path.resolve(root, output.path));
103
+ const oas = await this.getOas();
104
+ const baseURL = await this.getBaseURL();
105
+ if (baseURL) this.plugin.options.client.baseURL = baseURL;
106
+ const hasClientPlugin = !!this.pluginManager.getPluginByKey([pluginClientName]);
107
+ if (this.plugin.options.client.bundle && !hasClientPlugin && !this.plugin.options.client.importPath) await this.upsertFile({
108
+ baseName: "fetch.ts",
109
+ path: path.resolve(root, ".kubb/fetch.ts"),
110
+ sources: [{
111
+ name: "fetch",
112
+ value: this.plugin.options.client.client === "fetch" ? source$1 : source,
113
+ isExportable: true,
114
+ isIndexable: true
115
+ }],
116
+ imports: [],
117
+ exports: []
118
+ });
119
+ if (!hasClientPlugin) await this.addFile({
120
+ baseName: "config.ts",
121
+ path: path.resolve(root, ".kubb/config.ts"),
122
+ sources: [{
123
+ name: "config",
124
+ value: source$2,
125
+ isExportable: false,
126
+ isIndexable: false
127
+ }],
128
+ imports: [],
129
+ exports: []
130
+ });
131
+ const files = await new OperationGenerator(this.plugin.options, {
132
+ fabric: this.fabric,
133
+ oas,
134
+ pluginManager: this.pluginManager,
135
+ events: this.events,
136
+ plugin: this.plugin,
137
+ contentType,
138
+ exclude,
139
+ include,
140
+ override,
141
+ mode
142
+ }).build(...generators);
143
+ await this.upsertFile(...files);
144
+ const barrelFiles = await getBarrelFiles(this.fabric.files, {
145
+ type: output.barrelType ?? "named",
146
+ root,
147
+ output,
148
+ meta: { pluginKey: this.plugin.key }
149
+ });
150
+ await this.upsertFile(...barrelFiles);
151
+ }
152
+ };
153
+ });
154
+ //#endregion
155
+ export { pluginVueQuery, pluginVueQueryName };
156
+
157
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,114 @@
1
+ {
2
+ "name": "@kubb/plugin-vue-query",
3
+ "version": "4.37.2",
4
+ "description": "Vue Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Vue.js applications.",
5
+ "keywords": [
6
+ "vue-query",
7
+ "vue",
8
+ "vue.js",
9
+ "vue3",
10
+ "tanstack-query",
11
+ "composables",
12
+ "hooks",
13
+ "data-fetching",
14
+ "api-client",
15
+ "sdk-generator",
16
+ "typescript",
17
+ "type-safe",
18
+ "openapi",
19
+ "swagger",
20
+ "oas",
21
+ "code-generator",
22
+ "codegen",
23
+ "plugins",
24
+ "kubb"
25
+ ],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/kubb-labs/kubb.git",
29
+ "directory": "packages/plugin-vue-query"
30
+ },
31
+ "license": "MIT",
32
+ "author": "stijnvanhulle",
33
+ "sideEffects": false,
34
+ "type": "module",
35
+ "exports": {
36
+ ".": {
37
+ "import": "./dist/index.js",
38
+ "require": "./dist/index.cjs"
39
+ },
40
+ "./components": {
41
+ "import": "./dist/components.js",
42
+ "require": "./dist/components.cjs"
43
+ },
44
+ "./generators": {
45
+ "import": "./dist/generators.js",
46
+ "require": "./dist/generators.cjs"
47
+ },
48
+ "./package.json": "./package.json"
49
+ },
50
+ "types": "./dist/index.d.ts",
51
+ "typesVersions": {
52
+ "*": {
53
+ "components": [
54
+ "./dist/components.d.ts"
55
+ ],
56
+ "generators": [
57
+ "./dist/generators.d.ts"
58
+ ]
59
+ }
60
+ },
61
+ "files": [
62
+ "src",
63
+ "dist",
64
+ "!/**/**.test.**",
65
+ "!/**/__tests__/**",
66
+ "!/**/__snapshots__/**"
67
+ ],
68
+ "size-limit": [
69
+ {
70
+ "path": "./dist/*.js",
71
+ "limit": "510 KiB",
72
+ "gzip": true
73
+ }
74
+ ],
75
+ "dependencies": {
76
+ "@kubb/fabric-core": "0.14.0",
77
+ "@kubb/react-fabric": "0.14.0",
78
+ "remeda": "^2.33.6",
79
+ "@kubb/oas": "4.37.2",
80
+ "@kubb/core": "4.37.2",
81
+ "@kubb/plugin-client": "4.37.2",
82
+ "@kubb/plugin-oas": "4.37.2",
83
+ "@kubb/plugin-ts": "4.37.2",
84
+ "@kubb/plugin-zod": "4.37.2"
85
+ },
86
+ "peerDependencies": {
87
+ "@kubb/fabric-core": "0.14.0",
88
+ "@kubb/react-fabric": "0.14.0"
89
+ },
90
+ "engines": {
91
+ "node": ">=20"
92
+ },
93
+ "publishConfig": {
94
+ "access": "public",
95
+ "registry": "https://registry.npmjs.org/"
96
+ },
97
+ "main": "./dist/index.cjs",
98
+ "module": "./dist/index.js",
99
+ "devDependencies": {
100
+ "@internals/tanstack-query": "0.0.0",
101
+ "@internals/utils": "0.0.0"
102
+ },
103
+ "scripts": {
104
+ "build": "tsdown && size-limit",
105
+ "clean": "npx rimraf ./dist",
106
+ "lint": "bun biome lint .",
107
+ "lint:fix": "bun biome lint --fix --unsafe .",
108
+ "release": "pnpm publish --no-git-check",
109
+ "release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check",
110
+ "start": "tsdown --watch",
111
+ "test": "vitest --passWithNoTests",
112
+ "typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false"
113
+ }
114
+ }
@@ -0,0 +1,8 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", {
4
+ value,
5
+ configurable: true
6
+ });
7
+ //#endregion
8
+ export { __name as t };