@kubb/plugin-react-query 5.11.0-canary.20261109T211319 → 5.11.0-canary.20261109T211530
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/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -26,7 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
let _kubb_kit = require("@kubb/kit");
|
|
27
27
|
let node_path = require("node:path");
|
|
28
28
|
node_path = __toESM(node_path, 1);
|
|
29
|
-
let _kubb_plugin_zod = require("@kubb/plugin-zod");
|
|
30
29
|
let _kubb_renderer_jsx = require("@kubb/renderer-jsx");
|
|
31
30
|
let _kubb_plugin_ts = require("@kubb/plugin-ts");
|
|
32
31
|
let _kubb_renderer_jsx_jsx_runtime = require("@kubb/renderer-jsx/jsx-runtime");
|
|
@@ -551,8 +550,9 @@ var compatibility = {
|
|
|
551
550
|
"node": ">=22.22"
|
|
552
551
|
};
|
|
553
552
|
// package.json
|
|
554
|
-
var version = "5.11.0-canary.
|
|
553
|
+
var version = "5.11.0-canary.20261109T211530";
|
|
555
554
|
// ../../internals/client/src/resolveOperationTypes.ts
|
|
555
|
+
const pluginZodName = "plugin-zod";
|
|
556
556
|
/**
|
|
557
557
|
* A `plugin-ts` shaped resolver whose operation type names point at the types `pluginZod({ inferred })`
|
|
558
558
|
* exports next to each schema, so code written against `plugin-ts` names picks up the zod types.
|
|
@@ -595,7 +595,7 @@ function toZodTypeResolver(resolver) {
|
|
|
595
595
|
function resolveOperationTypes(driver, pluginName) {
|
|
596
596
|
return driver.memo(`operationTypes:${pluginName}`, () => {
|
|
597
597
|
const pluginTs = driver.getPlugin(_kubb_plugin_ts.pluginTsName);
|
|
598
|
-
const pluginZod = driver.getPlugin(
|
|
598
|
+
const pluginZod = driver.getPlugin(pluginZodName);
|
|
599
599
|
if (pluginTs && pluginZod?.options?.inferred !== "codec") {
|
|
600
600
|
const resolver = driver.getResolver(_kubb_plugin_ts.pluginTsName);
|
|
601
601
|
return {
|
|
@@ -613,7 +613,7 @@ function resolveOperationTypes(driver, pluginName) {
|
|
|
613
613
|
location: { kind: "config" },
|
|
614
614
|
plugin: pluginName
|
|
615
615
|
});
|
|
616
|
-
const resolver = toZodTypeResolver(driver.getResolver(
|
|
616
|
+
const resolver = toZodTypeResolver(driver.getResolver(pluginZodName));
|
|
617
617
|
return {
|
|
618
618
|
response: resolver.response,
|
|
619
619
|
resolver,
|