kubb 5.10.2 → 5.10.4
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/config.cjs +1 -1
- package/dist/config.d.cts +3 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/{defineConfig-wAz42i-Y.cjs → defineConfig-CAlKKmP5.cjs} +14 -2
- package/dist/{defineConfig-wAz42i-Y.cjs.map → defineConfig-CAlKKmP5.cjs.map} +1 -1
- package/dist/{defineConfig-D7bKDuZT.d.ts → defineConfig-Dw_FP2Nv.d.cts} +1 -2
- package/dist/defineConfig-Dw_FP2Nv.d.ts +60 -0
- package/dist/{defineConfig-CReNal6i.js → defineConfig-EWSTl_g4.js} +9 -3
- package/dist/{defineConfig-CReNal6i.js.map → defineConfig-EWSTl_g4.js.map} +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.d.cts +1 -0
- package/dist/jsx/jsx-runtime.d.cts +1 -0
- package/dist/jsx.d.cts +1 -0
- package/dist/kit.d.cts +1 -0
- package/package.json +87 -51
- package/dist/astro.cjs +0 -4
- package/dist/esbuild.cjs +0 -4
- package/dist/farm.cjs +0 -4
- package/dist/kit/testing.cjs +0 -9
- package/dist/nuxt.cjs +0 -4
- package/dist/rolldown-runtime-C0LytTxp.js +0 -8
- package/dist/rolldown-runtime-qbf5tadS.cjs +0 -38
- package/dist/rolldown.cjs +0 -4
- package/dist/rollup.cjs +0 -4
- package/dist/rspack.cjs +0 -4
- package/dist/vite.cjs +0 -4
- package/dist/webpack.cjs +0 -4
package/dist/config.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_defineConfig = require("./defineConfig-
|
|
2
|
+
const require_defineConfig = require("./defineConfig-CAlKKmP5.cjs");
|
|
3
3
|
exports.defineConfig = require_defineConfig.defineConfig;
|
package/dist/config.d.ts
CHANGED
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as defineConfig } from "./defineConfig-
|
|
1
|
+
export { t as defineConfig } from "./defineConfig-EWSTl_g4.js";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
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
|
|
2
8
|
let unplugin_kubb = require("unplugin-kubb");
|
|
3
9
|
//#region src/defineConfig.ts
|
|
4
10
|
function normalizeConfig(config) {
|
|
@@ -51,6 +57,12 @@ function defineConfig(config) {
|
|
|
51
57
|
return normalizeConfig(config);
|
|
52
58
|
}
|
|
53
59
|
//#endregion
|
|
60
|
+
Object.defineProperty(exports, "__name", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function() {
|
|
63
|
+
return __name;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
54
66
|
Object.defineProperty(exports, "defineConfig", {
|
|
55
67
|
enumerable: true,
|
|
56
68
|
get: function() {
|
|
@@ -58,4 +70,4 @@ Object.defineProperty(exports, "defineConfig", {
|
|
|
58
70
|
}
|
|
59
71
|
});
|
|
60
72
|
|
|
61
|
-
//# sourceMappingURL=defineConfig-
|
|
73
|
+
//# sourceMappingURL=defineConfig-CAlKKmP5.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineConfig-
|
|
1
|
+
{"version":3,"file":"defineConfig-CAlKKmP5.cjs","names":["applyDefaults"],"sources":["../src/defineConfig.ts"],"sourcesContent":["import type { PossiblePromise } from '@internals/utils'\nimport type { CLIOptions, UserConfig } from '@kubb/core'\nimport { applyDefaults } from 'unplugin-kubb'\n\ntype AnyConfigResult = UserConfig<unknown> | Array<UserConfig<unknown>>\ntype ConfigInput = AnyConfigResult | Promise<AnyConfigResult> | ((cli: CLIOptions) => PossiblePromise<AnyConfigResult>)\ntype NormalizeConfig<TConfig> =\n TConfig extends Array<UserConfig<infer TInput>> ? Array<UserConfig<TInput>> : TConfig extends UserConfig<infer TInput> ? UserConfig<TInput> : never\ntype DefinedConfig<TConfig extends ConfigInput> = TConfig extends (cli: CLIOptions) => PossiblePromise<infer TResult>\n ? (cli: CLIOptions) => Promise<NormalizeConfig<TResult>>\n : TConfig extends Promise<infer TResult>\n ? Promise<NormalizeConfig<TResult>>\n : NormalizeConfig<TConfig>\n\nfunction normalizeConfig<TInput>(config: UserConfig<TInput> | Array<UserConfig<TInput>>): UserConfig<TInput> | Array<UserConfig<TInput>> {\n if (Array.isArray(config)) {\n return config.map(applyDefaults)\n }\n\n return applyDefaults(config)\n}\n\n/**\n * Defines a Kubb build configuration and fills in defaults for any omitted fields.\n *\n * Defaults applied when omitted:\n * - `adapter` → `adapterOas()` (OpenAPI 2.0/3.0/3.1).\n * - `parsers` → `[parserTs(), parserTsx(), parserMd()]`.\n * - `reporters` → `[cliReporter, jsonReporter, fileReporter, htmlReporter]`.\n * - `plugins` → `pluginBarrel()` is appended when not already present.\n * - `output.barrel` → `false` when not set.\n * - `output.format` and `output.lint` → `false`.\n *\n * Accepts a config object, an array of configs, a Promise resolving to one,\n * or a function that receives the parsed CLI options and returns any of the\n * above. The return type is preserved so async/array variants stay typed.\n *\n * @example\n * ```ts\n * import { defineConfig } from 'kubb'\n * import { pluginTs } from '@kubb/plugin-ts'\n *\n * export default defineConfig({\n * input: './petStore.yaml',\n * output: { path: './src/gen' },\n * plugins: [pluginTs()],\n * })\n * ```\n *\n * @example Function form with CLI options\n * ```ts\n * import { defineConfig } from 'kubb'\n *\n * export default defineConfig(({ input }) => ({\n * input: input ?? './petStore.yaml',\n * output: { path: './src/gen' },\n * plugins: [],\n * }))\n * ```\n */\nexport function defineConfig<TConfig extends ConfigInput>(config: TConfig): DefinedConfig<TConfig> {\n if (typeof config === 'function') {\n return (async (cli: CLIOptions) => {\n return normalizeConfig(await config(cli))\n }) as DefinedConfig<TConfig>\n }\n\n if (config instanceof Promise) {\n return config.then(normalizeConfig) as DefinedConfig<TConfig>\n }\n\n return normalizeConfig(config) as DefinedConfig<TConfig>\n}\n"],"mappings":";;;;;;;;;AAcA,SAAS,gBAAwB,QAAwG;CACvI,IAAI,MAAM,QAAQ,MAAM,GACtB,OAAO,OAAO,IAAIA,cAAAA,aAAa;CAGjC,QAAA,GAAOA,cAAAA,cAAAA,CAAc,MAAM;AAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,SAAgB,aAA0C,QAAyC;CACjG,IAAI,OAAO,WAAW,YACpB,QAAQ,OAAO,QAAoB;EACjC,OAAO,gBAAgB,MAAM,OAAO,GAAG,CAAC;CAC1C;CAGF,IAAI,kBAAkB,SACpB,OAAO,OAAO,KAAK,eAAe;CAGpC,OAAO,gBAAgB,MAAM;AAC/B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
1
|
import { CLIOptions, UserConfig } from "@kubb/core";
|
|
3
2
|
//#region ../../internals/utils/src/promise.d.ts
|
|
4
3
|
/** A value that may already be resolved or still pending.
|
|
@@ -58,4 +57,4 @@ type DefinedConfig<TConfig extends ConfigInput> = TConfig extends ((cli: CLIOpti
|
|
|
58
57
|
declare function defineConfig<TConfig extends ConfigInput>(config: TConfig): DefinedConfig<TConfig>;
|
|
59
58
|
//#endregion
|
|
60
59
|
export { defineConfig as t };
|
|
61
|
-
//# sourceMappingURL=defineConfig-
|
|
60
|
+
//# sourceMappingURL=defineConfig-Dw_FP2Nv.d.cts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { CLIOptions, UserConfig } from "@kubb/core";
|
|
2
|
+
//#region ../../internals/utils/src/promise.d.ts
|
|
3
|
+
/** A value that may already be resolved or still pending.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* function load(id: string): PossiblePromise<string> {
|
|
8
|
+
* return cache.get(id) ?? fetchRemote(id)
|
|
9
|
+
* }
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
type PossiblePromise<T> = Promise<T> | T;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/defineConfig.d.ts
|
|
15
|
+
type AnyConfigResult = UserConfig<unknown> | Array<UserConfig<unknown>>;
|
|
16
|
+
type ConfigInput = AnyConfigResult | Promise<AnyConfigResult> | ((cli: CLIOptions) => PossiblePromise<AnyConfigResult>);
|
|
17
|
+
type NormalizeConfig<TConfig> = TConfig extends Array<UserConfig<infer TInput>> ? Array<UserConfig<TInput>> : TConfig extends UserConfig<infer TInput> ? UserConfig<TInput> : never;
|
|
18
|
+
type DefinedConfig<TConfig extends ConfigInput> = TConfig extends ((cli: CLIOptions) => PossiblePromise<infer TResult>) ? (cli: CLIOptions) => Promise<NormalizeConfig<TResult>> : TConfig extends Promise<infer TResult> ? Promise<NormalizeConfig<TResult>> : NormalizeConfig<TConfig>;
|
|
19
|
+
/**
|
|
20
|
+
* Defines a Kubb build configuration and fills in defaults for any omitted fields.
|
|
21
|
+
*
|
|
22
|
+
* Defaults applied when omitted:
|
|
23
|
+
* - `adapter` → `adapterOas()` (OpenAPI 2.0/3.0/3.1).
|
|
24
|
+
* - `parsers` → `[parserTs(), parserTsx(), parserMd()]`.
|
|
25
|
+
* - `reporters` → `[cliReporter, jsonReporter, fileReporter, htmlReporter]`.
|
|
26
|
+
* - `plugins` → `pluginBarrel()` is appended when not already present.
|
|
27
|
+
* - `output.barrel` → `false` when not set.
|
|
28
|
+
* - `output.format` and `output.lint` → `false`.
|
|
29
|
+
*
|
|
30
|
+
* Accepts a config object, an array of configs, a Promise resolving to one,
|
|
31
|
+
* or a function that receives the parsed CLI options and returns any of the
|
|
32
|
+
* above. The return type is preserved so async/array variants stay typed.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* import { defineConfig } from 'kubb'
|
|
37
|
+
* import { pluginTs } from '@kubb/plugin-ts'
|
|
38
|
+
*
|
|
39
|
+
* export default defineConfig({
|
|
40
|
+
* input: './petStore.yaml',
|
|
41
|
+
* output: { path: './src/gen' },
|
|
42
|
+
* plugins: [pluginTs()],
|
|
43
|
+
* })
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example Function form with CLI options
|
|
47
|
+
* ```ts
|
|
48
|
+
* import { defineConfig } from 'kubb'
|
|
49
|
+
*
|
|
50
|
+
* export default defineConfig(({ input }) => ({
|
|
51
|
+
* input: input ?? './petStore.yaml',
|
|
52
|
+
* output: { path: './src/gen' },
|
|
53
|
+
* plugins: [],
|
|
54
|
+
* }))
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
declare function defineConfig<TConfig extends ConfigInput>(config: TConfig): DefinedConfig<TConfig>;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { defineConfig as t };
|
|
60
|
+
//# sourceMappingURL=defineConfig-Dw_FP2Nv.d.ts.map
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import "./rolldown-runtime-C0LytTxp.js";
|
|
2
1
|
import { applyDefaults } from "unplugin-kubb";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
5
|
+
value,
|
|
6
|
+
configurable: true
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
3
9
|
//#region src/defineConfig.ts
|
|
4
10
|
function normalizeConfig(config) {
|
|
5
11
|
if (Array.isArray(config)) return config.map(applyDefaults);
|
|
@@ -51,6 +57,6 @@ function defineConfig(config) {
|
|
|
51
57
|
return normalizeConfig(config);
|
|
52
58
|
}
|
|
53
59
|
//#endregion
|
|
54
|
-
export { defineConfig as t };
|
|
60
|
+
export { __name as n, defineConfig as t };
|
|
55
61
|
|
|
56
|
-
//# sourceMappingURL=defineConfig-
|
|
62
|
+
//# sourceMappingURL=defineConfig-EWSTl_g4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineConfig-
|
|
1
|
+
{"version":3,"file":"defineConfig-EWSTl_g4.js","names":[],"sources":["../src/defineConfig.ts"],"sourcesContent":["import type { PossiblePromise } from '@internals/utils'\nimport type { CLIOptions, UserConfig } from '@kubb/core'\nimport { applyDefaults } from 'unplugin-kubb'\n\ntype AnyConfigResult = UserConfig<unknown> | Array<UserConfig<unknown>>\ntype ConfigInput = AnyConfigResult | Promise<AnyConfigResult> | ((cli: CLIOptions) => PossiblePromise<AnyConfigResult>)\ntype NormalizeConfig<TConfig> =\n TConfig extends Array<UserConfig<infer TInput>> ? Array<UserConfig<TInput>> : TConfig extends UserConfig<infer TInput> ? UserConfig<TInput> : never\ntype DefinedConfig<TConfig extends ConfigInput> = TConfig extends (cli: CLIOptions) => PossiblePromise<infer TResult>\n ? (cli: CLIOptions) => Promise<NormalizeConfig<TResult>>\n : TConfig extends Promise<infer TResult>\n ? Promise<NormalizeConfig<TResult>>\n : NormalizeConfig<TConfig>\n\nfunction normalizeConfig<TInput>(config: UserConfig<TInput> | Array<UserConfig<TInput>>): UserConfig<TInput> | Array<UserConfig<TInput>> {\n if (Array.isArray(config)) {\n return config.map(applyDefaults)\n }\n\n return applyDefaults(config)\n}\n\n/**\n * Defines a Kubb build configuration and fills in defaults for any omitted fields.\n *\n * Defaults applied when omitted:\n * - `adapter` → `adapterOas()` (OpenAPI 2.0/3.0/3.1).\n * - `parsers` → `[parserTs(), parserTsx(), parserMd()]`.\n * - `reporters` → `[cliReporter, jsonReporter, fileReporter, htmlReporter]`.\n * - `plugins` → `pluginBarrel()` is appended when not already present.\n * - `output.barrel` → `false` when not set.\n * - `output.format` and `output.lint` → `false`.\n *\n * Accepts a config object, an array of configs, a Promise resolving to one,\n * or a function that receives the parsed CLI options and returns any of the\n * above. The return type is preserved so async/array variants stay typed.\n *\n * @example\n * ```ts\n * import { defineConfig } from 'kubb'\n * import { pluginTs } from '@kubb/plugin-ts'\n *\n * export default defineConfig({\n * input: './petStore.yaml',\n * output: { path: './src/gen' },\n * plugins: [pluginTs()],\n * })\n * ```\n *\n * @example Function form with CLI options\n * ```ts\n * import { defineConfig } from 'kubb'\n *\n * export default defineConfig(({ input }) => ({\n * input: input ?? './petStore.yaml',\n * output: { path: './src/gen' },\n * plugins: [],\n * }))\n * ```\n */\nexport function defineConfig<TConfig extends ConfigInput>(config: TConfig): DefinedConfig<TConfig> {\n if (typeof config === 'function') {\n return (async (cli: CLIOptions) => {\n return normalizeConfig(await config(cli))\n }) as DefinedConfig<TConfig>\n }\n\n if (config instanceof Promise) {\n return config.then(normalizeConfig) as DefinedConfig<TConfig>\n }\n\n return normalizeConfig(config) as DefinedConfig<TConfig>\n}\n"],"mappings":";;;;;;;;;AAcA,SAAS,gBAAwB,QAAwG;CACvI,IAAI,MAAM,QAAQ,MAAM,GACtB,OAAO,OAAO,IAAI,aAAa;CAGjC,OAAO,cAAc,MAAM;AAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,SAAgB,aAA0C,QAAyC;CACjG,IAAI,OAAO,WAAW,YACpB,QAAQ,OAAO,QAAoB;EACjC,OAAO,gBAAgB,MAAM,OAAO,GAAG,CAAC;CAC1C;CAGF,IAAI,kBAAkB,SACpB,OAAO,OAAO,KAAK,eAAe;CAGpC,OAAO,gBAAgB,MAAM;AAC/B"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./
|
|
3
|
-
const require_defineConfig = require("./defineConfig-wAz42i-Y.cjs");
|
|
2
|
+
const require_defineConfig = require("./defineConfig-CAlKKmP5.cjs");
|
|
4
3
|
let _kubb_core = require("@kubb/core");
|
|
5
4
|
//#region src/createKubb.ts
|
|
6
5
|
/**
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["createCoreKubb","defineConfig"],"sources":["../src/createKubb.ts"],"sourcesContent":["import { createKubb as createCoreKubb, type CreateKubbOptions, type Kubb, type UserConfig } from '@kubb/core'\nimport { defineConfig } from './defineConfig.ts'\n\n/**\n * Creates a Kubb instance with the same defaults as `defineConfig`.\n */\nexport function createKubb(userConfig: UserConfig, options?: CreateKubbOptions): Kubb {\n return createCoreKubb(defineConfig(userConfig), options)\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["createCoreKubb","defineConfig"],"sources":["../src/createKubb.ts"],"sourcesContent":["import { createKubb as createCoreKubb, type CreateKubbOptions, type Kubb, type UserConfig } from '@kubb/core'\nimport { defineConfig } from './defineConfig.ts'\n\n/**\n * Creates a Kubb instance with the same defaults as `defineConfig`.\n */\nexport function createKubb(userConfig: UserConfig, options?: CreateKubbOptions): Kubb {\n return createCoreKubb(defineConfig(userConfig), options)\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,WAAW,YAAwB,SAAmC;CACpF,QAAA,GAAOA,WAAAA,WAAAA,CAAeC,qBAAAA,aAAa,UAAU,GAAG,OAAO;AACzD"}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { t as defineConfig } from "./defineConfig-Dw_FP2Nv.cjs";
|
|
2
|
+
import { BuildOutput, Config, CreateKubbOptions, CreateKubbOptions as CreateKubbOptions$1, Kubb, Kubb as Kubb$1, UserConfig, UserConfig as UserConfig$1 } from "@kubb/core";
|
|
3
|
+
import { BarrelType } from "@kubb/plugin-barrel";
|
|
4
|
+
//#region src/createKubb.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Kubb instance with the same defaults as `defineConfig`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createKubb(userConfig: UserConfig$1, options?: CreateKubbOptions$1): Kubb$1;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { type BarrelType, type BuildOutput, type Config, type CreateKubbOptions, type Kubb, type UserConfig, defineConfig };
|
|
11
|
+
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as defineConfig } from "./defineConfig-D7bKDuZT.js";
|
|
1
|
+
import { t as defineConfig } from "./defineConfig-Dw_FP2Nv.js";
|
|
3
2
|
import { BuildOutput, Config, CreateKubbOptions, CreateKubbOptions as CreateKubbOptions$1, Kubb, Kubb as Kubb$1, UserConfig, UserConfig as UserConfig$1 } from "@kubb/core";
|
|
4
3
|
import { BarrelType } from "@kubb/plugin-barrel";
|
|
5
4
|
//#region src/createKubb.d.ts
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["createCoreKubb"],"sources":["../src/createKubb.ts"],"sourcesContent":["import { createKubb as createCoreKubb, type CreateKubbOptions, type Kubb, type UserConfig } from '@kubb/core'\nimport { defineConfig } from './defineConfig.ts'\n\n/**\n * Creates a Kubb instance with the same defaults as `defineConfig`.\n */\nexport function createKubb(userConfig: UserConfig, options?: CreateKubbOptions): Kubb {\n return createCoreKubb(defineConfig(userConfig), options)\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["createCoreKubb"],"sources":["../src/createKubb.ts"],"sourcesContent":["import { createKubb as createCoreKubb, type CreateKubbOptions, type Kubb, type UserConfig } from '@kubb/core'\nimport { defineConfig } from './defineConfig.ts'\n\n/**\n * Creates a Kubb instance with the same defaults as `defineConfig`.\n */\nexport function createKubb(userConfig: UserConfig, options?: CreateKubbOptions): Kubb {\n return createCoreKubb(defineConfig(userConfig), options)\n}\n"],"mappings":";;;;;;AAMA,SAAgB,WAAW,YAAwB,SAAmC;CACpF,OAAOA,aAAe,aAAa,UAAU,GAAG,OAAO;AACzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@kubb/renderer-jsx/jsx-dev-runtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@kubb/renderer-jsx/jsx-runtime";
|
package/dist/jsx.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@kubb/renderer-jsx";
|
package/dist/kit.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@kubb/kit";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kubb",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.4",
|
|
4
4
|
"description": "Turn your API spec into type-safe code. Generate TypeScript types, API clients, hooks, validators and mocks from a spec such as OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -52,86 +52,114 @@
|
|
|
52
52
|
"main": "./dist/index.cjs",
|
|
53
53
|
"module": "./dist/index.js",
|
|
54
54
|
"types": "./dist/index.d.ts",
|
|
55
|
+
"typesVersions": {
|
|
56
|
+
"*": {
|
|
57
|
+
"*": [
|
|
58
|
+
"./dist/*",
|
|
59
|
+
"./*"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
55
63
|
"exports": {
|
|
56
64
|
".": {
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
65
|
+
"import": {
|
|
66
|
+
"types": "./dist/index.d.ts",
|
|
67
|
+
"default": "./dist/index.js"
|
|
68
|
+
},
|
|
69
|
+
"require": {
|
|
70
|
+
"types": "./dist/index.d.cts",
|
|
71
|
+
"default": "./dist/index.cjs"
|
|
72
|
+
}
|
|
60
73
|
},
|
|
61
74
|
"./astro": {
|
|
62
75
|
"types": "./dist/astro.d.ts",
|
|
63
|
-
"
|
|
64
|
-
"require": "./dist/astro.cjs"
|
|
76
|
+
"default": "./dist/astro.js"
|
|
65
77
|
},
|
|
66
78
|
"./config": {
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
79
|
+
"import": {
|
|
80
|
+
"types": "./dist/config.d.ts",
|
|
81
|
+
"default": "./dist/config.js"
|
|
82
|
+
},
|
|
83
|
+
"require": {
|
|
84
|
+
"types": "./dist/config.d.cts",
|
|
85
|
+
"default": "./dist/config.cjs"
|
|
86
|
+
}
|
|
70
87
|
},
|
|
71
88
|
"./esbuild": {
|
|
72
89
|
"types": "./dist/esbuild.d.ts",
|
|
73
|
-
"
|
|
74
|
-
"require": "./dist/esbuild.cjs"
|
|
90
|
+
"default": "./dist/esbuild.js"
|
|
75
91
|
},
|
|
76
92
|
"./farm": {
|
|
77
93
|
"types": "./dist/farm.d.ts",
|
|
78
|
-
"
|
|
79
|
-
"require": "./dist/farm.cjs"
|
|
94
|
+
"default": "./dist/farm.js"
|
|
80
95
|
},
|
|
81
96
|
"./jsx": {
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
"import": {
|
|
98
|
+
"types": "./dist/jsx.d.ts",
|
|
99
|
+
"default": "./dist/jsx.js"
|
|
100
|
+
},
|
|
101
|
+
"require": {
|
|
102
|
+
"types": "./dist/jsx.d.cts",
|
|
103
|
+
"default": "./dist/jsx.cjs"
|
|
104
|
+
}
|
|
85
105
|
},
|
|
86
106
|
"./jsx/jsx-dev-runtime": {
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
107
|
+
"import": {
|
|
108
|
+
"types": "./dist/jsx/jsx-dev-runtime.d.ts",
|
|
109
|
+
"default": "./dist/jsx/jsx-dev-runtime.js"
|
|
110
|
+
},
|
|
111
|
+
"require": {
|
|
112
|
+
"types": "./dist/jsx/jsx-dev-runtime.d.cts",
|
|
113
|
+
"default": "./dist/jsx/jsx-dev-runtime.cjs"
|
|
114
|
+
}
|
|
90
115
|
},
|
|
91
116
|
"./jsx/jsx-runtime": {
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
117
|
+
"import": {
|
|
118
|
+
"types": "./dist/jsx/jsx-runtime.d.ts",
|
|
119
|
+
"default": "./dist/jsx/jsx-runtime.js"
|
|
120
|
+
},
|
|
121
|
+
"require": {
|
|
122
|
+
"types": "./dist/jsx/jsx-runtime.d.cts",
|
|
123
|
+
"default": "./dist/jsx/jsx-runtime.cjs"
|
|
124
|
+
}
|
|
95
125
|
},
|
|
96
126
|
"./kit": {
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
127
|
+
"import": {
|
|
128
|
+
"types": "./dist/kit.d.ts",
|
|
129
|
+
"default": "./dist/kit.js"
|
|
130
|
+
},
|
|
131
|
+
"require": {
|
|
132
|
+
"types": "./dist/kit.d.cts",
|
|
133
|
+
"default": "./dist/kit.cjs"
|
|
134
|
+
}
|
|
100
135
|
},
|
|
101
136
|
"./kit/testing": {
|
|
102
137
|
"types": "./dist/kit/testing.d.ts",
|
|
103
|
-
"
|
|
104
|
-
"require": "./dist/kit/testing.cjs"
|
|
138
|
+
"default": "./dist/kit/testing.js"
|
|
105
139
|
},
|
|
106
140
|
"./nuxt": {
|
|
107
141
|
"types": "./dist/nuxt.d.ts",
|
|
108
|
-
"
|
|
109
|
-
"require": "./dist/nuxt.cjs"
|
|
142
|
+
"default": "./dist/nuxt.js"
|
|
110
143
|
},
|
|
111
144
|
"./rolldown": {
|
|
112
145
|
"types": "./dist/rolldown.d.ts",
|
|
113
|
-
"
|
|
114
|
-
"require": "./dist/rolldown.cjs"
|
|
146
|
+
"default": "./dist/rolldown.js"
|
|
115
147
|
},
|
|
116
148
|
"./rollup": {
|
|
117
149
|
"types": "./dist/rollup.d.ts",
|
|
118
|
-
"
|
|
119
|
-
"require": "./dist/rollup.cjs"
|
|
150
|
+
"default": "./dist/rollup.js"
|
|
120
151
|
},
|
|
121
152
|
"./rspack": {
|
|
122
153
|
"types": "./dist/rspack.d.ts",
|
|
123
|
-
"
|
|
124
|
-
"require": "./dist/rspack.cjs"
|
|
154
|
+
"default": "./dist/rspack.js"
|
|
125
155
|
},
|
|
126
156
|
"./vite": {
|
|
127
157
|
"types": "./dist/vite.d.ts",
|
|
128
|
-
"
|
|
129
|
-
"require": "./dist/vite.cjs"
|
|
158
|
+
"default": "./dist/vite.js"
|
|
130
159
|
},
|
|
131
160
|
"./webpack": {
|
|
132
161
|
"types": "./dist/webpack.d.ts",
|
|
133
|
-
"
|
|
134
|
-
"require": "./dist/webpack.cjs"
|
|
162
|
+
"default": "./dist/webpack.js"
|
|
135
163
|
},
|
|
136
164
|
"./package.json": "./package.json"
|
|
137
165
|
},
|
|
@@ -140,17 +168,17 @@
|
|
|
140
168
|
"registry": "https://registry.npmjs.org/"
|
|
141
169
|
},
|
|
142
170
|
"dependencies": {
|
|
143
|
-
"@kubb/adapter-oas": "5.10.
|
|
144
|
-
"@kubb/cli": "5.10.
|
|
145
|
-
"@kubb/core": "5.10.
|
|
146
|
-
"@kubb/kit": "5.10.
|
|
147
|
-
"@kubb/mcp": "5.10.
|
|
148
|
-
"@kubb/parser-md": "5.10.
|
|
149
|
-
"@kubb/parser-ts": "5.10.
|
|
150
|
-
"@kubb/plugin-barrel": "5.10.
|
|
151
|
-
"@kubb/renderer-jsx": "5.10.
|
|
152
|
-
"@kubb/studio": "5.10.
|
|
153
|
-
"unplugin-kubb": "5.10.
|
|
171
|
+
"@kubb/adapter-oas": "5.10.4",
|
|
172
|
+
"@kubb/cli": "5.10.4",
|
|
173
|
+
"@kubb/core": "5.10.4",
|
|
174
|
+
"@kubb/kit": "5.10.4",
|
|
175
|
+
"@kubb/mcp": "5.10.4",
|
|
176
|
+
"@kubb/parser-md": "5.10.4",
|
|
177
|
+
"@kubb/parser-ts": "5.10.4",
|
|
178
|
+
"@kubb/plugin-barrel": "5.10.4",
|
|
179
|
+
"@kubb/renderer-jsx": "5.10.4",
|
|
180
|
+
"@kubb/studio": "5.10.4",
|
|
181
|
+
"unplugin-kubb": "5.10.4"
|
|
154
182
|
},
|
|
155
183
|
"devDependencies": {
|
|
156
184
|
"@farmfe/core": "^1.7.11",
|
|
@@ -164,9 +192,17 @@
|
|
|
164
192
|
"vite": "^8.3.4",
|
|
165
193
|
"webpack": "^5.111.1"
|
|
166
194
|
},
|
|
195
|
+
"peerDependencies": {
|
|
196
|
+
"vitest": "^4.0.0 || ^5.0.0"
|
|
197
|
+
},
|
|
198
|
+
"peerDependenciesMeta": {
|
|
199
|
+
"vitest": {
|
|
200
|
+
"optional": true
|
|
201
|
+
}
|
|
202
|
+
},
|
|
167
203
|
"preferGlobal": true,
|
|
168
204
|
"engines": {
|
|
169
|
-
"node": ">=22"
|
|
205
|
+
"node": ">=22.12"
|
|
170
206
|
},
|
|
171
207
|
"scripts": {
|
|
172
208
|
"build": "tsdown",
|
package/dist/astro.cjs
DELETED
package/dist/esbuild.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-qbf5tadS.cjs");
|
|
2
|
-
let unplugin_kubb_esbuild = require("unplugin-kubb/esbuild");
|
|
3
|
-
unplugin_kubb_esbuild = require_rolldown_runtime.__toESM(unplugin_kubb_esbuild, 1);
|
|
4
|
-
module.exports = unplugin_kubb_esbuild.default;
|
package/dist/farm.cjs
DELETED
package/dist/kit/testing.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var _kubb_kit_testing = require("@kubb/kit/testing");
|
|
2
|
-
Object.keys(_kubb_kit_testing).forEach(function(k) {
|
|
3
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
4
|
-
enumerable: true,
|
|
5
|
-
get: function() {
|
|
6
|
-
return _kubb_kit_testing[k];
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
});
|
package/dist/nuxt.cjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __name = (target, value) => __defProp(target, "name", {
|
|
5
|
-
value,
|
|
6
|
-
configurable: true
|
|
7
|
-
});
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
11
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
14
|
-
key = keys[i];
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: ((k) => from[k]).bind(null, key),
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
//#endregion
|
|
27
|
-
Object.defineProperty(exports, "__name", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function() {
|
|
30
|
-
return __name;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "__toESM", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function() {
|
|
36
|
-
return __toESM;
|
|
37
|
-
}
|
|
38
|
-
});
|
package/dist/rolldown.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-qbf5tadS.cjs");
|
|
2
|
-
let unplugin_kubb_rolldown = require("unplugin-kubb/rolldown");
|
|
3
|
-
unplugin_kubb_rolldown = require_rolldown_runtime.__toESM(unplugin_kubb_rolldown, 1);
|
|
4
|
-
module.exports = unplugin_kubb_rolldown.default;
|
package/dist/rollup.cjs
DELETED
package/dist/rspack.cjs
DELETED
package/dist/vite.cjs
DELETED
package/dist/webpack.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-qbf5tadS.cjs");
|
|
2
|
-
let unplugin_kubb_webpack = require("unplugin-kubb/webpack");
|
|
3
|
-
unplugin_kubb_webpack = require_rolldown_runtime.__toESM(unplugin_kubb_webpack, 1);
|
|
4
|
-
module.exports = unplugin_kubb_webpack.default;
|