protobufjs 3.8.1 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/dist/ProtoBuf.js +3 -3
- package/dist/ProtoBuf.min.js +16 -16
- package/dist/ProtoBuf.min.js.gz +0 -0
- package/dist/ProtoBuf.min.map +1 -1
- package/dist/ProtoBuf.noparse.js +2 -2
- package/dist/ProtoBuf.noparse.min.js +5 -5
- package/dist/ProtoBuf.noparse.min.js.gz +0 -0
- package/dist/ProtoBuf.noparse.min.map +1 -1
- package/docs/ProtoBuf.Builder.Message.html +1 -1
- package/docs/ProtoBuf.Builder.Service.html +1 -1
- package/docs/ProtoBuf.Builder.html +1 -1
- package/docs/ProtoBuf.DotProto.Parser.html +1 -1
- package/docs/ProtoBuf.DotProto.Tokenizer.html +1 -1
- package/docs/ProtoBuf.DotProto.html +1 -1
- package/docs/ProtoBuf.Reflect.Enum.Value.html +1 -1
- package/docs/ProtoBuf.Reflect.Enum.html +1 -1
- package/docs/ProtoBuf.Reflect.Extension.html +1 -1
- package/docs/ProtoBuf.Reflect.Message.ExtensionField.html +1 -1
- package/docs/ProtoBuf.Reflect.Message.Field.html +1 -1
- package/docs/ProtoBuf.Reflect.Message.OneOf.html +1 -1
- package/docs/ProtoBuf.Reflect.Message.html +1 -1
- package/docs/ProtoBuf.Reflect.Namespace.html +1 -1
- package/docs/ProtoBuf.Reflect.Service.Method.html +1 -1
- package/docs/ProtoBuf.Reflect.Service.RPCMethod.html +1 -1
- package/docs/ProtoBuf.Reflect.Service.html +1 -1
- package/docs/ProtoBuf.Reflect.T.html +1 -1
- package/docs/ProtoBuf.Reflect.html +1 -1
- package/docs/ProtoBuf.Util.html +1 -1
- package/docs/ProtoBuf.html +1 -1
- package/docs/ProtoBuf.js.html +4 -4
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/ProtoBuf/DotProto/Tokenizer.js +1 -1
- package/src/ProtoBuf/Lang.js +1 -1
- package/tests/options.proto +2 -0
package/docs/ProtoBuf.Util.html
CHANGED
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
<br clear="both">
|
|
683
683
|
|
|
684
684
|
<footer>
|
|
685
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on
|
|
685
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Mon Nov 24 2014 18:08:27 GMT+0100 (Mitteleuropäische Zeit)
|
|
686
686
|
</footer>
|
|
687
687
|
|
|
688
688
|
<script> prettyPrint(); </script>
|
package/docs/ProtoBuf.html
CHANGED
|
@@ -3054,7 +3054,7 @@
|
|
|
3054
3054
|
<br clear="both">
|
|
3055
3055
|
|
|
3056
3056
|
<footer>
|
|
3057
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on
|
|
3057
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Mon Nov 24 2014 18:08:27 GMT+0100 (Mitteleuropäische Zeit)
|
|
3058
3058
|
</footer>
|
|
3059
3059
|
|
|
3060
3060
|
<script> prettyPrint(); </script>
|
package/docs/ProtoBuf.js.html
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
* @const
|
|
67
67
|
* @expose
|
|
68
68
|
*/
|
|
69
|
-
ProtoBuf.VERSION = "3.8.
|
|
69
|
+
ProtoBuf.VERSION = "3.8.2";
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Wire types.
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
ID: /^(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+)$/,
|
|
431
431
|
NEGID: /^\-?(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+)$/,
|
|
432
432
|
WHITESPACE: /\s/,
|
|
433
|
-
STRING: /
|
|
433
|
+
STRING: /(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,
|
|
434
434
|
BOOL: /^(?:true|false)$/i
|
|
435
435
|
};
|
|
436
436
|
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
Lang.STRING.lastIndex = this.index-1; // Include the open quote
|
|
517
517
|
var match;
|
|
518
518
|
if ((match = Lang.STRING.exec(this.source)) !== null) {
|
|
519
|
-
var s = match[1];
|
|
519
|
+
var s = typeof match[1] !== 'undefined' ? match[1] : match[2];
|
|
520
520
|
this.index = Lang.STRING.lastIndex;
|
|
521
521
|
this.stack.push(this.stringEndsWith);
|
|
522
522
|
return s;
|
|
@@ -4377,7 +4377,7 @@
|
|
|
4377
4377
|
<br clear="both">
|
|
4378
4378
|
|
|
4379
4379
|
<footer>
|
|
4380
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on
|
|
4380
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Mon Nov 24 2014 18:08:26 GMT+0100 (Mitteleuropäische Zeit)
|
|
4381
4381
|
</footer>
|
|
4382
4382
|
|
|
4383
4383
|
<script> prettyPrint(); </script>
|
package/docs/index.html
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<br clear="both">
|
|
57
57
|
|
|
58
58
|
<footer>
|
|
59
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on
|
|
59
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Mon Nov 24 2014 18:08:27 GMT+0100 (Mitteleuropäische Zeit)
|
|
60
60
|
</footer>
|
|
61
61
|
|
|
62
62
|
<script> prettyPrint(); </script>
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ TokenizerPrototype._readString = function() {
|
|
|
70
70
|
Lang.STRING.lastIndex = this.index-1; // Include the open quote
|
|
71
71
|
var match;
|
|
72
72
|
if ((match = Lang.STRING.exec(this.source)) !== null) {
|
|
73
|
-
var s = match[1];
|
|
73
|
+
var s = typeof match[1] !== 'undefined' ? match[1] : match[2];
|
|
74
74
|
this.index = Lang.STRING.lastIndex;
|
|
75
75
|
this.stack.push(this.stringEndsWith);
|
|
76
76
|
return s;
|
package/src/ProtoBuf/Lang.js
CHANGED
|
@@ -33,6 +33,6 @@ ProtoBuf.Lang = {
|
|
|
33
33
|
ID: /^(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+)$/,
|
|
34
34
|
NEGID: /^\-?(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+)$/,
|
|
35
35
|
WHITESPACE: /\s/,
|
|
36
|
-
STRING: /
|
|
36
|
+
STRING: /(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,
|
|
37
37
|
BOOL: /^(?:true|false)$/i
|
|
38
38
|
};
|
package/tests/options.proto
CHANGED
|
@@ -4,6 +4,8 @@ option (toplevel_2) = "Hello world!";
|
|
|
4
4
|
|
|
5
5
|
message Test {
|
|
6
6
|
optional string name = 1 [default="Max"];
|
|
7
|
+
optional string desc1 = 2 [default="Shouldn't mix quotes"];
|
|
8
|
+
optional string desc2 = 3 [default='Shouldn"t mix quotes'];
|
|
7
9
|
option (inmessage) = My.Test;
|
|
8
10
|
option (foo.my_option).bar = false;
|
|
9
11
|
}
|