@kubb/swagger-ts 2.0.0-beta.7 → 2.0.0-beta.9
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/components.cjs +2 -3
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +6 -4
- package/dist/components.d.ts +6 -4
- package/dist/components.js +2 -3
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +5 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -63
- package/dist/index.d.ts +65 -63
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/{infer.d.ts → oas.d.ts} +56 -56
- package/dist/{infer.js → oas.js} +1 -1
- package/package.json +11 -11
- package/src/components/Oas.tsx +2 -2
- package/src/{infer → oas}/index.ts +1 -1
- package/src/{infer/parse.ts → oas/infer.ts} +1 -1
- package/src/plugin.ts +0 -1
- package/src/types.ts +7 -5
- /package/dist/{infer.js.map → oas.js.map} +0 -0
- /package/src/{infer → oas}/mappers.ts +0 -0
- /package/src/{infer → oas}/model.ts +0 -0
- /package/src/{infer → oas}/requestParams.ts +0 -0
- /package/src/{infer → oas}/response.ts +0 -0
- /package/src/{infer → oas}/security.ts +0 -0
package/dist/index.cjs
CHANGED
@@ -3633,7 +3633,7 @@ function Template({
|
|
3633
3633
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
3634
3634
|
`export const ${name} = ${JSON.stringify(api, void 0, 2)} as const`,
|
3635
3635
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("br", {}),
|
3636
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.Type, { name: typeName, export: true, children: `
|
3636
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.Type, { name: typeName, export: true, children: `Infer<typeof ${name}>` })
|
3637
3637
|
] });
|
3638
3638
|
}
|
3639
3639
|
var defaultTemplates = { default: Template };
|
@@ -3656,7 +3656,7 @@ Oas.File = function({ name, typeName, templates = defaultTemplates }) {
|
|
3656
3656
|
path: file.path,
|
3657
3657
|
meta: file.meta,
|
3658
3658
|
children: [
|
3659
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.File.Import, { name: ["
|
3659
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.File.Import, { name: ["Infer"], path: "@kubb/swagger-ts/oas", isTypeOnly: true }),
|
3660
3660
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(react.File.Source, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Oas, { Template: Template2, name, typeName }) })
|
3661
3661
|
]
|
3662
3662
|
}
|
@@ -3928,7 +3928,6 @@ var definePlugin = core.createPlugin((options) => {
|
|
3928
3928
|
await this.fileManager.addIndexes({
|
3929
3929
|
root,
|
3930
3930
|
output,
|
3931
|
-
extName: ".ts",
|
3932
3931
|
meta: { pluginKey: this.plugin.key },
|
3933
3932
|
options: {
|
3934
3933
|
isTypeOnly: true
|
@@ -3941,8 +3940,8 @@ var definePlugin = core.createPlugin((options) => {
|
|
3941
3940
|
// src/types.ts
|
3942
3941
|
init_cjs_shims();
|
3943
3942
|
|
3944
|
-
// src/
|
3945
|
-
var
|
3943
|
+
// src/oas/index.ts
|
3944
|
+
var oas_exports = {};
|
3946
3945
|
init_cjs_shims();
|
3947
3946
|
|
3948
3947
|
// src/index.ts
|
@@ -3994,7 +3993,7 @@ react/cjs/react-jsx-runtime.development.js:
|
|
3994
3993
|
*)
|
3995
3994
|
*/
|
3996
3995
|
|
3997
|
-
exports.
|
3996
|
+
exports.Oas = oas_exports;
|
3998
3997
|
exports.default = src_default;
|
3999
3998
|
exports.definePlugin = definePlugin;
|
4000
3999
|
exports.pluginKey = pluginKey;
|