ng-openapi 0.2.21 → 0.2.22-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.
Files changed (3) hide show
  1. package/cli.cjs +2 -2
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -51,11 +51,11 @@ var import_ts_morph7 = require("ts-morph");
51
51
 
52
52
  // ../shared/src/utils/string.utils.ts
53
53
  function camelCase(str) {
54
- return str.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
54
+ return str.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
55
55
  }
56
56
  __name(camelCase, "camelCase");
57
57
  function pascalCase(str) {
58
- return str.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
58
+ return str.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
59
59
  }
60
60
  __name(pascalCase, "pascalCase");
61
61
  function pascalCaseForEnums(str) {
package/index.js CHANGED
@@ -114,7 +114,7 @@ var import_ts_morph7 = require("ts-morph");
114
114
 
115
115
  // ../shared/src/utils/string.utils.ts
116
116
  function camelCase(str) {
117
- return str.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
117
+ return str.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
118
118
  }
119
119
  __name(camelCase, "camelCase");
120
120
  function kebabCase(str) {
@@ -122,7 +122,7 @@ function kebabCase(str) {
122
122
  }
123
123
  __name(kebabCase, "kebabCase");
124
124
  function pascalCase(str) {
125
- return str.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
125
+ return str.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
126
126
  }
127
127
  __name(pascalCase, "pascalCase");
128
128
  function screamingSnakeCase(str) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-openapi",
3
- "version": "0.2.21",
3
+ "version": "0.2.22-pr-91-bugfix-nested-objects-parameter-fb5e988.0",
4
4
  "description": "Generate Angular services and TypeScript types from OpenAPI/Swagger specifications",
5
5
  "keywords": [
6
6
  "ng-openapi",