@kubb/core 5.3.8 → 5.3.10
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 +68 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -23
- package/dist/index.js +68 -50
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/{types-Cw20YGzh.d.ts → types-DKzghz5i.d.ts} +32 -2
- package/package.json +2 -2
package/dist/mocks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as KubbDriver, H as Parser, I as Generator, Kt as Adapter, Z as NormalizedPlugin, qt as AdapterFactoryOptions, r as Config, rt as PluginFactoryOptions } from "./types-DKzghz5i.js";
|
|
3
3
|
import { FileNode, InputMeta, Macro, OperationNode, SchemaNode } from "@kubb/ast";
|
|
4
4
|
//#region src/mocks.d.ts
|
|
5
5
|
/**
|
|
@@ -2352,6 +2352,36 @@ declare class Kubb$1 {
|
|
|
2352
2352
|
*/
|
|
2353
2353
|
declare function createKubb(userConfig: UserConfig, options?: CreateKubbOptions): Kubb$1;
|
|
2354
2354
|
//#endregion
|
|
2355
|
+
//#region src/reporters/summary.d.ts
|
|
2356
|
+
/**
|
|
2357
|
+
* Writes a finished summary. The `cli` reporter formats the lines and hands them to one of these,
|
|
2358
|
+
* so the caller decides where they land: plain `console.log` by default, or the active logger's own
|
|
2359
|
+
* output when a host installs one.
|
|
2360
|
+
*/
|
|
2361
|
+
type SummaryRenderer = (lines: ReadonlyArray<string>, meta: {
|
|
2362
|
+
title: string;
|
|
2363
|
+
status: 'success' | 'failed';
|
|
2364
|
+
}) => void;
|
|
2365
|
+
//#endregion
|
|
2366
|
+
//#region src/input.d.ts
|
|
2367
|
+
/**
|
|
2368
|
+
* What an `input` value points at, once Kubb has looked at it.
|
|
2369
|
+
*
|
|
2370
|
+
* - `file` is a local file path, absolute or relative to the config file.
|
|
2371
|
+
* - `url` is a remote document to fetch.
|
|
2372
|
+
* - `inline` is OpenAPI content held in the string itself (JSON or YAML).
|
|
2373
|
+
* - `object` is an already-parsed spec.
|
|
2374
|
+
*/
|
|
2375
|
+
type InputKind = 'file' | 'url' | 'inline' | 'object';
|
|
2376
|
+
/**
|
|
2377
|
+
* Classifies an `input` value so callers branch on it once instead of repeating the checks.
|
|
2378
|
+
*
|
|
2379
|
+
* A non-string is a parsed spec (`object`). A string is `inline` when it holds OpenAPI content,
|
|
2380
|
+
* meaning it starts with `{` or `[`, spans multiple lines, or opens with a YAML `openapi:` or
|
|
2381
|
+
* `swagger:` key. Otherwise a string is a `url` when it parses as one, or a `file` path.
|
|
2382
|
+
*/
|
|
2383
|
+
declare function getInputKind(input: NonNullable<Input>): InputKind;
|
|
2384
|
+
//#endregion
|
|
2355
2385
|
//#region src/types.d.ts
|
|
2356
2386
|
/**
|
|
2357
2387
|
* @internal
|
|
@@ -3088,5 +3118,5 @@ type BuildOutput = {
|
|
|
3088
3118
|
storage: Storage;
|
|
3089
3119
|
};
|
|
3090
3120
|
//#endregion
|
|
3091
|
-
export {
|
|
3092
|
-
//# sourceMappingURL=types-
|
|
3121
|
+
export { OutputMode as $, SummaryRenderer as A, ReporterPluginFiles as At, KubbDriver as B, PerformanceDiagnostic as Bt, KubbSuccessContext as C, createRenderer as Ct, UserConfig as D, Reporter as Dt, PostGenerateCommand as E, GenerationResult as Et, createKubb as F, DiagnosticDoc as Ft, Filter as G, Hookable as Gt, Parser as H, ProblemDiagnostic as Ht, Generator as I, DiagnosticKind as It, KubbPluginEndContext as J, AdapterSource as Jt, Group as K, Adapter as Kt, GeneratorContext as L, DiagnosticLocation as Lt, GenerateOptions as M, createReporter as Mt, GenerateResult as N, logLevel as Nt, InputKind as O, ReporterContext as Ot, Kubb$1 as P, Diagnostic as Pt, Output as Q, defineGenerator as R, DiagnosticSeverity as Rt, KubbPluginsEndContext as S, RendererFactory as St, PossibleConfig as T, createStorage as Tt, defineParser as U, SerializedDiagnostic as Ut, FileManagerHooks as V, ProblemCode as Vt, Exclude$1 as W, UpdateDiagnostic as Wt, KubbPluginStartContext as X, KubbPluginSetupContext as Y, createAdapter as Yt, NormalizedPlugin as Z, KubbHookLineContext as _, ResolverFileParams as _t, KubbBuildEndContext as a, ResolvePluginOptions as at, KubbInfoContext as b, ResolverPathParams as bt, KubbErrorContext as c, ResolveBannerContext as ct, KubbFilesProcessingStartContext as d, ResolveImportsOptions as dt, OutputOptions as et, KubbFilesProcessingUpdateContext as f, ResolveOptionsContext as ft, KubbHookEndContext as g, ResolverFile as gt, KubbGenerationSummaryContext as h, ResolverDefault as ht, Input as i, PluginName as it, CreateKubbOptions as j, UserReporter as jt, getInputKind as k, ReporterName as kt, KubbFileProcessingUpdate as l, ResolveBannerFile as lt, KubbGenerationStartContext as m, Resolver as mt, CLIOptions as n, Plugin as nt, KubbBuildStartContext as o, definePlugin as ot, KubbGenerationEndContext as p, ResolvePathOptions as pt, Include as q, AdapterFactoryOptions as qt, Config as r, PluginFactoryOptions as rt, KubbDiagnosticContext as s, BannerMeta as st, BuildOutput as t, Override as tt, KubbFilesProcessingEndContext as u, ResolveFileOptions as ut, KubbHookStartContext as v, ResolverFilePathParams as vt, KubbWarnContext as w, Storage as wt, KubbLifecycleStartContext as x, Renderer as xt, KubbHooks as y, ResolverPatch as yt, NodeCache as z, Diagnostics as zt };
|
|
3122
|
+
//# sourceMappingURL=types-DKzghz5i.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/core",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.10",
|
|
4
4
|
"description": "Core engine for Kubb. Provides the plugin driver, file manager and build orchestration used by every Kubb plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generator",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"registry": "https://registry.npmjs.org/"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@kubb/ast": "5.3.
|
|
75
|
+
"@kubb/ast": "5.3.10"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@internals/utils": "0.0.1",
|