@kubb/plugin-zod 3.0.0-alpha.12 → 3.0.0-alpha.14
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/README.md +13 -0
- package/dist/{chunk-N2VGLM33.cjs → chunk-G6ZSGAN2.cjs} +7 -7
- package/dist/chunk-G6ZSGAN2.cjs.map +1 -0
- package/dist/{chunk-BWE5OHCP.js → chunk-VY4FJ3P5.js} +7 -7
- package/dist/chunk-VY4FJ3P5.js.map +1 -0
- package/dist/components.cjs +5 -5
- package/dist/components.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/package.json +12 -12
- package/dist/chunk-BWE5OHCP.js.map +0 -1
- package/dist/chunk-N2VGLM33.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -28,6 +28,19 @@
|
|
|
28
28
|
</h4>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
|
+
## Supporting Kubb
|
|
32
|
+
|
|
33
|
+
Kubb uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
|
|
34
|
+
|
|
35
|
+
- [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<a href="https://github.com/sponsors/stijnvanhulle">
|
|
39
|
+
<img src="https://raw.githubusercontent.com/stijnvanhulle/sponsors/main/sponsors.svg" alt="My sponsors" />
|
|
40
|
+
</a>
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
|
|
31
44
|
<!-- Badges -->
|
|
32
45
|
|
|
33
46
|
[npm-version-src]: https://img.shields.io/npm/v/@kubb/plugin-zod?flat&colorA=18181B&colorB=f58517
|
|
@@ -65,9 +65,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
65
65
|
mod
|
|
66
66
|
));
|
|
67
67
|
|
|
68
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.
|
|
68
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.3__@swc+core@1.7.22_jiti@1.21.6__u7skpyfxefj3p74f4ezafa3xla/node_modules/tsup/assets/cjs_shims.js
|
|
69
69
|
var init_cjs_shims = __esm({
|
|
70
|
-
"../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.
|
|
70
|
+
"../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.47.7_@types+node@20.16.3__@swc+core@1.7.22_jiti@1.21.6__u7skpyfxefj3p74f4ezafa3xla/node_modules/tsup/assets/cjs_shims.js"() {
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
|
|
@@ -2563,8 +2563,8 @@ function Schema(props) {
|
|
|
2563
2563
|
);
|
|
2564
2564
|
return /* @__PURE__ */ jsxRuntime.jsxs(import_react3.Fragment, { children: [
|
|
2565
2565
|
enums.map(({ name: name2, nameNode, typeName: typeName2, typeNode }, index) => /* @__PURE__ */ jsxRuntime.jsxs(import_react3.Fragment, { children: [
|
|
2566
|
-
nameNode && /* @__PURE__ */ jsxRuntime.jsx(react.File.Source, { name: name2, isExportable: true, isIndexable: true, children: parserTs.print(nameNode) }),
|
|
2567
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.File.Source, { name: typeName2, isIndexable: true, isExportable: ["enum", "asConst", "constEnum", "literal", void 0].includes(enumType), isTypeOnly: true, children: parserTs.print(typeNode) })
|
|
2566
|
+
nameNode && /* @__PURE__ */ jsxRuntime.jsx(react.File.Source, { name: name2, isExportable: true, isIndexable: true, children: parserTs.print([nameNode]) }),
|
|
2567
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.File.Source, { name: typeName2, isIndexable: true, isExportable: ["enum", "asConst", "constEnum", "literal", void 0].includes(enumType), isTypeOnly: true, children: parserTs.print([typeNode]) })
|
|
2568
2568
|
] }, [name2, nameNode].join("-"))),
|
|
2569
2569
|
enums.every((item) => item.typeName !== resolvedName) && /* @__PURE__ */ jsxRuntime.jsx(react.File.Source, { name: typeName, isTypeOnly: true, isExportable: true, isIndexable: true, children: parserTs.print(typeNodes) })
|
|
2570
2570
|
] });
|
|
@@ -2662,7 +2662,7 @@ function printCombinedSchema({
|
|
|
2662
2662
|
),
|
|
2663
2663
|
modifiers: [factory__namespace.modifiers.export]
|
|
2664
2664
|
});
|
|
2665
|
-
return parserTs.print(namespaceNode);
|
|
2665
|
+
return parserTs.print([namespaceNode]);
|
|
2666
2666
|
}
|
|
2667
2667
|
function OperationSchema({ keysToOmit, description }) {
|
|
2668
2668
|
return /* @__PURE__ */ jsxRuntime.jsx(Schema, { keysToOmit, description });
|
|
@@ -3458,5 +3458,5 @@ exports.Schema = Schema2;
|
|
|
3458
3458
|
exports.init_cjs_shims = init_cjs_shims;
|
|
3459
3459
|
exports.pluginZod = pluginZod;
|
|
3460
3460
|
exports.pluginZodName = pluginZodName;
|
|
3461
|
-
//# sourceMappingURL=chunk-
|
|
3462
|
-
//# sourceMappingURL=chunk-
|
|
3461
|
+
//# sourceMappingURL=chunk-G6ZSGAN2.cjs.map
|
|
3462
|
+
//# sourceMappingURL=chunk-G6ZSGAN2.cjs.map
|