protobufjs 4.1.1 → 5.0.1
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/.travis.yml +2 -1
- package/README.md +17 -17
- package/bower.json +2 -2
- package/cli/pbjs/targets/json.js +3 -2
- package/cli/pbjs/targets/proto.js +48 -24
- package/cli/pbjs.js +8 -1
- package/dist/README.md +10 -10
- package/dist/{ProtoBuf-light.js → protobuf-light.js} +49 -43
- package/dist/protobuf-light.min.js +87 -0
- package/dist/protobuf-light.min.js.gz +0 -0
- package/dist/protobuf-light.min.map +8 -0
- package/dist/{ProtoBuf.js → protobuf.js} +103 -66
- package/dist/protobuf.min.js +108 -0
- package/dist/protobuf.min.js.gz +0 -0
- package/dist/protobuf.min.map +8 -0
- package/docs/ProtoBuf.Builder.Message.html +106 -37
- package/docs/ProtoBuf.Builder.Service.html +9 -9
- package/docs/ProtoBuf.Builder.html +22 -22
- package/docs/ProtoBuf.DotProto.Parser.html +7 -7
- package/docs/ProtoBuf.DotProto.Tokenizer.html +11 -11
- package/docs/ProtoBuf.DotProto.html +2 -2
- package/docs/ProtoBuf.Map.html +6 -6
- package/docs/ProtoBuf.Reflect.Element.html +7 -7
- package/docs/ProtoBuf.Reflect.Enum.Value.html +10 -10
- package/docs/ProtoBuf.Reflect.Enum.html +21 -21
- package/docs/ProtoBuf.Reflect.Extension.html +3 -3
- package/docs/ProtoBuf.Reflect.Message.ExtensionField.html +29 -29
- package/docs/ProtoBuf.Reflect.Message.Field.html +28 -28
- package/docs/ProtoBuf.Reflect.Message.OneOf.html +10 -10
- package/docs/ProtoBuf.Reflect.Message.html +31 -28
- package/docs/ProtoBuf.Reflect.Namespace.html +19 -19
- package/docs/ProtoBuf.Reflect.Service.Method.html +11 -11
- package/docs/ProtoBuf.Reflect.Service.RPCMethod.html +17 -17
- package/docs/ProtoBuf.Reflect.Service.html +20 -20
- package/docs/ProtoBuf.Reflect.T.html +9 -9
- package/docs/ProtoBuf.Reflect.html +2 -2
- package/docs/ProtoBuf.Util.html +2 -151
- package/docs/ProtoBuf.html +9 -9
- package/docs/ProtoBuf.js.html +104 -67
- package/docs/index.html +1 -1
- package/donate.png +0 -0
- package/externs/{ProtoBuf.js → protobuf.js} +933 -922
- package/index.js +1 -18
- package/package.json +12 -11
- package/protobuf.png +0 -0
- package/sandbox/issue347/index.js +27 -0
- package/sandbox/issue355/main.proto +15 -0
- package/scripts/build.js +4 -9
- package/src/ProtoBuf/Builder/Message.js +9 -4
- package/src/ProtoBuf/Builder/Service.js +3 -0
- package/src/ProtoBuf/Builder.js +17 -10
- package/src/ProtoBuf/DotProto/Parser.js +54 -23
- package/src/ProtoBuf/Reflect/Element.js +4 -3
- package/src/ProtoBuf/Reflect/Message/Field.js +4 -3
- package/src/ProtoBuf/Reflect/Message.js +3 -3
- package/src/ProtoBuf/Util.js +3 -14
- package/src/bower.json +1 -1
- package/src/google/protobuf/descriptor.json +28 -14
- package/src/{ProtoBuf.js → protobuf.js} +0 -0
- package/src/wrap.js +6 -6
- package/tests/imports-weak.proto +7 -0
- package/tests/suite.js +64 -81
- package/ProtoBuf.png +0 -0
- package/dist/ProtoBuf-light.min.js +0 -88
- package/dist/ProtoBuf-light.min.js.gz +0 -0
- package/dist/ProtoBuf-light.min.map +0 -8
- package/dist/ProtoBuf.min.js +0 -108
- package/dist/ProtoBuf.min.js.gz +0 -0
- package/dist/ProtoBuf.min.map +0 -8
- package/externs/ByteBuffer.js +0 -767
- package/externs/Long.js +0 -328
- package/tests/gtfs-realtime.proto +0 -552
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
|
|
205
205
|
<dt class="tag-source">Source:</dt>
|
|
206
206
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
207
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
207
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1406">line 1406</a>
|
|
208
208
|
</li></ul></dd>
|
|
209
209
|
|
|
210
210
|
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
|
|
299
299
|
<dt class="tag-source">Source:</dt>
|
|
300
300
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
301
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
301
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1413">line 1413</a>
|
|
302
302
|
</li></ul></dd>
|
|
303
303
|
|
|
304
304
|
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
|
|
365
365
|
<dt class="tag-source">Source:</dt>
|
|
366
366
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
367
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
367
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1434">line 1434</a>
|
|
368
368
|
</li></ul></dd>
|
|
369
369
|
|
|
370
370
|
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
|
|
431
431
|
<dt class="tag-source">Source:</dt>
|
|
432
432
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
433
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
433
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1427">line 1427</a>
|
|
434
434
|
</li></ul></dd>
|
|
435
435
|
|
|
436
436
|
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
|
|
497
497
|
<dt class="tag-source">Source:</dt>
|
|
498
498
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
499
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
499
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1420">line 1420</a>
|
|
500
500
|
</li></ul></dd>
|
|
501
501
|
|
|
502
502
|
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
|
|
564
564
|
<dt class="tag-source">Source:</dt>
|
|
565
565
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
566
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
566
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1475">line 1475</a>
|
|
567
567
|
</li></ul></dd>
|
|
568
568
|
|
|
569
569
|
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
|
|
662
662
|
<dt class="tag-source">Source:</dt>
|
|
663
663
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
664
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
664
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1448">line 1448</a>
|
|
665
665
|
</li></ul></dd>
|
|
666
666
|
|
|
667
667
|
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
|
|
815
815
|
<dt class="tag-source">Source:</dt>
|
|
816
816
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
817
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
817
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1466">line 1466</a>
|
|
818
818
|
</li></ul></dd>
|
|
819
819
|
|
|
820
820
|
|
|
@@ -873,7 +873,7 @@
|
|
|
873
873
|
<br clear="both">
|
|
874
874
|
|
|
875
875
|
<footer>
|
|
876
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on
|
|
876
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on Wed Jan 06 2016 01:34:59 GMT+0100 (Mitteleuropäische Zeit)
|
|
877
877
|
</footer>
|
|
878
878
|
|
|
879
879
|
<script> prettyPrint(); </script>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
<dt class="tag-source">Source:</dt>
|
|
68
68
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
69
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
69
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1395">line 1395</a>
|
|
70
70
|
</li></ul></dd>
|
|
71
71
|
|
|
72
72
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
<br clear="both">
|
|
143
143
|
|
|
144
144
|
<footer>
|
|
145
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on
|
|
145
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on Wed Jan 06 2016 01:34:59 GMT+0100 (Mitteleuropäische Zeit)
|
|
146
146
|
</footer>
|
|
147
147
|
|
|
148
148
|
<script> prettyPrint(); </script>
|
package/docs/ProtoBuf.Util.html
CHANGED
|
@@ -355,155 +355,6 @@
|
|
|
355
355
|
|
|
356
356
|
|
|
357
357
|
|
|
358
|
-
</dd>
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
<dt>
|
|
363
|
-
<h4 class="name" id="require"><span class="type-signature">(static) </span>require<span class="signature">(path)</span><span class="type-signature"> → {*}</span></h4>
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
</dt>
|
|
367
|
-
<dd>
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
<div class="description">
|
|
371
|
-
<p>Requires a node module.</p>
|
|
372
|
-
</div>
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
<h5>Parameters:</h5>
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<table class="params">
|
|
384
|
-
<thead>
|
|
385
|
-
<tr>
|
|
386
|
-
|
|
387
|
-
<th>Name</th>
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
<th>Type</th>
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
<th class="last">Description</th>
|
|
397
|
-
</tr>
|
|
398
|
-
</thead>
|
|
399
|
-
|
|
400
|
-
<tbody>
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
<tr>
|
|
404
|
-
|
|
405
|
-
<td class="name"><code>path</code></td>
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
<td class="type">
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
<span class="param-type">string</span>
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
</td>
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
<td class="description last"></td>
|
|
422
|
-
</tr>
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
</tbody>
|
|
426
|
-
</table>
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
<dl class="details">
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
<dt class="tag-source">Source:</dt>
|
|
451
|
-
<dd class="tag-source"><ul class="dummy"><li>
|
|
452
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line401">line 401</a>
|
|
453
|
-
</li></ul></dd>
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
</dl>
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
<h5>Throws:</h5>
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
<div class="param-desc">
|
|
478
|
-
|
|
479
|
-
Error If node require is not supported
|
|
480
|
-
|
|
481
|
-
</div>
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
<h5>Returns:</h5>
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
<dl>
|
|
493
|
-
<dt>
|
|
494
|
-
Type
|
|
495
|
-
</dt>
|
|
496
|
-
<dd>
|
|
497
|
-
|
|
498
|
-
<span class="param-type">*</span>
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
</dd>
|
|
502
|
-
</dl>
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
358
|
</dd>
|
|
508
359
|
|
|
509
360
|
|
|
@@ -598,7 +449,7 @@
|
|
|
598
449
|
|
|
599
450
|
<dt class="tag-source">Source:</dt>
|
|
600
451
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
601
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
452
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line400">line 400</a>
|
|
602
453
|
</li></ul></dd>
|
|
603
454
|
|
|
604
455
|
|
|
@@ -781,7 +632,7 @@
|
|
|
781
632
|
<br clear="both">
|
|
782
633
|
|
|
783
634
|
<footer>
|
|
784
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on
|
|
635
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on Wed Jan 06 2016 01:34:59 GMT+0100 (Mitteleuropäische Zeit)
|
|
785
636
|
</footer>
|
|
786
637
|
|
|
787
638
|
<script> prettyPrint(); </script>
|
package/docs/ProtoBuf.html
CHANGED
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
|
|
429
429
|
<dt class="tag-source">Source:</dt>
|
|
430
430
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
431
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
431
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line414">line 414</a>
|
|
432
432
|
</li></ul></dd>
|
|
433
433
|
|
|
434
434
|
|
|
@@ -1553,7 +1553,7 @@
|
|
|
1553
1553
|
|
|
1554
1554
|
<dt class="tag-source">Source:</dt>
|
|
1555
1555
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1556
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
1556
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line5175">line 5175</a>
|
|
1557
1557
|
</li></ul></dd>
|
|
1558
1558
|
|
|
1559
1559
|
|
|
@@ -1803,7 +1803,7 @@
|
|
|
1803
1803
|
|
|
1804
1804
|
<dt class="tag-source">Source:</dt>
|
|
1805
1805
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1806
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
1806
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line5200">line 5200</a>
|
|
1807
1807
|
</li></ul></dd>
|
|
1808
1808
|
|
|
1809
1809
|
|
|
@@ -2033,7 +2033,7 @@
|
|
|
2033
2033
|
|
|
2034
2034
|
<dt class="tag-source">Source:</dt>
|
|
2035
2035
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2036
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2036
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line5082">line 5082</a>
|
|
2037
2037
|
</li></ul></dd>
|
|
2038
2038
|
|
|
2039
2039
|
|
|
@@ -2283,7 +2283,7 @@
|
|
|
2283
2283
|
|
|
2284
2284
|
<dt class="tag-source">Source:</dt>
|
|
2285
2285
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2286
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2286
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line5113">line 5113</a>
|
|
2287
2287
|
</li></ul></dd>
|
|
2288
2288
|
|
|
2289
2289
|
|
|
@@ -2440,7 +2440,7 @@
|
|
|
2440
2440
|
|
|
2441
2441
|
<dt class="tag-source">Source:</dt>
|
|
2442
2442
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2443
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2443
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line5157">line 5157</a>
|
|
2444
2444
|
</li></ul></dd>
|
|
2445
2445
|
|
|
2446
2446
|
|
|
@@ -2663,7 +2663,7 @@
|
|
|
2663
2663
|
|
|
2664
2664
|
<dt class="tag-source">Source:</dt>
|
|
2665
2665
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2666
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2666
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line5148">line 5148</a>
|
|
2667
2667
|
</li></ul></dd>
|
|
2668
2668
|
|
|
2669
2669
|
|
|
@@ -2890,7 +2890,7 @@
|
|
|
2890
2890
|
|
|
2891
2891
|
<dt class="tag-source">Source:</dt>
|
|
2892
2892
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2893
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2893
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line5099">line 5099</a>
|
|
2894
2894
|
</li></ul></dd>
|
|
2895
2895
|
|
|
2896
2896
|
|
|
@@ -2988,7 +2988,7 @@
|
|
|
2988
2988
|
<br clear="both">
|
|
2989
2989
|
|
|
2990
2990
|
<footer>
|
|
2991
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on
|
|
2991
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on Wed Jan 06 2016 01:34:58 GMT+0100 (Mitteleuropäische Zeit)
|
|
2992
2992
|
</footer>
|
|
2993
2993
|
|
|
2994
2994
|
<script> prettyPrint(); </script>
|