@kubb/core 5.14.0 → 5.14.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/{Hookable-CvvyqvN3.js → Hookable-DjPMSKYr.js} +8 -2
- package/dist/Hookable-DjPMSKYr.js.map +1 -0
- package/dist/{createAdapter-CpL5uM0P.d.ts → createAdapter-DwnjwKN0.d.ts} +8 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/mocks.js +1 -1
- package/package.json +2 -2
- package/dist/Hookable-CvvyqvN3.js.map +0 -1
|
@@ -226,6 +226,12 @@ declare const diagnosticCatalog: {
|
|
|
226
226
|
readonly cause: 'A schema uses a `format` Kubb does not map to a specific type, so it falls back to the base type.';
|
|
227
227
|
readonly fix: 'Use a format Kubb supports, or handle the custom format with a parser or plugin.';
|
|
228
228
|
};
|
|
229
|
+
readonly aliasCycle: {
|
|
230
|
+
readonly code: 'KUBB_ALIAS_CYCLE';
|
|
231
|
+
readonly title: 'Alias cycle';
|
|
232
|
+
readonly cause: 'Schemas that only `$ref` each other form a loop, so none of them has a shape to generate. Kubb resolves them to `unknown`.';
|
|
233
|
+
readonly fix: 'Break the loop by giving one of the schemas a real definition, or remove the `$ref` that closes it.';
|
|
234
|
+
};
|
|
229
235
|
readonly deprecated: {
|
|
230
236
|
readonly code: 'KUBB_DEPRECATED';
|
|
231
237
|
readonly title: 'Deprecated';
|
|
@@ -1867,6 +1873,7 @@ declare class Diagnostics {
|
|
|
1867
1873
|
readonly pluginInfo: "KUBB_PLUGIN_INFO";
|
|
1868
1874
|
readonly noContext: "KUBB_NO_CONTEXT";
|
|
1869
1875
|
readonly unsupportedFormat: "KUBB_UNSUPPORTED_FORMAT";
|
|
1876
|
+
readonly aliasCycle: "KUBB_ALIAS_CYCLE";
|
|
1870
1877
|
readonly deprecated: "KUBB_DEPRECATED";
|
|
1871
1878
|
readonly adapterRequired: "KUBB_ADAPTER_REQUIRED";
|
|
1872
1879
|
readonly pathTraversal: "KUBB_PATH_TRAVERSAL";
|
|
@@ -3247,4 +3254,4 @@ type AdapterFactory<T extends AdapterFactoryOptions = AdapterFactoryOptions> = E
|
|
|
3247
3254
|
declare function createAdapter<T extends AdapterFactoryOptions = AdapterFactoryOptions>(definition: AdapterDefinition<T>): AdapterFactory<T>;
|
|
3248
3255
|
//#endregion
|
|
3249
3256
|
export { NodeCache as $, ReporterContext as $t, PluginFactory as A, KubbInfoContext as At, ResolveImportsOptions as B, RunHookOptions as Bt, NormalizedPlugin as C, KubbGenerationEndContext as Ct, Override as D, KubbHookLineContext as Dt, OutputOptions as E, KubbHookEndContext as Et, definePlugin as F, KubbWarnContext as Ft, ResolverFile as G, createOutputManifest as Gt, ResolvePathOptions as H, KubbDriver as Ht, BannerMeta as I, PossibleConfig as It, ResolverPatch as J, createRenderer as Jt, ResolverFileParams as K, Renderer as Kt, ResolveBannerContext as L, PostGenerateCommand as Lt, PluginType as M, KubbMessageContext as Mt, ResolvePluginOptions as N, KubbPluginsEndContext as Nt, Plugin as O, KubbHookStartContext as Ot, assertPluginOption as P, KubbSuccessContext as Pt, defineGenerator as Q, Reporter as Qt, ResolveBannerFile as R, UserConfig as Rt, KubbPluginStartContext as S, KubbFilesProcessingUpdateContext as St, OutputMode as T, KubbGenerationSummaryContext as Tt, Resolver as U, Hookable as Ut, ResolveOptionsContext as V, runHook as Vt, ResolverDefault as W, OutputManifest as Wt, Generator as X, createStorage as Xt, ResolverPathParams as Y, Storage as Yt, GeneratorContext as Z, GenerationResult as Zt, Filter as _, KubbDiagnosticContext as _t, AdapterSource as a, DiagnosticFormatOptions as an, Diagnostics as at, KubbPluginEndContext as b, KubbFilesProcessingEndContext as bt, ExtensionDependency as c, ParserDefinition as cn, ProblemDiagnostic as ct, ExtensionKind as d, CLIOptions as dt, ReporterName as en, Diagnostic as et, ExtensionMeta as f, Config as ft, Exclude$1 as g, KubbBuildStartContext as gt, resolveMeta as h, KubbBuildEndContext as ht, AdapterFactoryOptions as i, logLevel as in, DiagnosticSeverity as it, PluginName as j, KubbLifecycleStartContext as jt, PluginDefinition as k, KubbHooks as kt, ExtensionDependencyRecord as l, ParserFactory as ln, UpdateDiagnostic as lt, defineExtension as m, Input as mt, AdapterDefinition as n, UserReporter as nn, DiagnosticKind as nt, createAdapter as o, SerializedDiagnostic as on, PerformanceDiagnostic as ot, checkCompatibility as p, FilesContext as pt, ResolverFilePathParams as q, RendererFactory as qt, AdapterFactory as r, createReporter as rn, DiagnosticLocation as rt, ExtensionDependencies as s, Parser as sn, ProblemCode as st, Adapter as t, ReporterPluginFiles as tn, DiagnosticDoc as tt, ExtensionFactory as u, defineParser as un, BuildOutput as ut, Group as v, KubbErrorContext as vt, Output as w, KubbGenerationStartContext as wt, KubbPluginSetupContext as x, KubbFilesProcessingStartContext as xt, Include as y, KubbFileProcessingUpdate as yt, ResolveFileOptions as z, HookResult as zt };
|
|
3250
|
-
//# sourceMappingURL=createAdapter-
|
|
3257
|
+
//# sourceMappingURL=createAdapter-DwnjwKN0.d.ts.map
|
package/dist/index.cjs
CHANGED
|
@@ -42,7 +42,7 @@ let node_readline = require("node:readline");
|
|
|
42
42
|
let node_url = require("node:url");
|
|
43
43
|
let node_module = require("node:module");
|
|
44
44
|
//#region package.json
|
|
45
|
-
var version = "5.14.
|
|
45
|
+
var version = "5.14.2";
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region ../../internals/utils/src/casing.ts
|
|
48
48
|
/**
|
|
@@ -650,6 +650,12 @@ const diagnosticCatalog = {
|
|
|
650
650
|
cause: "A schema uses a `format` Kubb does not map to a specific type, so it falls back to the base type.",
|
|
651
651
|
fix: "Use a format Kubb supports, or handle the custom format with a parser or plugin."
|
|
652
652
|
},
|
|
653
|
+
aliasCycle: {
|
|
654
|
+
code: "KUBB_ALIAS_CYCLE",
|
|
655
|
+
title: "Alias cycle",
|
|
656
|
+
cause: "Schemas that only `$ref` each other form a loop, so none of them has a shape to generate. Kubb resolves them to `unknown`.",
|
|
657
|
+
fix: "Break the loop by giving one of the schemas a real definition, or remove the `$ref` that closes it."
|
|
658
|
+
},
|
|
653
659
|
deprecated: {
|
|
654
660
|
code: "KUBB_DEPRECATED",
|
|
655
661
|
title: "Deprecated",
|