protobufjs 4.1.2 → 5.0.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.
Files changed (188) hide show
  1. package/.travis.yml +3 -1
  2. package/README.md +147 -25
  3. package/bin/pbjs +2 -2
  4. package/bower.json +3 -3
  5. package/cli/pbjs/targets/amd.js +1 -1
  6. package/cli/pbjs/targets/json.js +9 -1
  7. package/cli/pbjs/targets/proto.js +48 -24
  8. package/cli/pbjs/util.js +1 -1
  9. package/cli/pbjs.js +9 -2
  10. package/dist/README.md +10 -10
  11. package/dist/{ProtoBuf-light.js → protobuf-light.js} +207 -152
  12. package/dist/protobuf-light.min.js +94 -0
  13. package/dist/protobuf-light.min.js.gz +0 -0
  14. package/dist/protobuf-light.min.map +8 -0
  15. package/dist/{ProtoBuf.js → protobuf.js} +265 -175
  16. package/dist/protobuf.min.js +116 -0
  17. package/dist/protobuf.min.js.gz +0 -0
  18. package/dist/protobuf.min.map +8 -0
  19. package/docs/ProtoBuf.Builder.Message.html +1473 -967
  20. package/docs/ProtoBuf.Builder.Service.html +266 -197
  21. package/docs/ProtoBuf.Builder.html +758 -542
  22. package/docs/ProtoBuf.DotProto.Parser.html +223 -161
  23. package/docs/ProtoBuf.DotProto.Tokenizer.html +344 -248
  24. package/docs/ProtoBuf.DotProto.html +20 -12
  25. package/docs/ProtoBuf.Element.html +554 -554
  26. package/docs/ProtoBuf.Map.html +158 -123
  27. package/docs/ProtoBuf.Reflect.Element.html +286 -143
  28. package/docs/ProtoBuf.Reflect.Enum.Value.html +329 -228
  29. package/docs/ProtoBuf.Reflect.Enum.html +757 -537
  30. package/docs/ProtoBuf.Reflect.Extension.html +73 -56
  31. package/docs/ProtoBuf.Reflect.Message.ExtensionField.html +1013 -740
  32. package/docs/ProtoBuf.Reflect.Message.Field.html +926 -649
  33. package/docs/ProtoBuf.Reflect.Message.OneOf.html +327 -245
  34. package/docs/ProtoBuf.Reflect.Message.html +919 -652
  35. package/docs/ProtoBuf.Reflect.Namespace.html +648 -447
  36. package/docs/ProtoBuf.Reflect.Service.Method.html +363 -251
  37. package/docs/ProtoBuf.Reflect.Service.RPCMethod.html +545 -397
  38. package/docs/ProtoBuf.Reflect.Service.html +721 -511
  39. package/docs/ProtoBuf.Reflect.T.html +268 -197
  40. package/docs/ProtoBuf.Reflect.html +20 -12
  41. package/docs/ProtoBuf.Util.html +169 -118
  42. package/docs/ProtoBuf.html +840 -628
  43. package/docs/ProtoBuf.js.html +271 -180
  44. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  45. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  46. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  47. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  48. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  49. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  50. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  51. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  52. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  53. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  54. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  55. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  56. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  57. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  58. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  59. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  60. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  61. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  62. package/docs/index.html +7 -5
  63. package/docs/styles/jsdoc-default.css +95 -75
  64. package/docs/styles/prettify-tomorrow.css +1 -1
  65. package/donate.png +0 -0
  66. package/examples/protoify/json.js +123 -123
  67. package/examples/protoify/json.json +123 -123
  68. package/examples/websocket/server.js +4 -4
  69. package/externs/{ProtoBuf.js → protobuf.js} +933 -922
  70. package/index.js +1 -18
  71. package/jsdoc.json +1 -1
  72. package/package.json +11 -11
  73. package/protobuf.png +0 -0
  74. package/scripts/build.js +53 -58
  75. package/src/ProtoBuf/Builder/Message.js +18 -9
  76. package/src/ProtoBuf/Builder/Service.js +3 -0
  77. package/src/ProtoBuf/Builder.js +34 -10
  78. package/src/ProtoBuf/DotProto/Parser.js +58 -23
  79. package/src/ProtoBuf/Reflect/Element.js +17 -4
  80. package/src/ProtoBuf/Reflect/Message/Field.js +6 -5
  81. package/src/ProtoBuf/Reflect/Message.js +9 -4
  82. package/src/ProtoBuf/Util.js +116 -116
  83. package/src/bower.json +2 -2
  84. package/src/google/protobuf/descriptor.json +55 -15
  85. package/src/{ProtoBuf.js → protobuf.js} +0 -0
  86. package/src/wrap.js +4 -4
  87. package/tests/bench.txt +373 -373
  88. package/tests/complex.json +8 -1
  89. package/tests/custom-options.json +169 -169
  90. package/tests/extend.json +71 -71
  91. package/tests/imports-weak.proto +7 -0
  92. package/tests/imports.json +83 -83
  93. package/tests/nodeunit-browser/nodeunit.css +70 -70
  94. package/tests/nodeunit-browser/nodeunit.js +2108 -2108
  95. package/tests/options.json +32 -32
  96. package/tests/proto2js/Bar.json +46 -46
  97. package/tests/suite.js +107 -82
  98. package/ProtoBuf.png +0 -0
  99. package/dist/ProtoBuf-light.min.js +0 -87
  100. package/dist/ProtoBuf-light.min.js.gz +0 -0
  101. package/dist/ProtoBuf-light.min.map +0 -8
  102. package/dist/ProtoBuf.min.js +0 -108
  103. package/dist/ProtoBuf.min.js.gz +0 -0
  104. package/dist/ProtoBuf.min.map +0 -8
  105. package/externs/ByteBuffer.js +0 -767
  106. package/externs/Long.js +0 -328
  107. package/sandbox/gapi/googleapis/google/api/annotations.proto +0 -29
  108. package/sandbox/gapi/googleapis/google/api/http.proto +0 -245
  109. package/sandbox/gapi/googleapis/google/datastore/v1beta3/datastore.proto +0 -281
  110. package/sandbox/gapi/googleapis/google/datastore/v1beta3/entity.proto +0 -189
  111. package/sandbox/gapi/googleapis/google/datastore/v1beta3/query.proto +0 -281
  112. package/sandbox/gapi/googleapis/google/longrunning/operations.proto +0 -144
  113. package/sandbox/gapi/googleapis/google/protobuf/any.proto +0 -98
  114. package/sandbox/gapi/googleapis/google/protobuf/any_test.proto +0 -41
  115. package/sandbox/gapi/googleapis/google/protobuf/api.proto +0 -201
  116. package/sandbox/gapi/googleapis/google/protobuf/descriptor.proto +0 -773
  117. package/sandbox/gapi/googleapis/google/protobuf/duration.proto +0 -95
  118. package/sandbox/gapi/googleapis/google/protobuf/empty.proto +0 -50
  119. package/sandbox/gapi/googleapis/google/protobuf/field_mask.proto +0 -167
  120. package/sandbox/gapi/googleapis/google/protobuf/map_lite_unittest.proto +0 -130
  121. package/sandbox/gapi/googleapis/google/protobuf/map_proto2_unittest.proto +0 -60
  122. package/sandbox/gapi/googleapis/google/protobuf/map_unittest.proto +0 -129
  123. package/sandbox/gapi/googleapis/google/protobuf/map_unittest_proto3.proto +0 -120
  124. package/sandbox/gapi/googleapis/google/protobuf/source_context.proto +0 -47
  125. package/sandbox/gapi/googleapis/google/protobuf/struct.proto +0 -94
  126. package/sandbox/gapi/googleapis/google/protobuf/timestamp.proto +0 -107
  127. package/sandbox/gapi/googleapis/google/protobuf/type.proto +0 -176
  128. package/sandbox/gapi/googleapis/google/protobuf/unittest.proto +0 -878
  129. package/sandbox/gapi/googleapis/google/protobuf/unittest_arena.proto +0 -46
  130. package/sandbox/gapi/googleapis/google/protobuf/unittest_custom_options.proto +0 -394
  131. package/sandbox/gapi/googleapis/google/protobuf/unittest_drop_unknown_fields.proto +0 -58
  132. package/sandbox/gapi/googleapis/google/protobuf/unittest_embed_optimize_for.proto +0 -51
  133. package/sandbox/gapi/googleapis/google/protobuf/unittest_empty.proto +0 -38
  134. package/sandbox/gapi/googleapis/google/protobuf/unittest_enormous_descriptor.proto +0 -1048
  135. package/sandbox/gapi/googleapis/google/protobuf/unittest_import.proto +0 -66
  136. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_lite.proto +0 -52
  137. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_proto3.proto +0 -68
  138. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public.proto +0 -41
  139. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public_lite.proto +0 -43
  140. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public_proto3.proto +0 -42
  141. package/sandbox/gapi/googleapis/google/protobuf/unittest_lite.proto +0 -385
  142. package/sandbox/gapi/googleapis/google/protobuf/unittest_lite_imports_nonlite.proto +0 -44
  143. package/sandbox/gapi/googleapis/google/protobuf/unittest_mset.proto +0 -82
  144. package/sandbox/gapi/googleapis/google/protobuf/unittest_mset_wire_format.proto +0 -52
  145. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena.proto +0 -202
  146. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena_import.proto +0 -37
  147. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena_lite.proto +0 -42
  148. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_field_presence.proto +0 -138
  149. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_generic_services.proto +0 -54
  150. package/sandbox/gapi/googleapis/google/protobuf/unittest_optimize_for.proto +0 -67
  151. package/sandbox/gapi/googleapis/google/protobuf/unittest_preserve_unknown_enum.proto +0 -71
  152. package/sandbox/gapi/googleapis/google/protobuf/unittest_preserve_unknown_enum2.proto +0 -50
  153. package/sandbox/gapi/googleapis/google/protobuf/unittest_proto3.proto +0 -388
  154. package/sandbox/gapi/googleapis/google/protobuf/unittest_proto3_arena.proto +0 -206
  155. package/sandbox/gapi/googleapis/google/protobuf/unittest_well_known_types.proto +0 -112
  156. package/sandbox/gapi/googleapis/google/protobuf/unknown_enum_test.proto +0 -62
  157. package/sandbox/gapi/googleapis/google/protobuf/wrappers.proto +0 -117
  158. package/sandbox/gapi/googleapis/google/rpc/code.proto +0 -190
  159. package/sandbox/gapi/googleapis/google/rpc/error_details.proto +0 -157
  160. package/sandbox/gapi/googleapis/google/rpc/status.proto +0 -90
  161. package/sandbox/gapi/googleapis/google/type/color.proto +0 -163
  162. package/sandbox/gapi/googleapis/google/type/date.proto +0 -43
  163. package/sandbox/gapi/googleapis/google/type/dayofweek.proto +0 -50
  164. package/sandbox/gapi/googleapis/google/type/latlng.proto +0 -36
  165. package/sandbox/gapi/googleapis/google/type/money.proto +0 -40
  166. package/sandbox/gapi/googleapis/google/type/timeofday.proto +0 -42
  167. package/sandbox/gapi/test.js +0 -17
  168. package/sandbox/gapi/test.proto +0 -12
  169. package/sandbox/issue146/MyOptions.proto +0 -28
  170. package/sandbox/issue146/Sample.proto +0 -21
  171. package/sandbox/issue146/main.js +0 -3
  172. package/sandbox/issue147/enum.proto +0 -8
  173. package/sandbox/issue147/main.js +0 -3
  174. package/sandbox/issue182/commands.proto +0 -10
  175. package/sandbox/issue182/execute.js +0 -22
  176. package/sandbox/issue182/session_commands.proto +0 -14
  177. package/sandbox/issue289/A.proto +0 -8
  178. package/sandbox/issue289/B.proto +0 -8
  179. package/sandbox/issue289/common.proto +0 -5
  180. package/sandbox/issue289/main.js +0 -7
  181. package/sandbox/issue300/IAuth.proto +0 -14
  182. package/sandbox/issue300/Request.proto +0 -14
  183. package/sandbox/issue300/main.js +0 -26
  184. package/sandbox/issue42/innerextend.proto +0 -18
  185. package/sandbox/issue42/main.js +0 -8
  186. package/sandbox/issue42/outerextend.proto +0 -17
  187. package/tests/gtfs-realtime.proto +0 -552
  188. package/webpack.config.js +0 -9
