@kubb/core 5.3.8 → 5.3.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/mocks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
2
- import { J as NormalizedPlugin, L as KubbDriver, N as Generator, Ut as Adapter, Wt as AdapterFactoryOptions, et as PluginFactoryOptions, r as Config, z as Parser } from "./types-Cw20YGzh.js";
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 { Plugin as $, GenerateResult as A, logLevel as At, defineParser as B, SerializedDiagnostic as Bt, KubbSuccessContext as C, GenerationResult as Ct, UserConfig as D, ReporterPluginFiles as Dt, PostGenerateCommand as E, ReporterName as Et, defineGenerator as F, DiagnosticSeverity as Ft, KubbPluginEndContext as G, AdapterSource as Gt, Filter as H, Hookable as Ht, NodeCache as I, Diagnostics as It, NormalizedPlugin as J, KubbPluginSetupContext as K, createAdapter as Kt, KubbDriver as L, PerformanceDiagnostic as Lt, createKubb as M, DiagnosticDoc as Mt, Generator as N, DiagnosticKind as Nt, CreateKubbOptions as O, UserReporter as Ot, GeneratorContext as P, DiagnosticLocation as Pt, Override as Q, FileManagerHooks as R, ProblemCode as Rt, KubbPluginsEndContext as S, createStorage as St, PossibleConfig as T, ReporterContext as Tt, Group as U, Adapter as Ut, Exclude$1 as V, UpdateDiagnostic as Vt, Include as W, AdapterFactoryOptions as Wt, OutputMode as X, Output as Y, OutputOptions as Z, KubbHookLineContext as _, ResolverPathParams as _t, KubbBuildEndContext as a, ResolveBannerContext as at, KubbInfoContext as b, createRenderer as bt, KubbErrorContext as c, ResolveImportsOptions as ct, KubbFilesProcessingStartContext as d, Resolver as dt, PluginFactoryOptions as et, KubbFilesProcessingUpdateContext as f, ResolverDefault as ft, KubbHookEndContext as g, ResolverPatch as gt, KubbGenerationSummaryContext as h, ResolverFilePathParams as ht, Input as i, BannerMeta as it, Kubb$1 as j, Diagnostic as jt, GenerateOptions as k, createReporter as kt, KubbFileProcessingUpdate as l, ResolveOptionsContext as lt, KubbGenerationStartContext as m, ResolverFileParams as mt, CLIOptions as n, ResolvePluginOptions as nt, KubbBuildStartContext as o, ResolveBannerFile as ot, KubbGenerationEndContext as p, ResolverFile as pt, KubbPluginStartContext as q, Config as r, definePlugin as rt, KubbDiagnosticContext as s, ResolveFileOptions as st, BuildOutput as t, PluginName as tt, KubbFilesProcessingEndContext as u, ResolvePathOptions as ut, KubbHookStartContext as v, Renderer as vt, KubbWarnContext as w, Reporter as wt, KubbLifecycleStartContext as x, Storage as xt, KubbHooks as y, RendererFactory as yt, Parser as z, ProblemDiagnostic as zt };
3092
- //# sourceMappingURL=types-Cw20YGzh.d.ts.map
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.8",
3
+ "version": "5.3.9",
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.8"
75
+ "@kubb/ast": "5.3.9"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@internals/utils": "0.0.1",