@kubb/core 5.18.0 → 5.18.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/index.cjs CHANGED
@@ -45,7 +45,7 @@ let node_readline = require("node:readline");
45
45
  let node_url = require("node:url");
46
46
  let node_module = require("node:module");
47
47
  // package.json
48
- var version = "5.18.0";
48
+ var version = "5.18.2";
49
49
  // ../../internals/utils/src/casing.ts
50
50
  /**
51
51
  * Shared implementation for camelCase and PascalCase conversion.
@@ -55,7 +55,7 @@ var version = "5.18.0";
55
55
  * When `pascal` is `true` the first word is also capitalized (PascalCase), otherwise only subsequent words are.
56
56
  */
57
57
  function convert(text, pascal) {
58
- return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
58
+ return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)(?!xx(?![a-z]))([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
59
59
  if (word.length > 1 && word === word.toUpperCase()) return word;
60
60
  return (i === 0 && !pascal ? word.charAt(0).toLowerCase() : word.charAt(0).toUpperCase()) + word.slice(1);
61
61
  }).join("").replace(/[^a-zA-Z0-9]/g, "");
@@ -1962,9 +1962,9 @@ var Resolver = class Resolver {
1962
1962
  * reads the same ref set instead of re-scanning it per plugin.
1963
1963
  */
1964
1964
  imports(options) {
1965
- const { node, root, output, group, extname = ".ts", name } = options;
1965
+ const { node, root, output, group, extname = ".ts", name, checks } = options;
1966
1966
  const resolveName = name ?? ((schemaName) => this.name(schemaName));
1967
- return (0, _kubb_ast.collectImportedRefNames)(node).map((schemaName) => _kubb_ast.ast.factory.createImport({
1967
+ return (0, _kubb_ast.collectImportedRefNames)(node, { checks }).map((schemaName) => _kubb_ast.ast.factory.createImport({
1968
1968
  name: [resolveName(schemaName)],
1969
1969
  path: this.#resolveFilePath({
1970
1970
  name: schemaName,