prisma-generator-plantuml-erd 1.0.0 → 1.0.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.0.1](https://github.com/dbgso/prisma-generator-plantuml-erd/compare/v1.0.0...v1.0.1) (2022-11-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * delete unnecessary code ([457fff9](https://github.com/dbgso/prisma-generator-plantuml-erd/commit/457fff95aff5ef058f36fc5ca32149931e5e9c42))
7
+ * output default value ([62641c3](https://github.com/dbgso/prisma-generator-plantuml-erd/commit/62641c3bcfaea875fea6f47e51a7bdd37536a0d7))
8
+
1
9
  # 1.0.0 (2022-11-08)
2
10
 
3
11
 
package/dist/generator.js CHANGED
@@ -13,12 +13,20 @@ const { version } = require('../package.json');
13
13
  };
14
14
  },
15
15
  onGenerate: async (options) => {
16
- var _a;
16
+ const output = getOutput(options);
17
17
  const generator = new plantuml_erd_1.PlantUmlErdGenerator({
18
- output: (_a = options.generator.output) === null || _a === void 0 ? void 0 : _a.value,
18
+ output: output,
19
19
  ...options.generator.config,
20
20
  });
21
21
  await generator.generate(options.dmmf);
22
22
  },
23
23
  });
24
+ function getOutput(options) {
25
+ if (options.generator.output) {
26
+ if (options.generator.output.fromEnvVar === null) {
27
+ return options.generator.output.value;
28
+ }
29
+ }
30
+ return undefined;
31
+ }
24
32
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":";;AAAA,+DAA8E;AAC9E,2CAA6C;AAC7C,iDAAsD;AAEtD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE/C,IAAA,mCAAgB,EAAC;IACf,UAAU;QACR,OAAO;YACL,OAAO;YACP,aAAa,EAAE,cAAc;YAC7B,UAAU,EAAE,0BAAc;SAC3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ACnB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prisma-generator-plantuml-erd",
3
3
  "description": "Provide a description about your generator",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "main": "dist/generator.js",
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "ts-jest": "^29.0.3",
42
42
  "typescript": "4.6.2"
43
43
  },
44
- "homepage": "Link to homepage or github readme here",
44
+ "homepage": "https://github.com/dbgso/prisma-generator-plantuml-erd.git",
45
45
  "repository": {
46
46
  "type": "git",
47
47
  "url": "https://github.com/dbgso/prisma-generator-plantuml-erd.git"