ng-openapi 0.1.16 → 0.1.17

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 +1 -1
  3. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -44,7 +44,7 @@ var fs4 = __toESM(require("fs"));
44
44
  var path12 = __toESM(require("path"));
45
45
 
46
46
  // package.json
47
- var version = "0.1.15";
47
+ var version = "0.1.16";
48
48
 
49
49
  // src/lib/core/generator.ts
50
50
  var import_ts_morph7 = require("ts-morph");
@@ -1030,7 +1030,7 @@ var TypeGenerator = class {
1030
1030
  const str = value.toString();
1031
1031
  const hasLeadingMinus = str.startsWith("-");
1032
1032
  const pascalCased = pascalCase(str);
1033
- return hasLeadingMinus ? pascalCased.replace("_", "_n") : pascalCased.replace(/^([0-9])/, "_$1");
1033
+ return hasLeadingMinus ? pascalCased.replace(/^([0-9])/, "_n$1") : pascalCased.replace(/^([0-9])/, "_$1");
1034
1034
  }
1035
1035
  getArrayItemType(items) {
1036
1036
  if (Array.isArray(items)) {
package/index.js CHANGED
@@ -1149,7 +1149,7 @@ var _TypeGenerator = class _TypeGenerator {
1149
1149
  const str = value.toString();
1150
1150
  const hasLeadingMinus = str.startsWith("-");
1151
1151
  const pascalCased = pascalCase(str);
1152
- return hasLeadingMinus ? pascalCased.replace("_", "_n") : pascalCased.replace(/^([0-9])/, "_$1");
1152
+ return hasLeadingMinus ? pascalCased.replace(/^([0-9])/, "_n$1") : pascalCased.replace(/^([0-9])/, "_$1");
1153
1153
  }
1154
1154
  getArrayItemType(items) {
1155
1155
  if (Array.isArray(items)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-openapi",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Generate Angular services and TypeScript types from OpenAPI/Swagger specifications",
5
5
  "keywords": [
6
6
  "ng-openapi",