Skip to content

Commit

Permalink
https://github.com/protobufjs/protobuf.js/pull/1777
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Jul 19, 2022
1 parent 980159e commit 43c4ba9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions 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 43c4ba9

Please sign in to comment.