@kubb/core 5.0.0-beta.51 → 5.0.0-beta.53
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/{diagnostics-BCcJbIpZ.d.ts → diagnostics-D_LOtOCv.d.ts} +45 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -21
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/package.json +4 -4
- package/src/defineResolver.ts +2 -15
- package/src/reporters/report.ts +1 -1
package/dist/mocks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk-C0LytTxp.js";
|
|
2
|
-
import { Ft as Adapter, G as Parser, It as AdapterFactoryOptions, X as KubbDriver, h as Config, lt as PluginFactoryOptions, q as Generator, rt as NormalizedPlugin } from "./diagnostics-
|
|
2
|
+
import { Ft as Adapter, G as Parser, It as AdapterFactoryOptions, X as KubbDriver, h as Config, lt as PluginFactoryOptions, q as Generator, rt as NormalizedPlugin } from "./diagnostics-D_LOtOCv.js";
|
|
3
3
|
import { FileNode, InputMeta, OperationNode, SchemaNode, Visitor } from "@kubb/ast";
|
|
4
4
|
|
|
5
5
|
//#region src/mocks.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/core",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.53",
|
|
4
4
|
"description": "Core engine for Kubb's plugin-based code generation system. Provides the plugin driver, file manager, defineConfig, and build orchestration used by every Kubb plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generator",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"registry": "https://registry.npmjs.org/"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@kubb/ast": "5.0.0-beta.
|
|
59
|
+
"@kubb/ast": "5.0.0-beta.53"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@internals/utils": "0.0.0",
|
|
63
|
-
"@kubb/renderer-jsx": "5.0.0-beta.
|
|
63
|
+
"@kubb/renderer-jsx": "5.0.0-beta.53"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@kubb/renderer-jsx": "5.0.0-beta.
|
|
66
|
+
"@kubb/renderer-jsx": "5.0.0-beta.53"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=22"
|
package/src/defineResolver.ts
CHANGED
|
@@ -356,10 +356,7 @@ function computeOptions<TOptions>(
|
|
|
356
356
|
return options
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
|
|
360
|
-
node: Node,
|
|
361
|
-
{ options, exclude = [], include, override = [] }: ResolveOptionsContext<TOptions>,
|
|
362
|
-
): TOptions | null {
|
|
359
|
+
function defaultResolveOptions<TOptions>(node: Node, { options, exclude = [], include, override = [] }: ResolveOptionsContext<TOptions>): TOptions | null {
|
|
363
360
|
const optionsKey = options as object
|
|
364
361
|
let byOptions = resolveOptionsCache.get(optionsKey)
|
|
365
362
|
if (!byOptions) {
|
|
@@ -517,17 +514,7 @@ export function defaultResolveFile(this: Resolver, { name, extname, tag, path: g
|
|
|
517
514
|
/**
|
|
518
515
|
* Generates the default "Generated by Kubb" banner from config and optional node metadata.
|
|
519
516
|
*/
|
|
520
|
-
|
|
521
|
-
title,
|
|
522
|
-
description,
|
|
523
|
-
version,
|
|
524
|
-
config,
|
|
525
|
-
}: {
|
|
526
|
-
title?: string
|
|
527
|
-
description?: string
|
|
528
|
-
version?: string
|
|
529
|
-
config: Config
|
|
530
|
-
}): string {
|
|
517
|
+
function buildDefaultBanner({ title, description, version, config }: { title?: string; description?: string; version?: string; config: Config }): string {
|
|
531
518
|
try {
|
|
532
519
|
const source = (() => {
|
|
533
520
|
if (Array.isArray(config.input)) {
|
package/src/reporters/report.ts
CHANGED