ng-openapi 0.0.6 → 0.0.7
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/cli.cjs +1 -5
- package/index.js +1 -5
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -767,10 +767,6 @@ function camelCase(str) {
|
|
|
767
767
|
return cleaned.charAt(0).toLowerCase() + cleaned.slice(1);
|
|
768
768
|
}
|
|
769
769
|
__name(camelCase, "camelCase");
|
|
770
|
-
function kebabCase(str) {
|
|
771
|
-
return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
772
|
-
}
|
|
773
|
-
__name(kebabCase, "kebabCase");
|
|
774
770
|
function pascalCase(str) {
|
|
775
771
|
return str.replace(/(?:^|[-_])([a-z])/g, (_, char) => char.toUpperCase());
|
|
776
772
|
}
|
|
@@ -1561,7 +1557,7 @@ var ServiceGenerator = class {
|
|
|
1561
1557
|
return groups;
|
|
1562
1558
|
}
|
|
1563
1559
|
generateServiceFile(controllerName, operations, outputDir) {
|
|
1564
|
-
const fileName = `${
|
|
1560
|
+
const fileName = `${camelCase(controllerName)}.service.ts`;
|
|
1565
1561
|
const filePath = path5.join(outputDir, fileName);
|
|
1566
1562
|
const sourceFile = this.project.createSourceFile(filePath, "", {
|
|
1567
1563
|
overwrite: true
|
package/index.js
CHANGED
|
@@ -806,10 +806,6 @@ function camelCase(str) {
|
|
|
806
806
|
return cleaned.charAt(0).toLowerCase() + cleaned.slice(1);
|
|
807
807
|
}
|
|
808
808
|
__name(camelCase, "camelCase");
|
|
809
|
-
function kebabCase(str) {
|
|
810
|
-
return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
811
|
-
}
|
|
812
|
-
__name(kebabCase, "kebabCase");
|
|
813
809
|
function pascalCase(str) {
|
|
814
810
|
return str.replace(/(?:^|[-_])([a-z])/g, (_, char) => char.toUpperCase());
|
|
815
811
|
}
|
|
@@ -1604,7 +1600,7 @@ var _ServiceGenerator = class _ServiceGenerator {
|
|
|
1604
1600
|
return groups;
|
|
1605
1601
|
}
|
|
1606
1602
|
generateServiceFile(controllerName, operations, outputDir) {
|
|
1607
|
-
const fileName = `${
|
|
1603
|
+
const fileName = `${camelCase(controllerName)}.service.ts`;
|
|
1608
1604
|
const filePath = path5.join(outputDir, fileName);
|
|
1609
1605
|
const sourceFile = this.project.createSourceFile(filePath, "", {
|
|
1610
1606
|
overwrite: true
|