@kubb/core 5.0.0-beta.65 → 5.0.0-beta.66

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.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import "./rolldown-runtime-C0LytTxp.js";
2
- import { a as createStorage, c as camelCase, d as BuildError, f as getErrorMessage, i as FileManager, l as pascalCase, n as _usingCtx, o as OPERATION_FILTER_TYPES, r as FileProcessor, s as diagnosticCode, t as memoryStorage, u as AsyncEventEmitter } from "./memoryStorage-DWnhqUf2.js";
2
+ import { a as createStorage, c as camelCase, d as BuildError, f as getErrorMessage, i as FileManager, l as pascalCase, n as _usingCtx, o as OPERATION_FILTER_TYPES, r as FileProcessor, s as diagnosticCode, t as memoryStorage, u as AsyncEventEmitter } from "./memoryStorage-D0gb5tRV.js";
3
3
  import { hash } from "node:crypto";
4
4
  import { stripVTControlCharacters, styleText } from "node:util";
5
5
  import { access, glob, mkdir, readFile, rm, writeFile } from "node:fs/promises";
6
6
  import path, { dirname, join, relative, resolve } from "node:path";
7
- import { ast, composeMacros, operationDef, schemaDef, transform } from "@kubb/ast";
7
+ import { ast, ast as ast$1, composeMacros, operationDef, schemaDef, transform } from "@kubb/ast";
8
8
  import { AsyncLocalStorage } from "node:async_hooks";
9
- import * as factory from "@kubb/ast/factory";
10
9
  import { collectUsedSchemaNames } from "@kubb/ast/utils";
11
10
  import process$1 from "node:process";
12
11
  //#region ../../internals/utils/src/time.ts
@@ -607,7 +606,7 @@ function createAdapter(build) {
607
606
  /**
608
607
  * Docs major version, derived from the package version so the link tracks the published major.
609
608
  */
610
- const docsMajor = "5.0.0-beta.65".split(".")[0] ?? "5";
609
+ const docsMajor = "5.0.0-beta.66".split(".")[0] ?? "5";
611
610
  /**
612
611
  * Narrows a {@link Diagnostic} to the variant for `code`, or `null` when it does not match.
613
612
  *
@@ -1299,7 +1298,7 @@ function defaultResolveFile({ name, extname, tag, path: groupPath }, context) {
1299
1298
  tag,
1300
1299
  path: groupPath
1301
1300
  }, context);
1302
- return factory.createFile({
1301
+ return ast$1.factory.createFile({
1303
1302
  path: filePath,
1304
1303
  baseName: path.basename(filePath),
1305
1304
  meta: { pluginName: this.pluginName },
@@ -1670,7 +1669,7 @@ var KubbDriver = class {
1670
1669
  /**
1671
1670
  * Parses the adapter source into `this.inputNode`. Idempotent, so repeated calls from
1672
1671
  * `run` do not re-parse. Adapters with `stream()` are used directly.
1673
- * Adapters with only `parse()` are wrapped via `factory.createInput({ stream: true })` so the dispatch loop
1672
+ * Adapters with only `parse()` are wrapped via `ast.factory.createInput({ stream: true })` so the dispatch loop
1674
1673
  * stays stream-only.
1675
1674
  */
1676
1675
  async #parseInput() {
@@ -1682,7 +1681,7 @@ var KubbDriver = class {
1682
1681
  return;
1683
1682
  }
1684
1683
  const parsed = await adapter.parse(source);
1685
- this.inputNode = factory.createInput({
1684
+ this.inputNode = ast$1.factory.createInput({
1686
1685
  stream: true,
1687
1686
  schemas: arrayToAsyncIterable(parsed.schemas),
1688
1687
  operations: arrayToAsyncIterable(parsed.operations),
@@ -1734,7 +1733,7 @@ var KubbDriver = class {
1734
1733
  }
1735
1734
  },
1736
1735
  injectFile: (userFileNode) => {
1737
- this.fileManager.add(factory.createFile(userFileNode));
1736
+ this.fileManager.add(ast$1.factory.createFile(userFileNode));
1738
1737
  }
1739
1738
  };
1740
1739
  return hooks["kubb:plugin:setup"](pluginCtx);