@kubb/core 5.0.0-alpha.11 → 5.0.0-alpha.13
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -112,9 +112,12 @@ function toCamelOrPascal(text, pascal) {
|
|
|
112
112
|
* Splits `text` on `.` and applies `transformPart` to each segment.
|
|
113
113
|
* The last segment receives `isLast = true`, all earlier segments receive `false`.
|
|
114
114
|
* Segments are joined with `/` to form a file path.
|
|
115
|
+
*
|
|
116
|
+
* Only splits on dots followed by a letter so that version numbers
|
|
117
|
+
* embedded in operationIds (e.g. `v2025.0`) are kept intact.
|
|
115
118
|
*/
|
|
116
119
|
function applyToFileParts(text, transformPart) {
|
|
117
|
-
const parts = text.split(
|
|
120
|
+
const parts = text.split(/\.(?=[a-zA-Z])/);
|
|
118
121
|
return parts.map((part, i) => transformPart(part, i === parts.length - 1)).join("/");
|
|
119
122
|
}
|
|
120
123
|
/**
|
|
@@ -1438,7 +1441,7 @@ const fsStorage = createStorage(() => ({
|
|
|
1438
1441
|
}));
|
|
1439
1442
|
//#endregion
|
|
1440
1443
|
//#region package.json
|
|
1441
|
-
var version$1 = "5.0.0-alpha.
|
|
1444
|
+
var version$1 = "5.0.0-alpha.13";
|
|
1442
1445
|
//#endregion
|
|
1443
1446
|
//#region src/utils/diagnostics.ts
|
|
1444
1447
|
/**
|