@kubb/core 5.0.0-beta.93 → 5.0.0-beta.94
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 +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/mocks.cjs +5 -7
- package/dist/mocks.cjs.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/mocks.js +7 -9
- package/dist/mocks.js.map +1 -1
- package/dist/{types-BLFyAJLZ.d.ts → types-DF9c3DGO.d.ts} +10 -6
- package/dist/usingCtx-BriKju-v.js.map +1 -1
- package/dist/usingCtx-eyNeehd2.cjs.map +1 -1
- 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 ResolveBannerContext, A as Generator, At as ProblemCode, B as Include, C as KubbWarnContext, Ct as Diagnostic, D as CreateKubbOptions, Dt as DiagnosticSeverity, E as UserConfig, Et as DiagnosticLocation, F as Parser, Ft as Adapter, G as Output, H as KubbPluginSetupContext, I as defineParser, It as AdapterFactoryOptions, J as Override, K as OutputMode, L as Exclude, Lt as AdapterSource, M as defineGenerator, Mt as SerializedDiagnostic, N as KubbDriver, Nt as UpdateDiagnostic, O as Kubb, Ot as Diagnostics, P as FileManagerHooks, Pt as Hookable, Q as BannerMeta, R as Filter, Rt as createAdapter, S as KubbSuccessContext, St as logLevel, T as PostGenerateCommand, Tt as DiagnosticKind, U as KubbPluginStartContext, V as KubbPluginEndContext, W as NormalizedPlugin, X as PluginFactoryOptions, Y as Plugin, Z as definePlugin, _ as KubbHookStartContext, _t as Reporter, a as KubbBuildEndContext, at as ResolverDefault, b as KubbLifecycleStartContext, bt as UserReporter, c as KubbErrorContext, ct as ResolverFilePathParams, d as KubbFilesProcessingStartContext, dt as Renderer, et as ResolveBannerFile, f as KubbFilesProcessingUpdateContext, ft as RendererFactory, g as KubbHookLineContext, gt as GenerationResult, h as KubbHookEndContext, ht as createStorage, i as Input, it as Resolver, j as GeneratorContext, jt as ProblemDiagnostic, k as createKubb, kt as PerformanceDiagnostic, l as KubbFileProcessingUpdate, lt as ResolverPatch, m as KubbGenerationStartContext, mt as Storage, n as CLIOptions, nt as ResolveOptionsContext, o as KubbBuildStartContext, ot as ResolverFile, p as KubbGenerationEndContext, pt as createRenderer, q as OutputOptions, r as Config, rt as ResolvePathOptions, s as KubbDiagnosticContext, st as ResolverFileParams, t as BuildOutput, tt as ResolveFileOptions, u as KubbFilesProcessingEndContext, ut as ResolverPathParams, v as KubbHooks, vt as ReporterContext, w as PossibleConfig, wt as DiagnosticDoc, x as KubbPluginsEndContext, xt as createReporter, y as KubbInfoContext, yt as ReporterName, z as Group } from "./types-
|
|
2
|
+
import { $ as ResolveBannerContext, A as Generator, At as ProblemCode, B as Include, C as KubbWarnContext, Ct as Diagnostic, D as CreateKubbOptions, Dt as DiagnosticSeverity, E as UserConfig, Et as DiagnosticLocation, F as Parser, Ft as Adapter, G as Output, H as KubbPluginSetupContext, I as defineParser, It as AdapterFactoryOptions, J as Override, K as OutputMode, L as Exclude, Lt as AdapterSource, M as defineGenerator, Mt as SerializedDiagnostic, N as KubbDriver, Nt as UpdateDiagnostic, O as Kubb, Ot as Diagnostics, P as FileManagerHooks, Pt as Hookable, Q as BannerMeta, R as Filter, Rt as createAdapter, S as KubbSuccessContext, St as logLevel, T as PostGenerateCommand, Tt as DiagnosticKind, U as KubbPluginStartContext, V as KubbPluginEndContext, W as NormalizedPlugin, X as PluginFactoryOptions, Y as Plugin, Z as definePlugin, _ as KubbHookStartContext, _t as Reporter, a as KubbBuildEndContext, at as ResolverDefault, b as KubbLifecycleStartContext, bt as UserReporter, c as KubbErrorContext, ct as ResolverFilePathParams, d as KubbFilesProcessingStartContext, dt as Renderer, et as ResolveBannerFile, f as KubbFilesProcessingUpdateContext, ft as RendererFactory, g as KubbHookLineContext, gt as GenerationResult, h as KubbHookEndContext, ht as createStorage, i as Input, it as Resolver, j as GeneratorContext, jt as ProblemDiagnostic, k as createKubb, kt as PerformanceDiagnostic, l as KubbFileProcessingUpdate, lt as ResolverPatch, m as KubbGenerationStartContext, mt as Storage, n as CLIOptions, nt as ResolveOptionsContext, o as KubbBuildStartContext, ot as ResolverFile, p as KubbGenerationEndContext, pt as createRenderer, q as OutputOptions, r as Config, rt as ResolvePathOptions, s as KubbDiagnosticContext, st as ResolverFileParams, t as BuildOutput, tt as ResolveFileOptions, u as KubbFilesProcessingEndContext, ut as ResolverPathParams, v as KubbHooks, vt as ReporterContext, w as PossibleConfig, wt as DiagnosticDoc, x as KubbPluginsEndContext, xt as createReporter, y as KubbInfoContext, yt as ReporterName, z as Group } from "./types-DF9c3DGO.js";
|
|
3
3
|
|
|
4
4
|
//#region src/applyConfigDefaults.d.ts
|
|
5
5
|
type ApplyConfigDefaultsOptions<TOutput> = {
|
package/dist/index.js
CHANGED
|
@@ -190,7 +190,7 @@ function memoize(store, factory) {
|
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region package.json
|
|
193
|
-
var version = "5.0.0-beta.
|
|
193
|
+
var version = "5.0.0-beta.94";
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region src/constants.ts
|
|
196
196
|
/**
|
|
@@ -1301,7 +1301,8 @@ var KubbDriver = class {
|
|
|
1301
1301
|
},
|
|
1302
1302
|
exclude: [],
|
|
1303
1303
|
override: []
|
|
1304
|
-
}
|
|
1304
|
+
},
|
|
1305
|
+
resolver: this.#getDefaultResolver(rawPlugin.name)
|
|
1305
1306
|
};
|
|
1306
1307
|
}));
|
|
1307
1308
|
for (const plugin of normalized) {
|
|
@@ -2141,10 +2142,10 @@ const logLevel = {
|
|
|
2141
2142
|
verbose: 4
|
|
2142
2143
|
};
|
|
2143
2144
|
/**
|
|
2144
|
-
* Defines a reporter.
|
|
2145
|
-
*
|
|
2146
|
-
*
|
|
2147
|
-
*
|
|
2145
|
+
* Defines a reporter. The returned reporter buffers each value `report` returns in order and, when
|
|
2146
|
+
* the definition has a `drain`, hands the array to `drain` once and then clears it. Wiring the
|
|
2147
|
+
* reporter onto the run's hooks is the host's job, so the reporter only ever deals with a
|
|
2148
|
+
* {@link GenerationResult}.
|
|
2148
2149
|
*
|
|
2149
2150
|
* @example
|
|
2150
2151
|
* ```ts
|
|
@@ -2162,19 +2163,19 @@ const logLevel = {
|
|
|
2162
2163
|
* ```
|
|
2163
2164
|
*/
|
|
2164
2165
|
function createReporter(reporter) {
|
|
2165
|
-
const reports =
|
|
2166
|
+
const reports = [];
|
|
2166
2167
|
return {
|
|
2167
2168
|
name: reporter.name,
|
|
2168
2169
|
async report(result, context) {
|
|
2169
2170
|
const report = await reporter.report(result, context);
|
|
2170
|
-
reports.
|
|
2171
|
+
if (reporter.drain) reports.push(report);
|
|
2171
2172
|
},
|
|
2172
2173
|
async drain(context) {
|
|
2173
|
-
await reporter.drain?.(context,
|
|
2174
|
-
reports.
|
|
2174
|
+
await reporter.drain?.(context, [...reports]);
|
|
2175
|
+
reports.length = 0;
|
|
2175
2176
|
},
|
|
2176
2177
|
[Symbol.dispose]() {
|
|
2177
|
-
reports.
|
|
2178
|
+
reports.length = 0;
|
|
2178
2179
|
}
|
|
2179
2180
|
};
|
|
2180
2181
|
}
|