@kubb/plugin-ts 5.3.0 → 5.3.1

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
@@ -77,7 +77,7 @@ function pascalCase(text, { prefix = "", suffix = "" } = {}) {
77
77
  * `snakeCase('Hello-World') // 'hello_world'`
78
78
  */
79
79
  function snakeCase(text, { prefix = "", suffix = "" } = {}) {
80
- return `${prefix} ${text} ${suffix}`.trim().replace(/([a-z])([A-Z])/g, "$1_$2").replace(/[\s\-.]+/g, "_").replace(/[^a-zA-Z0-9_]/g, "").toLowerCase().split("_").filter(Boolean).join("_");
80
+ return `${prefix} ${text} ${suffix}`.trim().replace(/([a-z\d])([A-Z])/g, "$1_$2").replace(/[\s\-.]+/g, "_").replace(/[^a-zA-Z0-9_]/g, "").toLowerCase().split("_").filter(Boolean).join("_");
81
81
  }
82
82
  /**
83
83
  * Converts `text` to SCREAMING_SNAKE_CASE.
@@ -1914,7 +1914,7 @@ var compatibility = {
1914
1914
  "node": ">=22.22"
1915
1915
  };
1916
1916
  // package.json
1917
- var version = "5.3.0";
1917
+ var version = "5.3.1";
1918
1918
  // src/resolvers/resolverTs.ts
1919
1919
  /**
1920
1920
  * Default resolver used by `@kubb/plugin-ts`. Decides the names and file paths