From 2ce3511edbc6802f95e89c6f5b412d7f5a76d56d Mon Sep 17 00:00:00 2001 From: Olivier Refalo Date: Sun, 8 Jul 2018 20:26:34 -0400 Subject: [PATCH] fix #1 --- about-dialog.js | 5 ++--- idl-code-generator.js | 8 +++----- package.json | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/about-dialog.js b/about-dialog.js index 1c57510..ab0a874 100644 --- a/about-dialog.js +++ b/about-dialog.js @@ -1,9 +1,8 @@ -//@ts-ignore +//@ts-nocheck +/*global $, app, type, __dirname*/ "use strict"; -/*global $, app, type, __dirname*/ - const { shell } = require("electron"); const fs = require("fs"); const path = require("path"); diff --git a/idl-code-generator.js b/idl-code-generator.js index 33c0cb0..4f84ea2 100644 --- a/idl-code-generator.js +++ b/idl-code-generator.js @@ -225,10 +225,8 @@ class IDLCodeGenerator { * @param {Object} options */ writeClass(codeWriter, elem, options, keyword) { - let i, - len, - terms = []; - //, self = this; + let i, len; + const terms = []; // Doc this.writeDoc(codeWriter, elem.documentation, options); @@ -631,7 +629,7 @@ class IDLCodeGenerator { */ writeDoc(codeWriter, text, options) { let i, len, lines, v; - if (options.gqDoc && typeof text === "string") { + if (options.idlDoc && typeof text === "string") { lines = text.trim().split("\n"); for (i = 0, len = lines.length; i < len; i++) { v = lines[i].trim(); diff --git a/package.json b/package.json index 1cd6149..7731460 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "orefalo.staruml-graphql", "title": "GraphQL extension for StarUML", - "version": "3.0.0", + "version": "3.0.1", "description": "GraphQL IDL schema generation for StarUML", "homepage": "https://github.com/orefalo/staruml3-graphql", "issues": "https://github.com/orefalo/staruml3-graphql/issues",