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.
Files changed (72) hide show
  1. package/.travis.yml +2 -1
  2. package/README.md +17 -17
  3. package/bower.json +2 -2
  4. package/cli/pbjs/targets/json.js +3 -2
  5. package/cli/pbjs/targets/proto.js +48 -24
  6. package/cli/pbjs.js +8 -1
  7. package/dist/README.md +10 -10
  8. package/dist/{ProtoBuf-light.js → protobuf-light.js} +49 -43
  9. package/dist/protobuf-light.min.js +87 -0
  10. package/dist/protobuf-light.min.js.gz +0 -0
  11. package/dist/protobuf-light.min.map +8 -0
  12. package/dist/{ProtoBuf.js → protobuf.js} +103 -66
  13. package/dist/protobuf.min.js +108 -0
  14. package/dist/protobuf.min.js.gz +0 -0
  15. package/dist/protobuf.min.map +8 -0
  16. package/docs/ProtoBuf.Builder.Message.html +106 -37
  17. package/docs/ProtoBuf.Builder.Service.html +9 -9
  18. package/docs/ProtoBuf.Builder.html +22 -22
  19. package/docs/ProtoBuf.DotProto.Parser.html +7 -7
  20. package/docs/ProtoBuf.DotProto.Tokenizer.html +11 -11
  21. package/docs/ProtoBuf.DotProto.html +2 -2
  22. package/docs/ProtoBuf.Map.html +6 -6
  23. package/docs/ProtoBuf.Reflect.Element.html +7 -7
  24. package/docs/ProtoBuf.Reflect.Enum.Value.html +10 -10
  25. package/docs/ProtoBuf.Reflect.Enum.html +21 -21
  26. package/docs/ProtoBuf.Reflect.Extension.html +3 -3
  27. package/docs/ProtoBuf.Reflect.Message.ExtensionField.html +29 -29
  28. package/docs/ProtoBuf.Reflect.Message.Field.html +28 -28
  29. package/docs/ProtoBuf.Reflect.Message.OneOf.html +10 -10
  30. package/docs/ProtoBuf.Reflect.Message.html +31 -28
  31. package/docs/ProtoBuf.Reflect.Namespace.html +19 -19
  32. package/docs/ProtoBuf.Reflect.Service.Method.html +11 -11
  33. package/docs/ProtoBuf.Reflect.Service.RPCMethod.html +17 -17
  34. package/docs/ProtoBuf.Reflect.Service.html +20 -20
  35. package/docs/ProtoBuf.Reflect.T.html +9 -9
  36. package/docs/ProtoBuf.Reflect.html +2 -2
  37. package/docs/ProtoBuf.Util.html +2 -151
  38. package/docs/ProtoBuf.html +9 -9
  39. package/docs/ProtoBuf.js.html +104 -67
  40. package/docs/index.html +1 -1
  41. package/donate.png +0 -0
  42. package/externs/{ProtoBuf.js → protobuf.js} +933 -922
  43. package/index.js +1 -18
  44. package/package.json +12 -11
  45. package/protobuf.png +0 -0
  46. package/sandbox/issue347/index.js +27 -0
  47. package/sandbox/issue355/main.proto +15 -0
  48. package/scripts/build.js +4 -9
  49. package/src/ProtoBuf/Builder/Message.js +9 -4
  50. package/src/ProtoBuf/Builder/Service.js +3 -0
  51. package/src/ProtoBuf/Builder.js +17 -10
  52. package/src/ProtoBuf/DotProto/Parser.js +54 -23
  53. package/src/ProtoBuf/Reflect/Element.js +4 -3
  54. package/src/ProtoBuf/Reflect/Message/Field.js +4 -3
  55. package/src/ProtoBuf/Reflect/Message.js +3 -3
  56. package/src/ProtoBuf/Util.js +3 -14
  57. package/src/bower.json +1 -1
  58. package/src/google/protobuf/descriptor.json +28 -14
  59. package/src/{ProtoBuf.js → protobuf.js} +0 -0
  60. package/src/wrap.js +6 -6
  61. package/tests/imports-weak.proto +7 -0
  62. package/tests/suite.js +64 -81
  63. package/ProtoBuf.png +0 -0
  64. package/dist/ProtoBuf-light.min.js +0 -88
  65. package/dist/ProtoBuf-light.min.js.gz +0 -0
  66. package/dist/ProtoBuf-light.min.map +0 -8
  67. package/dist/ProtoBuf.min.js +0 -108
  68. package/dist/ProtoBuf.min.js.gz +0 -0
  69. package/dist/ProtoBuf.min.map +0 -8
  70. package/externs/ByteBuffer.js +0 -767
  71. package/externs/Long.js +0 -328
  72. 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#line1386">line 1386</a>
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#line1393">line 1393</a>
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#line1414">line 1414</a>
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#line1407">line 1407</a>
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#line1400">line 1400</a>
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#line1455">line 1455</a>
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#line1428">line 1428</a>
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#line1446">line 1446</a>
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 Mon Sep 28 2015 15:24:52 GMT+0200 (Mitteleuropäische Sommerzeit)
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#line1375">line 1375</a>
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 Mon Sep 28 2015 15:24:51 GMT+0200 (Mitteleuropäische Sommerzeit)
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>
@@ -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"> &rarr; {*}</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#line411">line 411</a>
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 Mon Sep 28 2015 15:24:52 GMT+0200 (Mitteleuropäische Sommerzeit)
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>
@@ -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#line425">line 425</a>
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#line5138">line 5138</a>
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#line5163">line 5163</a>
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#line5045">line 5045</a>
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#line5076">line 5076</a>
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#line5120">line 5120</a>
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#line5111">line 5111</a>
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#line5062">line 5062</a>
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 Mon Sep 28 2015 15:24:51 GMT+0200 (Mitteleuropäische Sommerzeit)
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>