Skip to content

Commit 36e5cc8

Browse files
committed
Postmerge
1 parent 2ce742e commit 36e5cc8

File tree

9 files changed

+16
-12
lines changed

9 files changed

+16
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
npm-debug.log
3+
.idea/

ProtoBuf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @const
3939
* @expose
4040
*/
41-
ProtoBuf.VERSION = "2.0.3";
41+
ProtoBuf.VERSION = "2.0.4";
4242

4343
/**
4444
* Wire types.
@@ -3718,4 +3718,4 @@
37183718
global["dcodeIO"]["ProtoBuf"] = loadProtoBuf(global["dcodeIO"]["ByteBuffer"]);
37193719
}
37203720

3721-
})(this);
3721+
})(this);

ProtoBuf.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProtoBuf.min.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

ProtoBuf.noparse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @const
3939
* @expose
4040
*/
41-
ProtoBuf.VERSION = "2.0.3";
41+
ProtoBuf.VERSION = "2.0.4";
4242

4343
/**
4444
* Wire types.

ProtoBuf.noparse.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "protobuf",
33
"description": "Protocol Buffers for JavaScript. Finally.",
4-
"version": "2.0.3",
4+
"version": "2.0.4",
55
"main": "ProtoBuf.js",
66
"license": "Apache-2.0",
77
"homepage": "http://dcode.io/",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protobufjs",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "A full-featured protobuf implementation in plain JavaScript.",
55
"author": "Daniel Wirtz <[email protected]>",
66
"contributors": [

src/ProtoBuf/DotProto/Parser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ ProtoBuf.DotProto.Parser = (function(ProtoBuf, Lang, Tokenizer) {
215215
token = this.tn.next();
216216
}
217217
if (!Lang.NAME.test(token)) {
218-
throw(new Error("Illegal option name in message "+parent.name+" at line "+this.tn.line+": "+token));
218+
// we can allow options of the form google.protobuf.* since they will just get ignored anyways
219+
if (!/google\.protobuf\./.test(token)) {
220+
throw(new Error("Illegal option name in message "+parent.name+" at line "+this.tn.line+": "+token));
221+
}
219222
}
220223
var name = token;
221224
token = this.tn.next();

0 commit comments

Comments
 (0)