@lenne.tech/nest-server 10.0.6 → 10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "10.0.6",
3
+ "version": "10.0.7",
4
4
  "description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
5
5
  "keywords": [
6
6
  "node",
@@ -116,7 +116,7 @@ export class ModelDocService implements OnApplicationBootstrap {
116
116
  * @param yUmlText
117
117
  * @protected
118
118
  */
119
- protected yUmlToSvg(yUmlText: String) {
119
+ protected yUmlToSvg(yUmlText: string) {
120
120
 
121
121
  // Create diagrams
122
122
  // see https://github.com/jaime-olivares/yuml-diagram
@@ -125,6 +125,13 @@ export class ModelDocService implements OnApplicationBootstrap {
125
125
  const svgLightBg = yuml.processYumlDocument(yUmlText, false);
126
126
  const svgDarkBg = yuml.processYumlDocument(yUmlText, true);
127
127
 
128
+ // Save yuml document
129
+ fs.writeFile('model-doc.yuml', yUmlText, (err) => {
130
+ if (err) {
131
+ console.error(err);
132
+ }
133
+ });
134
+
128
135
  // Save diagrams
129
136
  fs.writeFile('model-doc-light.svg', svgLightBg, (err) => {
130
137
  if (err) {