Skip to content

Commit

Permalink
workaround for protobufjs#1306
Browse files Browse the repository at this point in the history
this can be reverted after jsdoc is upgraded, which is blocked on jsdoc/jsdoc#1644
  • Loading branch information
buu700 committed Jul 19, 2022
1 parent 96d6815 commit 3a616d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/pbts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
Expand Down

0 comments on commit 3a616d9

Please sign in to comment.