package/docs/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <title>JSDoc: Index</title>
5
+ <title>JSDoc: Home</title>
6
6
 
7
7
  <script src="scripts/prettify/prettify.js"> </script>
8
8
  <script src="scripts/prettify/lang-css.js"> </script>
@@ -17,11 +17,12 @@
17
17
 
18
18
  <div id="main">
19
19
 
20
- <h1 class="page-title">Index</h1>
20
+ <h1 class="page-title">Home</h1>
21
21
 
22
22
 
23
23
 
24
24
 
25
+
25
26
 
26
27
 
27
28
 
@@ -35,6 +36,7 @@
35
36
 
36
37
 
37
38
 
39
+
38
40
 
39
41
 
40
42
 
@@ -48,13 +50,13 @@
48
50
  </div>
49
51
 
50
52
  <nav>
51
- <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ProtoBuf.Builder.html">Builder</a></li><li><a href="ProtoBuf.Builder.Message.html">Message</a></li><li><a href="ProtoBuf.Builder.Service.html">Service</a></li><li><a href="ProtoBuf.DotProto.Parser.html">Parser</a></li><li><a href="ProtoBuf.DotProto.Tokenizer.html">Tokenizer</a></li><li><a href="ProtoBuf.Map.html">Map</a></li><li><a href="ProtoBuf.Reflect.Element.html">Element</a></li><li><a href="ProtoBuf.Reflect.Enum.html">Enum</a></li><li><a href="ProtoBuf.Reflect.Enum.Value.html">Value</a></li><li><a href="ProtoBuf.Reflect.Extension.html">Extension</a></li><li><a href="ProtoBuf.Reflect.Message.html">Message</a></li><li><a href="ProtoBuf.Reflect.Message.ExtensionField.html">ExtensionField</a></li><li><a href="ProtoBuf.Reflect.Message.Field.html">Field</a></li><li><a href="ProtoBuf.Reflect.Message.OneOf.html">OneOf</a></li><li><a href="ProtoBuf.Reflect.Namespace.html">Namespace</a></li><li><a href="ProtoBuf.Reflect.Service.html">Service</a></li><li><a href="ProtoBuf.Reflect.Service.Method.html">Method</a></li><li><a href="ProtoBuf.Reflect.Service.RPCMethod.html">RPCMethod</a></li><li><a href="ProtoBuf.Reflect.T.html">T</a></li></ul><h3>Namespaces</h3><ul><li><a href="ProtoBuf.html">ProtoBuf</a></li><li><a href="ProtoBuf.DotProto.html">DotProto</a></li><li><a href="ProtoBuf.Reflect.html">Reflect</a></li><li><a href="ProtoBuf.Util.html">Util</a></li></ul>
53
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ProtoBuf.Builder.html">Builder</a></li><li><a href="ProtoBuf.Builder.Message.html">Message</a></li><li><a href="ProtoBuf.Builder.Service.html">Service</a></li><li><a href="ProtoBuf.DotProto.Parser.html">Parser</a></li><li><a href="ProtoBuf.DotProto.Tokenizer.html">Tokenizer</a></li><li><a href="ProtoBuf.Map.html">Map</a></li><li><a href="ProtoBuf.Reflect.Element.html">Element</a></li><li><a href="ProtoBuf.Reflect.Enum.html">Enum</a></li><li><a href="ProtoBuf.Reflect.Enum.Value.html">Value</a></li><li><a href="ProtoBuf.Reflect.Extension.html">Extension</a></li><li><a href="ProtoBuf.Reflect.Message.html">Message</a></li><li><a href="ProtoBuf.Reflect.Message.ExtensionField.html">ExtensionField</a></li><li><a href="ProtoBuf.Reflect.Message.Field.html">Field</a></li><li><a href="ProtoBuf.Reflect.Message.OneOf.html">OneOf</a></li><li><a href="ProtoBuf.Reflect.Namespace.html">Namespace</a></li><li><a href="ProtoBuf.Reflect.Service.html">Service</a></li><li><a href="ProtoBuf.Reflect.Service.Method.html">Method</a></li><li><a href="ProtoBuf.Reflect.Service.RPCMethod.html">RPCMethod</a></li><li><a href="ProtoBuf.Reflect.T.html">T</a></li></ul><h3>Namespaces</h3><ul><li><a href="ProtoBuf.html">ProtoBuf</a></li><li><a href="ProtoBuf.DotProto.html">DotProto</a></li><li><a href="ProtoBuf.Reflect.html">Reflect</a></li><li><a href="ProtoBuf.Util.html">Util</a></li></ul>
52
54
  </nav>
