ng-openapi 0.0.11 → 0.0.12
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 +15 -15
- package/index.js +15 -15
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -734,25 +734,25 @@ var MainIndexGenerator = class {
|
|
|
734
734
|
sourceFile.addExportDeclaration({
|
|
735
735
|
moduleSpecifier: "./models"
|
|
736
736
|
});
|
|
737
|
-
sourceFile.addExportDeclaration({
|
|
738
|
-
moduleSpecifier: "./tokens"
|
|
739
|
-
});
|
|
740
|
-
sourceFile.addExportDeclaration({
|
|
741
|
-
moduleSpecifier: "./providers"
|
|
742
|
-
});
|
|
743
737
|
if (this.config.options.generateServices !== false) {
|
|
738
|
+
sourceFile.addExportDeclaration({
|
|
739
|
+
moduleSpecifier: "./tokens"
|
|
740
|
+
});
|
|
741
|
+
sourceFile.addExportDeclaration({
|
|
742
|
+
moduleSpecifier: "./providers"
|
|
743
|
+
});
|
|
744
744
|
sourceFile.addExportDeclaration({
|
|
745
745
|
moduleSpecifier: "./services"
|
|
746
746
|
});
|
|
747
|
-
}
|
|
748
|
-
if (this.config.options.dateType === "Date") {
|
|
749
747
|
sourceFile.addExportDeclaration({
|
|
750
|
-
moduleSpecifier: "./utils/
|
|
748
|
+
moduleSpecifier: "./utils/file-download"
|
|
751
749
|
});
|
|
750
|
+
if (this.config.options.dateType === "Date") {
|
|
751
|
+
sourceFile.addExportDeclaration({
|
|
752
|
+
moduleSpecifier: "./utils/date-transformer"
|
|
753
|
+
});
|
|
754
|
+
}
|
|
752
755
|
}
|
|
753
|
-
sourceFile.addExportDeclaration({
|
|
754
|
-
moduleSpecifier: "./utils/file-download"
|
|
755
|
-
});
|
|
756
756
|
sourceFile.saveSync();
|
|
757
757
|
}
|
|
758
758
|
};
|
|
@@ -2041,10 +2041,10 @@ async function generateFromConfig(config) {
|
|
|
2041
2041
|
const indexGenerator = new ServiceIndexGenerator(project);
|
|
2042
2042
|
indexGenerator.generateIndex(outputPath);
|
|
2043
2043
|
console.log(`\u2705 Angular services generated`);
|
|
2044
|
+
const providerGenerator = new ProviderGenerator(project, config);
|
|
2045
|
+
providerGenerator.generate(outputPath);
|
|
2046
|
+
console.log(`\u2705 Provider functions generated`);
|
|
2044
2047
|
}
|
|
2045
|
-
const providerGenerator = new ProviderGenerator(project, config);
|
|
2046
|
-
providerGenerator.generate(outputPath);
|
|
2047
|
-
console.log(`\u2705 Provider functions generated`);
|
|
2048
2048
|
const mainIndexGenerator = new MainIndexGenerator(project, config);
|
|
2049
2049
|
mainIndexGenerator.generateMainIndex(outputPath);
|
|
2050
2050
|
console.log("\u{1F389} Generation completed successfully at:", outputPath);
|
package/index.js
CHANGED
|
@@ -771,25 +771,25 @@ var _MainIndexGenerator = class _MainIndexGenerator {
|
|
|
771
771
|
sourceFile.addExportDeclaration({
|
|
772
772
|
moduleSpecifier: "./models"
|
|
773
773
|
});
|
|
774
|
-
sourceFile.addExportDeclaration({
|
|
775
|
-
moduleSpecifier: "./tokens"
|
|
776
|
-
});
|
|
777
|
-
sourceFile.addExportDeclaration({
|
|
778
|
-
moduleSpecifier: "./providers"
|
|
779
|
-
});
|
|
780
774
|
if (this.config.options.generateServices !== false) {
|
|
775
|
+
sourceFile.addExportDeclaration({
|
|
776
|
+
moduleSpecifier: "./tokens"
|
|
777
|
+
});
|
|
778
|
+
sourceFile.addExportDeclaration({
|
|
779
|
+
moduleSpecifier: "./providers"
|
|
780
|
+
});
|
|
781
781
|
sourceFile.addExportDeclaration({
|
|
782
782
|
moduleSpecifier: "./services"
|
|
783
783
|
});
|
|
784
|
-
}
|
|
785
|
-
if (this.config.options.dateType === "Date") {
|
|
786
784
|
sourceFile.addExportDeclaration({
|
|
787
|
-
moduleSpecifier: "./utils/
|
|
785
|
+
moduleSpecifier: "./utils/file-download"
|
|
788
786
|
});
|
|
787
|
+
if (this.config.options.dateType === "Date") {
|
|
788
|
+
sourceFile.addExportDeclaration({
|
|
789
|
+
moduleSpecifier: "./utils/date-transformer"
|
|
790
|
+
});
|
|
791
|
+
}
|
|
789
792
|
}
|
|
790
|
-
sourceFile.addExportDeclaration({
|
|
791
|
-
moduleSpecifier: "./utils/file-download"
|
|
792
|
-
});
|
|
793
793
|
sourceFile.saveSync();
|
|
794
794
|
}
|
|
795
795
|
};
|
|
@@ -2086,10 +2086,10 @@ function generateFromConfig(config) {
|
|
|
2086
2086
|
const indexGenerator = new ServiceIndexGenerator(project);
|
|
2087
2087
|
indexGenerator.generateIndex(outputPath);
|
|
2088
2088
|
console.log(`\u2705 Angular services generated`);
|
|
2089
|
+
const providerGenerator = new ProviderGenerator(project, config);
|
|
2090
|
+
providerGenerator.generate(outputPath);
|
|
2091
|
+
console.log(`\u2705 Provider functions generated`);
|
|
2089
2092
|
}
|
|
2090
|
-
const providerGenerator = new ProviderGenerator(project, config);
|
|
2091
|
-
providerGenerator.generate(outputPath);
|
|
2092
|
-
console.log(`\u2705 Provider functions generated`);
|
|
2093
2093
|
const mainIndexGenerator = new MainIndexGenerator(project, config);
|
|
2094
2094
|
mainIndexGenerator.generateMainIndex(outputPath);
|
|
2095
2095
|
console.log("\u{1F389} Generation completed successfully at:", outputPath);
|