diff --git a/package.json b/package.json index 453b3b9..621264a 100755 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "espree": "^9.0.0", "estraverse": "^5.1.0", "glob": "^8.0.0", - "jsdoc": "^3.6.3", + "jsdoc": "3.5.5", "minimist": "^1.2.0", "semver": "^7.1.2", "tmp": "^0.2.1", diff --git a/pbts.js b/pbts.js index dd72732..67e1962 100755 --- a/pbts.js +++ b/pbts.js @@ -173,6 +173,11 @@ exports.main = function(args, callback) { output = output.join("\n") + "\n" + out.join(""); + // https://github.com/protobufjs/protobuf.js/issues/1306#issuecomment-549204730 + output = output + .replace(/\[ 'object' \]\./g, 'Record') + .replace(/\[ 'Array' \]\./g, 'Array'); + try { if (argv.out) fs.writeFileSync(argv.out, output, { encoding: "utf8" });