@kubb/plugin-ts 3.0.0-alpha.12 → 3.0.0-alpha.13
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-T7XSVXS6.js → chunk-ACLOC5VF.js} +6 -6
- package/dist/chunk-ACLOC5VF.js.map +1 -0
- package/dist/{chunk-X5LPJZGF.js → chunk-GHD7XUM4.js} +4 -4
- package/dist/{chunk-X5LPJZGF.js.map → chunk-GHD7XUM4.js.map} +1 -1
- package/dist/{chunk-YQK6XG55.cjs → chunk-NNWWVCR6.cjs} +21 -21
- package/dist/chunk-NNWWVCR6.cjs.map +1 -0
- package/dist/{chunk-ADFKVVPE.cjs → chunk-WG3GHGN2.cjs} +4 -4
- package/dist/{chunk-ADFKVVPE.cjs.map → chunk-WG3GHGN2.cjs.map} +1 -1
- package/dist/components.cjs +6 -6
- package/dist/components.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/dist/oas.cjs +2 -2
- package/dist/oas.js +1 -1
- package/package.json +11 -11
- package/src/components/OperationSchema.tsx +1 -1
- package/src/components/Schema.tsx +2 -2
- package/dist/chunk-T7XSVXS6.js.map +0 -1
- package/dist/chunk-YQK6XG55.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -29,6 +29,19 @@
|
|
|
29
29
|
</h4>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
+
## Supporting Kubb
|
|
33
|
+
|
|
34
|
+
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:
|
|
35
|
+
|
|
36
|
+
- [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<a href="https://github.com/sponsors/stijnvanhulle">
|
|
40
|
+
<img src="https://raw.githubusercontent.com/stijnvanhulle/sponsors/main/sponsors.svg" alt="My sponsors" />
|
|
41
|
+
</a>
|
|
42
|
+
</p>
|
|
43
|
+
|
|
44
|
+
|
|
32
45
|
<!-- Badges -->
|
|
33
46
|
|
|
34
47
|
[npm-version-src]: https://img.shields.io/npm/v/@kubb/plugin-ts?flat&colorA=18181B&colorB=f58517
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJS, init_esm_shims, __toESM } from './chunk-
|
|
1
|
+
import { __commonJS, init_esm_shims, __toESM } from './chunk-GHD7XUM4.js';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { createPlugin, FileManager, PluginManager } from '@kubb/core';
|
|
4
4
|
import transformers2, { camelCase, pascalCase } from '@kubb/core/transformers';
|
|
@@ -2500,8 +2500,8 @@ function Schema(props) {
|
|
|
2500
2500
|
);
|
|
2501
2501
|
return /* @__PURE__ */ jsxs(import_react3.Fragment, { children: [
|
|
2502
2502
|
enums.map(({ name: name2, nameNode, typeName: typeName2, typeNode }, index) => /* @__PURE__ */ jsxs(import_react3.Fragment, { children: [
|
|
2503
|
-
nameNode && /* @__PURE__ */ jsx(File.Source, { name: name2, isExportable: true, isIndexable: true, children: print(nameNode) }),
|
|
2504
|
-
/* @__PURE__ */ jsx(File.Source, { name: typeName2, isIndexable: true, isExportable: ["enum", "asConst", "constEnum", "literal", void 0].includes(enumType), isTypeOnly: true, children: print(typeNode) })
|
|
2503
|
+
nameNode && /* @__PURE__ */ jsx(File.Source, { name: name2, isExportable: true, isIndexable: true, children: print([nameNode]) }),
|
|
2504
|
+
/* @__PURE__ */ jsx(File.Source, { name: typeName2, isIndexable: true, isExportable: ["enum", "asConst", "constEnum", "literal", void 0].includes(enumType), isTypeOnly: true, children: print([typeNode]) })
|
|
2505
2505
|
] }, [name2, nameNode].join("-"))),
|
|
2506
2506
|
enums.every((item) => item.typeName !== resolvedName) && /* @__PURE__ */ jsx(File.Source, { name: typeName, isTypeOnly: true, isExportable: true, isIndexable: true, children: print(typeNodes) })
|
|
2507
2507
|
] });
|
|
@@ -2599,7 +2599,7 @@ function printCombinedSchema({
|
|
|
2599
2599
|
),
|
|
2600
2600
|
modifiers: [factory.modifiers.export]
|
|
2601
2601
|
});
|
|
2602
|
-
return print(namespaceNode);
|
|
2602
|
+
return print([namespaceNode]);
|
|
2603
2603
|
}
|
|
2604
2604
|
function OperationSchema({ keysToOmit, description }) {
|
|
2605
2605
|
return /* @__PURE__ */ jsx(Schema, { keysToOmit, description });
|
|
@@ -2785,5 +2785,5 @@ react/cjs/react.development.js:
|
|
|
2785
2785
|
*/
|
|
2786
2786
|
|
|
2787
2787
|
export { OasType, OperationSchema, Schema, pluginTs, pluginTsName };
|
|
2788
|
-
//# sourceMappingURL=chunk-
|
|
2789
|
-
//# sourceMappingURL=chunk-
|
|
2788
|
+
//# sourceMappingURL=chunk-ACLOC5VF.js.map
|
|
2789
|
+
//# sourceMappingURL=chunk-ACLOC5VF.js.map
|