@kubb/core 5.5.0 → 5.5.2
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/{types-B882W-Pb.d.ts → types-8ebHH0OM.d.ts} +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { $ as OutputMode, A as SummaryRenderer, At as ReporterPluginFiles, B as KubbDriver, Bt as PerformanceDiagnostic, C as KubbSuccessContext, Ct as createRenderer, D as UserConfig, Dt as Reporter, E as PostGenerateCommand, Et as GenerationResult, F as createKubb, Ft as DiagnosticDoc, G as Filter, Gt as Hookable, H as Parser, Ht as ProblemDiagnostic, I as Generator, It as DiagnosticKind, J as KubbPluginEndContext, Jt as AdapterSource, K as Group, Kt as Adapter, L as GeneratorContext, Lt as DiagnosticLocation, M as GenerateOptions, Mt as createReporter, N as GenerateResult, Nt as logLevel, O as InputKind, Ot as ReporterContext, P as Kubb, Pt as Diagnostic, Q as Output, R as defineGenerator, Rt as DiagnosticSeverity, S as KubbPluginsEndContext, St as RendererFactory, T as PossibleConfig, Tt as createStorage, U as defineParser, Ut as SerializedDiagnostic, V as FileManagerHooks, Vt as ProblemCode, W as Exclude, Wt as UpdateDiagnostic, X as KubbPluginStartContext, Y as KubbPluginSetupContext, Yt as createAdapter, Z as NormalizedPlugin, _ as KubbHookLineContext, _t as ResolverFileParams, a as KubbBuildEndContext, at as ResolvePluginOptions, b as KubbInfoContext, bt as ResolverPathParams, c as KubbErrorContext, ct as ResolveBannerContext, d as KubbFilesProcessingStartContext, dt as ResolveImportsOptions, et as OutputOptions, f as KubbFilesProcessingUpdateContext, ft as ResolveOptionsContext, g as KubbHookEndContext, gt as ResolverFile, h as KubbGenerationSummaryContext, ht as ResolverDefault, i as Input, it as PluginName, j as CreateKubbOptions, jt as UserReporter, k as getInputKind, kt as ReporterName, l as KubbFileProcessingUpdate, lt as ResolveBannerFile, m as KubbGenerationStartContext, mt as Resolver, n as CLIOptions, nt as Plugin, o as KubbBuildStartContext, ot as definePlugin, p as KubbGenerationEndContext, pt as ResolvePathOptions, q as Include, qt as AdapterFactoryOptions, r as Config, rt as PluginFactoryOptions, s as KubbDiagnosticContext, st as BannerMeta, t as BuildOutput, tt as Override, u as KubbFilesProcessingEndContext, ut as ResolveFileOptions, v as KubbHookStartContext, vt as ResolverFilePathParams, w as KubbWarnContext, wt as Storage, x as KubbLifecycleStartContext, xt as Renderer, y as KubbHooks, yt as ResolverPatch, z as NodeCache, zt as Diagnostics } from "./types-
|
|
2
|
+
import { $ as OutputMode, A as SummaryRenderer, At as ReporterPluginFiles, B as KubbDriver, Bt as PerformanceDiagnostic, C as KubbSuccessContext, Ct as createRenderer, D as UserConfig, Dt as Reporter, E as PostGenerateCommand, Et as GenerationResult, F as createKubb, Ft as DiagnosticDoc, G as Filter, Gt as Hookable, H as Parser, Ht as ProblemDiagnostic, I as Generator, It as DiagnosticKind, J as KubbPluginEndContext, Jt as AdapterSource, K as Group, Kt as Adapter, L as GeneratorContext, Lt as DiagnosticLocation, M as GenerateOptions, Mt as createReporter, N as GenerateResult, Nt as logLevel, O as InputKind, Ot as ReporterContext, P as Kubb, Pt as Diagnostic, Q as Output, R as defineGenerator, Rt as DiagnosticSeverity, S as KubbPluginsEndContext, St as RendererFactory, T as PossibleConfig, Tt as createStorage, U as defineParser, Ut as SerializedDiagnostic, V as FileManagerHooks, Vt as ProblemCode, W as Exclude, Wt as UpdateDiagnostic, X as KubbPluginStartContext, Y as KubbPluginSetupContext, Yt as createAdapter, Z as NormalizedPlugin, _ as KubbHookLineContext, _t as ResolverFileParams, a as KubbBuildEndContext, at as ResolvePluginOptions, b as KubbInfoContext, bt as ResolverPathParams, c as KubbErrorContext, ct as ResolveBannerContext, d as KubbFilesProcessingStartContext, dt as ResolveImportsOptions, et as OutputOptions, f as KubbFilesProcessingUpdateContext, ft as ResolveOptionsContext, g as KubbHookEndContext, gt as ResolverFile, h as KubbGenerationSummaryContext, ht as ResolverDefault, i as Input, it as PluginName, j as CreateKubbOptions, jt as UserReporter, k as getInputKind, kt as ReporterName, l as KubbFileProcessingUpdate, lt as ResolveBannerFile, m as KubbGenerationStartContext, mt as Resolver, n as CLIOptions, nt as Plugin, o as KubbBuildStartContext, ot as definePlugin, p as KubbGenerationEndContext, pt as ResolvePathOptions, q as Include, qt as AdapterFactoryOptions, r as Config, rt as PluginFactoryOptions, s as KubbDiagnosticContext, st as BannerMeta, t as BuildOutput, tt as Override, u as KubbFilesProcessingEndContext, ut as ResolveFileOptions, v as KubbHookStartContext, vt as ResolverFilePathParams, w as KubbWarnContext, wt as Storage, x as KubbLifecycleStartContext, xt as Renderer, y as KubbHooks, yt as ResolverPatch, z as NodeCache, zt as Diagnostics } from "./types-8ebHH0OM.js";
|
|
3
3
|
//#region src/applyConfigDefaults.d.ts
|
|
4
4
|
type ApplyConfigDefaultsOptions<TOutput> = {
|
|
5
5
|
defaultAdapter: Adapter;
|
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ function formatMs(ms) {
|
|
|
125
125
|
/**
|
|
126
126
|
* Docs major version, derived from the package version so the link tracks the published major.
|
|
127
127
|
*/
|
|
128
|
-
const docsMajor = "5.5.
|
|
128
|
+
const docsMajor = "5.5.2".split(".")[0] ?? "5";
|
|
129
129
|
/**
|
|
130
130
|
* Builds a type guard that narrows a {@link Diagnostic} to the variant for `kind`. A diagnostic
|
|
131
131
|
* with no `kind` is treated as a `problem`.
|
|
@@ -496,15 +496,15 @@ var Diagnostics = class Diagnostics {
|
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
498
|
* Builds the kubb.dev docs URL for a diagnostic code, e.g.
|
|
499
|
-
* `KUBB_REF_NOT_FOUND` → `https://kubb.dev/docs/5.x/reference/diagnostics
|
|
499
|
+
* `KUBB_REF_NOT_FOUND` → `https://kubb.dev/docs/5.x/reference/diagnostics#kubb-ref-not-found`.
|
|
500
500
|
*/
|
|
501
501
|
static docsUrl(code) {
|
|
502
502
|
const slug = code.toLowerCase().replaceAll("_", "-");
|
|
503
|
-
return `https://kubb.dev/docs/${docsMajor}.x/reference/diagnostics
|
|
503
|
+
return `https://kubb.dev/docs/${docsMajor}.x/reference/diagnostics#${slug}`;
|
|
504
504
|
}
|
|
505
505
|
/**
|
|
506
506
|
* The catalog entry for a code: its title, cause, and fix. Mirrors the kubb.dev
|
|
507
|
-
* `/diagnostics
|
|
507
|
+
* `/reference/diagnostics#<slug>` section.
|
|
508
508
|
*/
|
|
509
509
|
static explain(code) {
|
|
510
510
|
return diagnosticCatalog[code];
|