You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[protobuf.js API Documentation](http://dcode.io/protobuf.js/) and [CHANGELOG](https://github.com/dcodeIO/protobuf.js/blob/master/CHANGELOG.md)
320
-
321
-
*[Questions and answers on StackOverflow](http://stackoverflow.com/questions/tagged/protobuf.js)
319
+
*[Frequently asked questions](https://github.com/dcodeIO/protobuf.js/wiki) on our wiki
320
+
*[More questions and answers](http://stackoverflow.com/questions/tagged/protobuf.js) on StackOverflow
Copy file name to clipboardExpand all lines: src/parse.js
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
1
"use strict";
2
2
module.exports=parse;
3
3
4
-
parse.keepCase=false;
4
+
parse.filename=null;
5
+
parse.defaults={keepCase: false};
5
6
6
7
vartokenize=require("./tokenize"),
7
8
Root=require("./root"),
@@ -60,10 +61,10 @@ function camelCase(str) {
60
61
* @function
61
62
* @param {string} source Source contents
62
63
* @param {Root} root Root to populate
63
-
* @param {ParseOptions} [options] Parse options
64
+
* @param {ParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted.
64
65
* @returns {ParserResult} Parser result
65
66
* @property {string} filename=null Currently processing file name for error reporting, if known
66
-
* @property {boolean} keepCase=false When set to `true`, always keeps field casing instead of converting to camel case when no {@link ParseOptions} are specified
0 commit comments