@depup/apollo__protobufjs 1.2.7-depup.0

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 (113) hide show
  1. package/LICENSE +39 -0
  2. package/README.md +32 -0
  3. package/bin/pbjs +6 -0
  4. package/bin/pbts +6 -0
  5. package/changes.json +14 -0
  6. package/cli/LICENSE +33 -0
  7. package/cli/README.md +11 -0
  8. package/cli/bin/pbjs +6 -0
  9. package/cli/bin/pbts +6 -0
  10. package/cli/index.d.ts +3 -0
  11. package/cli/index.js +3 -0
  12. package/cli/lib/tsd-jsdoc/LICENSE +21 -0
  13. package/cli/lib/tsd-jsdoc/README.md +23 -0
  14. package/cli/lib/tsd-jsdoc/plugin.js +21 -0
  15. package/cli/lib/tsd-jsdoc/publish.js +693 -0
  16. package/cli/lib/tsd-jsdoc.json +18 -0
  17. package/cli/package.json +7 -0
  18. package/cli/package.standalone.json +32 -0
  19. package/cli/pbjs.d.ts +9 -0
  20. package/cli/pbjs.js +331 -0
  21. package/cli/pbts.d.ts +9 -0
  22. package/cli/pbts.js +198 -0
  23. package/cli/targets/json-module.js +38 -0
  24. package/cli/targets/json.js +8 -0
  25. package/cli/targets/proto.js +326 -0
  26. package/cli/targets/proto2.js +10 -0
  27. package/cli/targets/proto3.js +10 -0
  28. package/cli/targets/static-module.js +29 -0
  29. package/cli/targets/static.js +709 -0
  30. package/cli/util.js +183 -0
  31. package/cli/wrappers/amd.js +7 -0
  32. package/cli/wrappers/closure.js +7 -0
  33. package/cli/wrappers/commonjs.js +7 -0
  34. package/cli/wrappers/default.js +15 -0
  35. package/cli/wrappers/es6.js +5 -0
  36. package/dist/README.md +31 -0
  37. package/dist/light/README.md +31 -0
  38. package/dist/light/protobuf.js +7198 -0
  39. package/dist/light/protobuf.js.map +1 -0
  40. package/dist/light/protobuf.min.js +7 -0
  41. package/dist/light/protobuf.min.js.map +1 -0
  42. package/dist/minimal/README.md +31 -0
  43. package/dist/minimal/protobuf.js +2675 -0
  44. package/dist/minimal/protobuf.js.map +1 -0
  45. package/dist/minimal/protobuf.min.js +7 -0
  46. package/dist/minimal/protobuf.min.js.map +1 -0
  47. package/dist/protobuf.js +8775 -0
  48. package/dist/protobuf.js.map +1 -0
  49. package/dist/protobuf.min.js +7 -0
  50. package/dist/protobuf.min.js.map +1 -0
  51. package/ext/debug/README.md +4 -0
  52. package/ext/debug/index.js +71 -0
  53. package/ext/descriptor/README.md +72 -0
  54. package/ext/descriptor/index.d.ts +191 -0
  55. package/ext/descriptor/index.js +1052 -0
  56. package/ext/descriptor/test.js +54 -0
  57. package/google/LICENSE +27 -0
  58. package/google/README.md +1 -0
  59. package/google/api/annotations.json +83 -0
  60. package/google/api/annotations.proto +11 -0
  61. package/google/api/http.json +86 -0
  62. package/google/api/http.proto +31 -0
  63. package/google/protobuf/api.json +118 -0
  64. package/google/protobuf/api.proto +34 -0
  65. package/google/protobuf/descriptor.json +739 -0
  66. package/google/protobuf/descriptor.proto +286 -0
  67. package/google/protobuf/source_context.json +20 -0
  68. package/google/protobuf/source_context.proto +7 -0
  69. package/google/protobuf/type.json +202 -0
  70. package/google/protobuf/type.proto +89 -0
  71. package/index.d.ts +2628 -0
  72. package/index.js +4 -0
  73. package/light.d.ts +2 -0
  74. package/light.js +4 -0
  75. package/minimal.d.ts +2 -0
  76. package/minimal.js +4 -0
  77. package/package.json +147 -0
  78. package/scripts/postinstall.js +35 -0
  79. package/src/common.js +399 -0
  80. package/src/converter.js +304 -0
  81. package/src/decoder.js +106 -0
  82. package/src/encoder.js +119 -0
  83. package/src/enum.js +181 -0
  84. package/src/field.js +379 -0
  85. package/src/index-light.js +104 -0
  86. package/src/index-minimal.js +36 -0
  87. package/src/index.js +12 -0
  88. package/src/mapfield.js +126 -0
  89. package/src/message.js +139 -0
  90. package/src/method.js +151 -0
  91. package/src/namespace.js +433 -0
  92. package/src/object.js +200 -0
  93. package/src/oneof.js +203 -0
  94. package/src/parse.js +761 -0
  95. package/src/reader.js +405 -0
  96. package/src/reader_buffer.js +44 -0
  97. package/src/root.js +353 -0
  98. package/src/roots.js +18 -0
  99. package/src/rpc/service.js +142 -0
  100. package/src/rpc.js +36 -0
  101. package/src/service.js +167 -0
  102. package/src/tokenize.js +397 -0
  103. package/src/type.js +589 -0
  104. package/src/types.js +196 -0
  105. package/src/typescript.jsdoc +22 -0
  106. package/src/util/longbits.js +200 -0
  107. package/src/util/minimal.js +406 -0
  108. package/src/util.js +178 -0
  109. package/src/verifier.js +191 -0
  110. package/src/wrappers.js +83 -0
  111. package/src/writer.js +459 -0
  112. package/src/writer_buffer.js +81 -0
  113. package/tsconfig.json +7 -0
