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 Aug 4, 2022
1 parent 96d6815 commit 403ceff
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 403ceff

Please sign in to comment.