53
55
 
54
- <br clear="both">
56
+ <br class="clear">
55
57
 
56
58
  <footer>
57
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on Wed Oct 14 2015 18:20:52 GMT+0200 (Mitteleuropäische Sommerzeit)
59
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.3</a> on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
58
60
  </footer>
59
61
 
60
62
  <script> prettyPrint(); </script>
@@ -1,57 +1,90 @@
1
+ @font-face {
2
+ font-family: 'Open Sans';
3
+ font-weight: normal;
4
+ font-style: normal;
5
+ src: url('../fonts/OpenSans-Regular-webfont.eot');
6
+ src:
7
+ local('Open Sans'),
8
+ local('OpenSans'),
9
+ url('../fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
10
+ url('../fonts/OpenSans-Regular-webfont.woff') format('woff'),
11
+ url('../fonts/OpenSans-Regular-webfont.svg#open_sansregular') format('svg');
12
+ }
13
+
14
+ @font-face {
15
+ font-family: 'Open Sans Light';
16
+ font-weight: normal;
17
+ font-style: normal;
18
+ src: url('../fonts/OpenSans-Light-webfont.eot');
19
+ src:
20
+ local('Open Sans Light'),
21
+ local('OpenSans Light'),
22
+ url('../fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
23
+ url('../fonts/OpenSans-Light-webfont.woff') format('woff'),
24
+ url('../fonts/OpenSans-Light-webfont.svg#open_sanslight') format('svg');
25
+ }
26
+
1
27
  html
2
28
  {
3
29
  overflow: auto;
4
30
  background-color: #fff;
31
+ font-size: 14px;
5
32
  }
6
33
 
7
34
  body
8
35
  {
9
- font: 14px "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
10
- line-height: 130%;
11
- color: #000;
12
- background-color: #fff;
36
+ font-family: 'Open Sans', sans-serif;
37
+ line-height: 1.5;
38
+ color: #4d4e53;
39
+ background-color: white;
13
40
  }
14
41
 
15
- a {
16
- color: #444;
17
- }
18
-
19
- a:visited {
20
- color: #444;
42
+ a, a:visited, a:active {
43
+ color: #0095dd;
44
+ text-decoration: none;
21
45
  }
22
46
 
23
- a:active {
24
- color: #444;
47
+ a:hover {
48
+ text-decoration: underline;
25
49
  }
26
50
 
27
51
  header
28
52
  {
29
53
  display: block;
30
- padding: 6px 4px;
54
+ padding: 0px 4px;
55
+ }
56
+
57
+ tt, code, kbd, samp {
58
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
31
59
  }
32
60
 
33
61
  .class-description {
34
- font-style: italic;
35
- font-family: Palatino, 'Palatino Linotype', serif;
36
62
  font-size: 130%;
37
63
  line-height: 140%;
38
64
  margin-bottom: 1em;
39
65
  margin-top: 1em;
40
66
  }
41
67
 
68
+ .class-description:empty {
69
+ margin: 0;
70
+ }
71
+
42
72
  #main {
43
73
  float: left;
44
- width: 100%;
74
+ width: 70%;
75
+ }
76
+
77
+ article dl {
78
+ margin-bottom: 40px;
45
79
  }
46
80
 
47
81
  section
48
82
  {
49
83
  display: block;
50
-
51
84
  background-color: #fff;
52
85
  padding: 12px 24px;
53
86
  border-bottom: 1px solid #ccc;
54
- margin-right: 240px;
87
+ margin-right: 30px;
55
88
  }
56
89
 
57
90
  .variation {
@@ -68,26 +101,27 @@ section
68
101
  nav
69
102
  {
70
103
  display: block;
71
- float: left;
72
- margin-left: -230px;
104
+ float: right;
73
105
  margin-top: 28px;
74
- width: 220px;
106
+ width: 30%;
107
+ box-sizing: border-box;
75
108
  border-left: 1px solid #ccc;
76
- padding-left: 9px;
109
+ padding-left: 16px;
77
110
  }
78
111
 
79
112
  nav ul {
80
113
  font-family: 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif;
81
114
  font-size: 100%;
82
115
  line-height: 17px;
83
- padding:0;
84
- margin:0;
85
- list-style-type:none;
116
+ padding: 0;
117
+ margin: 0;
118
+ list-style-type: none;
86
119
  }
87
120
 
88
- nav h2 a, nav h2 a:visited {
89
- color: #A35A00;
90
- text-decoration: none;
121
+ nav ul a, nav ul a:visited, nav ul a:active {
122
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
123
+ line-height: 18px;
124
+ color: #4D4E53;
91
125
  }
92
126
 
93
127
  nav h3 {
@@ -98,18 +132,6 @@ nav li {
98
132
  margin-top: 6px;
99
133
  }
100
134
 
101
- nav a {
102
- color: #5C5954;
103
- }
104
-
105
- nav a:visited {
106
- color: #5C5954;
107
- }
108
-
109
- nav a:active {
110
- color: #5C5954;
111
- }
112
-
113
135
  footer {
114
136
  display: block;
115
137
  padding: 6px;
@@ -118,39 +140,33 @@ footer {
118
140
  font-size: 90%;
119
141
  }
120
142
 
121
- h1
122
- {
123
- font-size: 200%;
124
- font-weight: bold;
125
- letter-spacing: -0.01em;
126
- margin: 6px 0 9px 0;
143
+ h1, h2, h3, h4 {
144
+ font-weight: 200;
145
+ margin: 0;
127
146
  }
128
147
 
129
- h2
148
+ h1
130
149
  {
131
- font-size: 170%;
132
- font-weight: bold;
133
- letter-spacing: -0.01em;
134
- margin: 6px 0 3px 0;
150
+ font-family: 'Open Sans Light', sans-serif;
151
+ font-size: 48px;
152
+ letter-spacing: -2px;
153
+ margin: 12px 24px 20px;
135
154
  }
136
155
 
137
- h3
156
+ h2, h3
138
157
  {
139
- font-size: 150%;
140
- font-weight: bold;
141
- letter-spacing: -0.01em;
142
- margin-top: 16px;
143
- margin: 6px 0 3px 0;
158
+ font-size: 30px;
159
+ font-weight: 700;
160
+ letter-spacing: -1px;
161
+ margin-bottom: 12px;
144
162
  }
145
163
 
146
164
  h4
147
165
  {
148
- font-size: 130%;
149
- font-weight: bold;
150
- letter-spacing: -0.01em;
151
- margin-top: 16px;
152
- margin: 18px 0 3px 0;
153
- color: #A35A00;
166
+ font-size: 18px;
167
+ letter-spacing: -0.33px;
168
+ margin-bottom: 12px;
169
+ color: #4d4e53;
154
170
  }
155
171
 
156
172
  h5, .container-overview .subsection-title
@@ -158,7 +174,7 @@ h5, .container-overview .subsection-title
158
174
  font-size: 120%;
159
175
  font-weight: bold;
160
176
  letter-spacing: -0.01em;
161
- margin: 8px 0 3px -16px;
177
+ margin: 8px 0 3px 0;
162
178
  }
163
179
 
164
180
  h6
@@ -176,6 +192,11 @@ h6
176
192
  text-decoration: none;
177
193
  }
178
194
 
195
+ .clear
196
+ {
197
+ clear: both;
198
+ }
199
+
179
200
  .important
180
201
  {
181
202
  font-weight: bold;
@@ -191,12 +212,12 @@ h6
191
212
  }
192
213
 
193
214
  .name, .signature {
194
- font-family: Consolas, "Lucida Console", Monaco, monospace;
215
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
195
216
  }
196
217
 
197
218
  .details { margin-top: 14px; border-left: 2px solid #DDD; }
198
- .details dt { width:100px; float:left; padding-left: 10px; padding-top: 6px; }
199
- .details dd { margin-left: 50px; }
219
+ .details dt { width: 120px; float: left; padding-left: 10px; padding-top: 6px; }
220
+ .details dd { margin-left: 70px; }
200
221
  .details ul { margin: 0; }
201
222
  .details ul { list-style-type: none; }
202
223
  .details li { margin-left: 30px; padding-top: 6px; }
@@ -205,14 +226,12 @@ h6
205
226
 
206
227
  .description {
207
228
  margin-bottom: 1em;
208
- margin-left: -16px;
209
229
  margin-top: 1em;
210
230
  }
211
231
 
212
232
  .code-caption
213
233
  {
214
234
  font-style: italic;
215
- font-family: Palatino, 'Palatino Linotype', serif;
216
235
  font-size: 107%;
217
236
  margin: 0;
218
237
  }
@@ -230,14 +249,13 @@ h6
230
249
 
231
250
  .prettyprint code
232
251
  {
233
- font-family: Consolas, 'Lucida Console', Monaco, monospace;
234
252
  font-size: 100%;
235
253
  line-height: 18px;
236
254
  display: block;
237
255
  padding: 4px 12px;
238
256
  margin: 0;
239
257
  background-color: #fff;
240
- color: #000;
258
+ color: #4D4E53;
241
259
  }
242
260
 
243
261
  .prettyprint code span.line
@@ -286,8 +304,8 @@ h6
286
304
  }
287
305
 
288
306
  .params .name, .props .name, .name code {
289
- color: #A35A00;
290
- font-family: Consolas, 'Lucida Console', Monaco, monospace;
307
+ color: #4D4E53;
308
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
291
309
  font-size: 100%;
292
310
  }
293
311
 
@@ -316,13 +334,15 @@ h6
316
334
  .params th, .props th { border-right: 1px solid #aaa; }
317
335
  .params thead .last, .props thead .last { border-right: 1px solid #ddd; }
318
336
 
319
- .params td.description > p:first-child
337
+ .params td.description > p:first-child,
338
+ .props td.description > p:first-child
320
339
  {
321
340
  margin-top: 0;
322
341
  padding-top: 0;
323
342
  }
324
343
 
325
- .params td.description > p:last-child
344
+ .params td.description > p:last-child,
345
+ .props td.description > p:last-child
326
346
  {
327
347
  margin-bottom: 0;
328
348
  padding-bottom: 0;
@@ -98,7 +98,7 @@
98
98
  /*
99
99
  pre.prettyprint {
100
100
  background: white;
101
- font-family: Menlo, Monaco, Consolas, monospace;
101
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
102
102
  font-size: 12px;
103
103
  line-height: 1.5;
104
104
  border: 1px solid #ccc;
package/donate.png ADDED
Binary file
@@ -1,123 +1,123 @@
1
- module.exports = require("protobufjs").newBuilder({})["import"]({
2
- "package": "js",
3
- "messages": [
4
- {
5
- "name": "Value",
6
- "fields": [
7
- {
8
- "rule": "optional",
9
- "options": {},
10
- "type": "sint32",
11
- "name": "integer",
12
- "id": 1,
13
- "oneof": "type"
14
- },
15
- {
16
- "rule": "optional",
17
- "options": {},
18
- "type": "double",
19
- "name": "double",
20
- "id": 2,
21
- "oneof": "type"
22
- },
23
- {
24
- "rule": "optional",
25
- "options": {},
26
- "type": "string",
27
- "name": "string",
28
- "id": 3,
29
- "oneof": "type"
30
- },
31
- {
32
- "rule": "optional",
33
- "options": {},
34
- "type": "bool",
35
- "name": "boolean",
36
- "id": 4,
37
- "oneof": "type"
38
- },
39
- {
40
- "rule": "optional",
41
- "options": {},
42
- "type": "bool",
43
- "name": "null",
44
- "id": 5,
45
- "oneof": "type"
46
- },
47
- {
48
- "rule": "optional",
49
- "options": {},
50
- "type": "Array",
51
- "name": "array",
52
- "id": 6,
53
- "oneof": "type"
54
- },
55
- {
56
- "rule": "optional",
57
- "options": {},
58
- "type": "Object",
59
- "name": "object",
60
- "id": 7,
61
- "oneof": "type"
62
- }
63
- ],
64
- "enums": [],
65
- "messages": [],
66
- "options": {},
67
- "oneofs": {
68
- "type": [
69
- 1,
70
- 2,
71
- 3,
72
- 4,
73
- 5,
74
- 6,
75
- 7
76
- ]
77
- }
78
- },
79
- {
80
- "name": "Array",
81
- "fields": [
82
- {
83
- "rule": "repeated",
84
- "options": {},
85
- "type": "Value",
86
- "name": "values",
87
- "id": 1
88
- }
89
- ],
90
- "enums": [],
91
- "messages": [],
92
- "options": {},
93
- "oneofs": {}
94
- },
95
- {
96
- "name": "Object",
97
- "fields": [
98
- {
99
- "rule": "repeated",
100
- "options": {},
101
- "type": "Value",
102
- "name": "keys",
103
- "id": 1
104
- },
105
- {
106
- "rule": "repeated",
107
- "options": {},
108
- "type": "Value",
109
- "name": "values",
110
- "id": 2
111
- }
112
- ],
113
- "enums": [],
114
- "messages": [],
115
- "options": {},
116
- "oneofs": {}
117
- }
118
- ],
119
- "enums": [],
120
- "imports": [],
121
- "options": {},
122
- "services": []
123
- }).build("js");
1
+ module.exports = require("protobufjs").newBuilder({})["import"]({
2
+ "package": "js",
3
+ "messages": [
4
+ {
5
+ "name": "Value",
6
+ "fields": [
7
+ {
8
+ "rule": "optional",
9
+ "options": {},
10
+ "type": "sint32",
11
+ "name": "integer",
12
+ "id": 1,
13
+ "oneof": "type"
14
+ },
15
+ {
16
+ "rule": "optional",
17
+ "options": {},
18
+ "type": "double",
19
+ "name": "double",
20
+ "id": 2,
21
+ "oneof": "type"
22
+ },
23
+ {
24
+ "rule": "optional",
25
+ "options": {},
26
+ "type": "string",
27
+ "name": "string",
28
+ "id": 3,
29
+ "oneof": "type"
30
+ },
31
+ {
32
+ "rule": "optional",
33
+ "options": {},
34
+ "type": "bool",
35
+ "name": "boolean",
36
+ "id": 4,
37
+ "oneof": "type"
38
+ },
39
+ {
40
+ "rule": "optional",
41
+ "options": {},
42
+ "type": "bool",
43
+ "name": "null",
44
+ "id": 5,
45
+ "oneof": "type"
46
+ },
47
+ {
48
+ "rule": "optional",
49
+ "options": {},
50
+ "type": "Array",
51
+ "name": "array",
52
+ "id": 6,
53
+ "oneof": "type"
54
+ },
55
+ {
56
+ "rule": "optional",
57
+ "options": {},
58
+ "type": "Object",
59
+ "name": "object",
60
+ "id": 7,
61
+ "oneof": "type"
62
+ }
63
+ ],
64
+ "enums": [],
65
+ "messages": [],
66
+ "options": {},
67
+ "oneofs": {
68
+ "type": [
69
+ 1,
70
+ 2,
71
+ 3,
72
+ 4,
73
+ 5,
74
+ 6,
75
+ 7
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "name": "Array",
81
+ "fields": [
82
+ {
83
+ "rule": "repeated",
84
+ "options": {},
85
+ "type": "Value",
86
+ "name": "values",
87
+ "id": 1
88
+ }
89
+ ],
90
+ "enums": [],
91
+ "messages": [],
92
+ "options": {},
93
+ "oneofs": {}
94
+ },
95
+ {
96
+ "name": "Object",
97
+ "fields": [
98
+ {
99
+ "rule": "repeated",
100
+ "options": {},
101
+ "type": "Value",
102
+ "name": "keys",
103
+ "id": 1
104
+ },
105
+ {
106
+ "rule": "repeated",
107
+ "options": {},
108
+ "type": "Value",
109
+ "name": "values",
110
+ "id": 2
111
+ }
112
+ ],
113
+ "enums": [],
114
+ "messages": [],
115
+ "options": {},
116
+ "oneofs": {}
117
+ }
118
+ ],
119
+ "enums": [],
120
+ "imports": [],
121
+ "options": {},
122
+ "services": []
123
+ }).build("js");