@@ -0,0 +1,739 @@
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "protobuf": {
6
+ "nested": {
7
+ "FileDescriptorSet": {
8
+ "fields": {
9
+ "file": {
10
+ "rule": "repeated",
11
+ "type": "FileDescriptorProto",
12
+ "id": 1
13
+ }
14
+ }
15
+ },
16
+ "FileDescriptorProto": {
17
+ "fields": {
18
+ "name": {
19
+ "type": "string",
20
+ "id": 1
21
+ },
22
+ "package": {
23
+ "type": "string",
24
+ "id": 2
25
+ },
26
+ "dependency": {
27
+ "rule": "repeated",
28
+ "type": "string",
29
+ "id": 3
30
+ },
31
+ "publicDependency": {
32
+ "rule": "repeated",
33
+ "type": "int32",
34
+ "id": 10,
35
+ "options": {
36
+ "packed": false
37
+ }
38
+ },
39
+ "weakDependency": {
40
+ "rule": "repeated",
41
+ "type": "int32",
42
+ "id": 11,
43
+ "options": {
44
+ "packed": false
45
+ }
46
+ },
47
+ "messageType": {
48
+ "rule": "repeated",
49
+ "type": "DescriptorProto",
50
+ "id": 4
51
+ },
52
+ "enumType": {
53
+ "rule": "repeated",
54
+ "type": "EnumDescriptorProto",
55
+ "id": 5
56
+ },
57
+ "service": {
58
+ "rule": "repeated",
59
+ "type": "ServiceDescriptorProto",
60
+ "id": 6
61
+ },
62
+ "extension": {
63
+ "rule": "repeated",
64
+ "type": "FieldDescriptorProto",
65
+ "id": 7
66
+ },
67
+ "options": {
68
+ "type": "FileOptions",
69
+ "id": 8
70
+ },
71
+ "sourceCodeInfo": {
72
+ "type": "SourceCodeInfo",
73
+ "id": 9
74
+ },
75
+ "syntax": {
76
+ "type": "string",
77
+ "id": 12
78
+ }
79
+ }
80
+ },
81
+ "DescriptorProto": {
82
+ "fields": {
83
+ "name": {
84
+ "type": "string",
85
+ "id": 1
86
+ },
87
+ "field": {
88
+ "rule": "repeated",
89
+ "type": "FieldDescriptorProto",
90
+ "id": 2
91
+ },
92
+ "extension": {
93
+ "rule": "repeated",
94
+ "type": "FieldDescriptorProto",
95
+ "id": 6
96
+ },
97
+ "nestedType": {
98
+ "rule": "repeated",
99
+ "type": "DescriptorProto",
100
+ "id": 3
101
+ },
102
+ "enumType": {
103
+ "rule": "repeated",
104
+ "type": "EnumDescriptorProto",
105
+ "id": 4
106
+ },
107
+ "extensionRange": {
108
+ "rule": "repeated",
109
+ "type": "ExtensionRange",
110
+ "id": 5
111
+ },
112
+ "oneofDecl": {
113
+ "rule": "repeated",
114
+ "type": "OneofDescriptorProto",
115
+ "id": 8
116
+ },
117
+ "options": {
118
+ "type": "MessageOptions",
119
+ "id": 7
120
+ },
121
+ "reservedRange": {
122
+ "rule": "repeated",
123
+ "type": "ReservedRange",
124
+ "id": 9
125
+ },
126
+ "reservedName": {
127
+ "rule": "repeated",
128
+ "type": "string",
129
+ "id": 10
130
+ }
131
+ },
132
+ "nested": {
133
+ "ExtensionRange": {
134
+ "fields": {
135
+ "start": {
136
+ "type": "int32",
137
+ "id": 1
138
+ },
139
+ "end": {
140
+ "type": "int32",
141
+ "id": 2
142
+ }
143
+ }
144
+ },
145
+ "ReservedRange": {
146
+ "fields": {
147
+ "start": {
148
+ "type": "int32",
149
+ "id": 1
150
+ },
151
+ "end": {
152
+ "type": "int32",
153
+ "id": 2
154
+ }
155
+ }
156
+ }
157
+ }
158
+ },
159
+ "FieldDescriptorProto": {
160
+ "fields": {
161
+ "name": {
162
+ "type": "string",
163
+ "id": 1
164
+ },
165
+ "number": {
166
+ "type": "int32",
167
+ "id": 3
168
+ },
169
+ "label": {
170
+ "type": "Label",
171
+ "id": 4
172
+ },
173
+ "type": {
174
+ "type": "Type",
175
+ "id": 5
176
+ },
177
+ "typeName": {
178
+ "type": "string",
179
+ "id": 6
180
+ },
181
+ "extendee": {
182
+ "type": "string",
183
+ "id": 2
184
+ },
185
+ "defaultValue": {
186
+ "type": "string",
187
+ "id": 7
188
+ },
189
+ "oneofIndex": {
190
+ "type": "int32",
191
+ "id": 9
192
+ },
193
+ "jsonName": {
194
+ "type": "string",
195
+ "id": 10
196
+ },
197
+ "options": {
198
+ "type": "FieldOptions",
199
+ "id": 8
200
+ }
201
+ },
202
+ "nested": {
203
+ "Type": {
204
+ "values": {
205
+ "TYPE_DOUBLE": 1,
206
+ "TYPE_FLOAT": 2,
207
+ "TYPE_INT64": 3,
208
+ "TYPE_UINT64": 4,
209
+ "TYPE_INT32": 5,
210
+ "TYPE_FIXED64": 6,
211
+ "TYPE_FIXED32": 7,
212
+ "TYPE_BOOL": 8,
213
+ "TYPE_STRING": 9,
214
+ "TYPE_GROUP": 10,
215
+ "TYPE_MESSAGE": 11,
216
+ "TYPE_BYTES": 12,
217
+ "TYPE_UINT32": 13,
218
+ "TYPE_ENUM": 14,
219
+ "TYPE_SFIXED32": 15,
220
+ "TYPE_SFIXED64": 16,
221
+ "TYPE_SINT32": 17,
222
+ "TYPE_SINT64": 18
223
+ }
224
+ },
225
+ "Label": {
226
+ "values": {
227
+ "LABEL_OPTIONAL": 1,
228
+ "LABEL_REQUIRED": 2,
229
+ "LABEL_REPEATED": 3
230
+ }
231
+ }
232
+ }
233
+ },
234
+ "OneofDescriptorProto": {
235
+ "fields": {
236
+ "name": {
237
+ "type": "string",
238
+ "id": 1
239
+ },
240
+ "options": {
241
+ "type": "OneofOptions",
242
+ "id": 2
243
+ }
244
+ }
245
+ },
246
+ "EnumDescriptorProto": {
247
+ "fields": {
248
+ "name": {
249
+ "type": "string",
250
+ "id": 1
251
+ },
252
+ "value": {
253
+ "rule": "repeated",
254
+ "type": "EnumValueDescriptorProto",
255
+ "id": 2
256
+ },
257
+ "options": {
258
+ "type": "EnumOptions",
259
+ "id": 3
260
+ }
261
+ }
262
+ },
263
+ "EnumValueDescriptorProto": {
264
+ "fields": {
265
+ "name": {
266
+ "type": "string",
267
+ "id": 1
268
+ },
269
+ "number": {
270
+ "type": "int32",
271
+ "id": 2
272
+ },
273
+ "options": {
274
+ "type": "EnumValueOptions",
275
+ "id": 3
276
+ }
277
+ }
278
+ },
279
+ "ServiceDescriptorProto": {
280
+ "fields": {
281
+ "name": {
282
+ "type": "string",
283
+ "id": 1
284
+ },
285
+ "method": {
286
+ "rule": "repeated",
287
+ "type": "MethodDescriptorProto",
288
+ "id": 2
289
+ },
290
+ "options": {
291
+ "type": "ServiceOptions",
292
+ "id": 3
293
+ }
294
+ }
295
+ },
296
+ "MethodDescriptorProto": {
297
+ "fields": {
298
+ "name": {
299
+ "type": "string",
300
+ "id": 1
301
+ },
302
+ "inputType": {
303
+ "type": "string",
304
+ "id": 2
305
+ },
306
+ "outputType": {
307
+ "type": "string",
308
+ "id": 3
309
+ },
310
+ "options": {
311
+ "type": "MethodOptions",
312
+ "id": 4
313
+ },
314
+ "clientStreaming": {
315
+ "type": "bool",
316
+ "id": 5
317
+ },
318
+ "serverStreaming": {
319
+ "type": "bool",
320
+ "id": 6
321
+ }
322
+ }
323
+ },
324
+ "FileOptions": {
325
+ "fields": {
326
+ "javaPackage": {
327
+ "type": "string",
328
+ "id": 1
329
+ },
330
+ "javaOuterClassname": {
331
+ "type": "string",
332
+ "id": 8
333
+ },
334
+ "javaMultipleFiles": {
335
+ "type": "bool",
336
+ "id": 10
337
+ },
338
+ "javaGenerateEqualsAndHash": {
339
+ "type": "bool",
340
+ "id": 20,
341
+ "options": {
342
+ "deprecated": true
343
+ }
344
+ },
345
+ "javaStringCheckUtf8": {
346
+ "type": "bool",
347
+ "id": 27
348
+ },
349
+ "optimizeFor": {
350
+ "type": "OptimizeMode",
351
+ "id": 9,
352
+ "options": {
353
+ "default": "SPEED"
354
+ }
355
+ },
356
+ "goPackage": {
357
+ "type": "string",
358
+ "id": 11
359
+ },
360
+ "ccGenericServices": {
361
+ "type": "bool",
362
+ "id": 16
363
+ },
364
+ "javaGenericServices": {
365
+ "type": "bool",
366
+ "id": 17
367
+ },
368
+ "pyGenericServices": {
369
+ "type": "bool",
370
+ "id": 18
371
+ },
372
+ "deprecated": {
373
+ "type": "bool",
374
+ "id": 23
375
+ },
376
+ "ccEnableArenas": {
377
+ "type": "bool",
378
+ "id": 31
379
+ },
380
+ "objcClassPrefix": {
381
+ "type": "string",
382
+ "id": 36
383
+ },
384
+ "csharpNamespace": {
385
+ "type": "string",
386
+ "id": 37
387
+ },
388
+ "uninterpretedOption": {
389
+ "rule": "repeated",
390
+ "type": "UninterpretedOption",
391
+ "id": 999
392
+ }
393
+ },
394
+ "extensions": [
395
+ [
396
+ 1000,
397
+ 536870911
398
+ ]
399
+ ],
400
+ "reserved": [
401
+ [
402
+ 38,
403
+ 38
404
+ ]
405
+ ],
406
+ "nested": {
407
+ "OptimizeMode": {
408
+ "values": {
409
+ "SPEED": 1,
410
+ "CODE_SIZE": 2,
411
+ "LITE_RUNTIME": 3
412
+ }
413
+ }
414
+ }
415
+ },
416
+ "MessageOptions": {
417
+ "fields": {
418
+ "messageSetWireFormat": {
419
+ "type": "bool",
420
+ "id": 1
421
+ },
422
+ "noStandardDescriptorAccessor": {
423
+ "type": "bool",
424
+ "id": 2
425
+ },
426
+ "deprecated": {
427
+ "type": "bool",
428
+ "id": 3
429
+ },
430
+ "mapEntry": {
431
+ "type": "bool",
432
+ "id": 7
433
+ },
434
+ "uninterpretedOption": {
435
+ "rule": "repeated",
436
+ "type": "UninterpretedOption",
437
+ "id": 999
438
+ }
439
+ },
440
+ "extensions": [
441
+ [
442
+ 1000,
443
+ 536870911
444
+ ]
445
+ ],
446
+ "reserved": [
447
+ [
448
+ 8,
449
+ 8
450
+ ]
451
+ ]
452
+ },
453
+ "FieldOptions": {
454
+ "fields": {
455
+ "ctype": {
456
+ "type": "CType",
457
+ "id": 1,
458
+ "options": {
459
+ "default": "STRING"
460
+ }
461
+ },
462
+ "packed": {
463
+ "type": "bool",
464
+ "id": 2
465
+ },
466
+ "jstype": {
467
+ "type": "JSType",
468
+ "id": 6,
469
+ "options": {
470
+ "default": "JS_NORMAL"
471
+ }
472
+ },
473
+ "lazy": {
474
+ "type": "bool",
475
+ "id": 5
476
+ },
477
+ "deprecated": {
478
+ "type": "bool",
479
+ "id": 3
480
+ },
481
+ "weak": {
482
+ "type": "bool",
483
+ "id": 10
484
+ },
485
+ "uninterpretedOption": {
486
+ "rule": "repeated",
487
+ "type": "UninterpretedOption",
488
+ "id": 999
489
+ }
490
+ },
491
+ "extensions": [
492
+ [
493
+ 1000,
494
+ 536870911
495
+ ]
496
+ ],
497
+ "reserved": [
498
+ [
499
+ 4,
500
+ 4
501
+ ]
502
+ ],
503
+ "nested": {
504
+ "CType": {
505
+ "values": {
506
+ "STRING": 0,
507
+ "CORD": 1,
508
+ "STRING_PIECE": 2
509
+ }
510
+ },
511
+ "JSType": {
512
+ "values": {
513
+ "JS_NORMAL": 0,
514
+ "JS_STRING": 1,
515
+ "JS_NUMBER": 2
516
+ }
517
+ }
518
+ }
519
+ },
520
+ "OneofOptions": {
521
+ "fields": {
522
+ "uninterpretedOption": {
523
+ "rule": "repeated",
524
+ "type": "UninterpretedOption",
525
+ "id": 999
526
+ }
527
+ },
528
+ "extensions": [
529
+ [
530
+ 1000,
531
+ 536870911
532
+ ]
533
+ ]
534
+ },
535
+ "EnumOptions": {
536
+ "fields": {
537
+ "allowAlias": {
538
+ "type": "bool",
539
+ "id": 2
540
+ },
541
+ "deprecated": {
542
+ "type": "bool",
543
+ "id": 3
544
+ },
545
+ "uninterpretedOption": {
546
+ "rule": "repeated",
547
+ "type": "UninterpretedOption",
548
+ "id": 999
549
+ }
550
+ },
551
+ "extensions": [
552
+ [
553
+ 1000,
554
+ 536870911
555
+ ]
556
+ ]
557
+ },
558
+ "EnumValueOptions": {
559
+ "fields": {
560
+ "deprecated": {
561
+ "type": "bool",
562
+ "id": 1
563
+ },
564
+ "uninterpretedOption": {
565
+ "rule": "repeated",
566
+ "type": "UninterpretedOption",
567
+ "id": 999
568
+ }
569
+ },
570
+ "extensions": [
571
+ [
572
+ 1000,
573
+ 536870911
574
+ ]
575
+ ]
576
+ },
577
+ "ServiceOptions": {
578
+ "fields": {
579
+ "deprecated": {
580
+ "type": "bool",
581
+ "id": 33
582
+ },
583
+ "uninterpretedOption": {
584
+ "rule": "repeated",
585
+ "type": "UninterpretedOption",
586
+ "id": 999
587
+ }
588
+ },
589
+ "extensions": [
590
+ [
591
+ 1000,
592
+ 536870911
593
+ ]
594
+ ]
595
+ },
596
+ "MethodOptions": {
597
+ "fields": {
598
+ "deprecated": {
599
+ "type": "bool",
600
+ "id": 33
601
+ },
602
+ "uninterpretedOption": {
603
+ "rule": "repeated",
604
+ "type": "UninterpretedOption",
605
+ "id": 999
606
+ }
607
+ },
608
+ "extensions": [
609
+ [
610
+ 1000,
611
+ 536870911
612
+ ]
613
+ ]
614
+ },
615
+ "UninterpretedOption": {
616
+ "fields": {
617
+ "name": {
618
+ "rule": "repeated",
619
+ "type": "NamePart",
620
+ "id": 2
621
+ },
622
+ "identifierValue": {
623
+ "type": "string",
624
+ "id": 3
625
+ },
626
+ "positiveIntValue": {
627
+ "type": "uint64",
628
+ "id": 4
629
+ },
630
+ "negativeIntValue": {
631
+ "type": "int64",
632
+ "id": 5
633
+ },
634
+ "doubleValue": {
635
+ "type": "double",
636
+ "id": 6
637
+ },
638
+ "stringValue": {
639
+ "type": "bytes",
640
+ "id": 7
641
+ },
642
+ "aggregateValue": {
643
+ "type": "string",
644
+ "id": 8
645
+ }
646
+ },
647
+ "nested": {
648
+ "NamePart": {
649
+ "fields": {
650
+ "namePart": {
651
+ "rule": "required",
652
+ "type": "string",
653
+ "id": 1
654
+ },
655
+ "isExtension": {
656
+ "rule": "required",
657
+ "type": "bool",
658
+ "id": 2
659
+ }
660
+ }
661
+ }
662
+ }
663
+ },
664
+ "SourceCodeInfo": {
665
+ "fields": {
666
+ "location": {
667
+ "rule": "repeated",
668
+ "type": "Location",
669
+ "id": 1
670
+ }
671
+ },
672
+ "nested": {
673
+ "Location": {
674
+ "fields": {
675
+ "path": {
676
+ "rule": "repeated",
677
+ "type": "int32",
678
+ "id": 1
679
+ },
680
+ "span": {
681
+ "rule": "repeated",
682
+ "type": "int32",
683
+ "id": 2
684
+ },
685
+ "leadingComments": {
686
+ "type": "string",
687
+ "id": 3
688
+ },
689
+ "trailingComments": {
690
+ "type": "string",
691
+ "id": 4
692
+ },
693
+ "leadingDetachedComments": {
694
+ "rule": "repeated",
695
+ "type": "string",
696
+ "id": 6
697
+ }
698
+ }
699
+ }
700
+ }
701
+ },
702
+ "GeneratedCodeInfo": {
703
+ "fields": {
704
+ "annotation": {
705
+ "rule": "repeated",
706
+ "type": "Annotation",
707
+ "id": 1
708
+ }
709
+ },
710
+ "nested": {
711
+ "Annotation": {
712
+ "fields": {
713
+ "path": {
714
+ "rule": "repeated",
715
+ "type": "int32",
716
+ "id": 1
717
+ },
718
+ "sourceFile": {
719
+ "type": "string",
720
+ "id": 2
721
+ },
722
+ "begin": {
723
+ "type": "int32",
724
+ "id": 3
725
+ },
726
+ "end": {
727
+ "type": "int32",
728
+ "id": 4
729
+ }
730
+ }
731
+ }
732
+ }
733
+ }
734
+ }
735
+ }
736
+ }
737
+ }
738
+ }
739
+ }