@ng-openapi/zod 0.0.11 → 0.0.12-pr-91-bugfix-nested-objects-parameter-fb5e988.0
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/index.cjs +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -40,11 +40,11 @@ var path2 = __toESM(require("path"), 1);
|
|
|
40
40
|
|
|
41
41
|
// ../../shared/src/utils/string.utils.ts
|
|
42
42
|
function camelCase(str2) {
|
|
43
|
-
return str2.replace(/[-_
|
|
43
|
+
return str2.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
|
|
44
44
|
}
|
|
45
45
|
__name(camelCase, "camelCase");
|
|
46
46
|
function pascalCase(str2) {
|
|
47
|
-
return str2.replace(/[-_
|
|
47
|
+
return str2.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
|
|
48
48
|
}
|
|
49
49
|
__name(pascalCase, "pascalCase");
|
|
50
50
|
|
package/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import * as path2 from "path";
|
|
|
6
6
|
|
|
7
7
|
// ../../shared/src/utils/string.utils.ts
|
|
8
8
|
function camelCase(str2) {
|
|
9
|
-
return str2.replace(/[-_
|
|
9
|
+
return str2.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
|
|
10
10
|
}
|
|
11
11
|
__name(camelCase, "camelCase");
|
|
12
12
|
function pascalCase(str2) {
|
|
13
|
-
return str2.replace(/[-_
|
|
13
|
+
return str2.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
|
|
14
14
|
}
|
|
15
15
|
__name(pascalCase, "pascalCase");
|
|
16
16
|
|
package/package.json
CHANGED