@kubb/core 5.0.0-alpha.11 → 5.0.0-alpha.12

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
@@ -118,9 +118,12 @@ function toCamelOrPascal(text, pascal) {
118
118
  * Splits `text` on `.` and applies `transformPart` to each segment.
119
119
  * The last segment receives `isLast = true`, all earlier segments receive `false`.
120
120
  * Segments are joined with `/` to form a file path.
121
+ *
122
+ * Only splits on dots followed by a letter so that version numbers
123
+ * embedded in operationIds (e.g. `v2025.0`) are kept intact.
121
124
  */
122
125
  function applyToFileParts(text, transformPart) {
123
- const parts = text.split(".");
126
+ const parts = text.split(/\.(?=[a-zA-Z])/);
124
127
  return parts.map((part, i) => transformPart(part, i === parts.length - 1)).join("/");
125
128
  }
126
129
  /**
@@ -1444,7 +1447,7 @@ const fsStorage = createStorage(() => ({
1444
1447
  }));
1445
1448
  //#endregion
1446
1449
  //#region package.json
1447
- var version = "5.0.0-alpha.11";
1450
+ var version = "5.0.0-alpha.12";
1448
1451
  //#endregion
1449
1452
  //#region src/utils/diagnostics.ts
1450
1453
  /**