@kubb/core 5.0.0-beta.16 → 5.0.0-beta.17
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/PluginDriver-C5hyNJfM.cjs.map +1 -1
- package/dist/PluginDriver-CT33kVoQ.js.map +1 -1
- package/dist/{createKubb-BncBLGm_.d.ts → createKubb-ZgT1MTxG.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/package.json +4 -4
- package/src/PluginDriver.ts +1 -1
- package/src/defineGenerator.ts +1 -4
package/dist/mocks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
-
import { H as NormalizedPlugin, K as PluginFactoryOptions, P as PluginDriver, bt as AdapterFactoryOptions, j as Generator, r as Config, yt as Adapter } from "./createKubb-
|
|
2
|
+
import { H as NormalizedPlugin, K as PluginFactoryOptions, P as PluginDriver, bt as AdapterFactoryOptions, j as Generator, r as Config, yt as Adapter } from "./createKubb-ZgT1MTxG.js";
|
|
3
3
|
import { InputNode, 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.17",
|
|
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",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"fflate": "^0.8.2",
|
|
60
60
|
"tinyexec": "^1.1.2",
|
|
61
|
-
"@kubb/ast": "5.0.0-beta.
|
|
61
|
+
"@kubb/ast": "5.0.0-beta.17"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@internals/utils": "0.0.0",
|
|
65
|
-
"@kubb/renderer-jsx": "5.0.0-beta.
|
|
65
|
+
"@kubb/renderer-jsx": "5.0.0-beta.17"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@kubb/renderer-jsx": "5.0.0-beta.
|
|
68
|
+
"@kubb/renderer-jsx": "5.0.0-beta.17"
|
|
69
69
|
},
|
|
70
70
|
"size-limit": [
|
|
71
71
|
{
|
package/src/PluginDriver.ts
CHANGED
|
@@ -252,7 +252,7 @@ export class PluginDriver {
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
if (gen.operations) {
|
|
255
|
-
const operationsHandler = async (nodes:
|
|
255
|
+
const operationsHandler = async (nodes: Array<OperationNode>, ctx: GeneratorContext) => {
|
|
256
256
|
if (ctx.plugin.name !== pluginName) return
|
|
257
257
|
const result = await gen.operations!(nodes, ctx)
|
|
258
258
|
await applyHookResult(result, this, resolveRenderer())
|
package/src/defineGenerator.ts
CHANGED
|
@@ -160,10 +160,7 @@ export type Generator<TOptions extends PluginFactoryOptions = PluginFactoryOptio
|
|
|
160
160
|
* `ctx` carries the plugin context with `adapter` and `inputNode` guaranteed present,
|
|
161
161
|
* plus `ctx.options` with the plugin-level options for the batch call.
|
|
162
162
|
*/
|
|
163
|
-
operations?: (
|
|
164
|
-
nodes: Array<OperationNode> | AsyncIterable<OperationNode>,
|
|
165
|
-
ctx: GeneratorContext<TOptions>,
|
|
166
|
-
) => PossiblePromise<TElement | Array<FileNode> | void>
|
|
163
|
+
operations?: (nodes: Array<OperationNode>, ctx: GeneratorContext<TOptions>) => PossiblePromise<TElement | Array<FileNode> | void>
|
|
167
164
|
}
|
|
168
165
|
|
|
169
166
|
/**
|