protobufjs 8.6.0 → 8.6.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 (108) hide show
  1. package/LICENSE +39 -39
  2. package/README.md +441 -441
  3. package/dist/light/protobuf.js +8473 -8516
  4. package/dist/light/protobuf.js.map +1 -1
  5. package/dist/light/protobuf.min.js +3 -3
  6. package/dist/light/protobuf.min.js.map +1 -1
  7. package/dist/minimal/protobuf.js +3018 -3061
  8. package/dist/minimal/protobuf.js.map +1 -1
  9. package/dist/minimal/protobuf.min.js +3 -3
  10. package/dist/minimal/protobuf.min.js.map +1 -1
  11. package/dist/protobuf.js +10376 -10419
  12. package/dist/protobuf.js.map +1 -1
  13. package/dist/protobuf.min.js +3 -3
  14. package/dist/protobuf.min.js.map +1 -1
  15. package/ext/README.md +70 -70
  16. package/ext/debug/README.md +4 -4
  17. package/ext/debug/index.js +71 -71
  18. package/ext/descriptor/README.md +5 -5
  19. package/ext/descriptor/index.d.ts +2 -2
  20. package/ext/descriptor/index.js +2 -2
  21. package/ext/descriptor.d.ts +87 -86
  22. package/ext/descriptor.generated.d.ts +14 -6
  23. package/ext/descriptor.js +1354 -1303
  24. package/ext/protojson.LICENSE +201 -201
  25. package/ext/protojson.d.ts +20 -20
  26. package/ext/protojson.js +925 -903
  27. package/ext/textformat.d.ts +19 -19
  28. package/ext/textformat.js +1256 -1256
  29. package/google/LICENSE +27 -27
  30. package/google/README.md +1 -1
  31. package/google/api/annotations.json +82 -82
  32. package/google/api/annotations.proto +10 -10
  33. package/google/api/http.json +85 -85
  34. package/google/api/http.proto +30 -30
  35. package/google/protobuf/api.json +117 -117
  36. package/google/protobuf/api.proto +33 -33
  37. package/google/protobuf/compiler/plugin.json +126 -126
  38. package/google/protobuf/compiler/plugin.proto +47 -47
  39. package/google/protobuf/descriptor.json +1381 -1381
  40. package/google/protobuf/descriptor.proto +534 -534
  41. package/google/protobuf/source_context.json +19 -19
  42. package/google/protobuf/source_context.proto +7 -7
  43. package/google/protobuf/type.json +201 -201
  44. package/google/protobuf/type.proto +89 -89
  45. package/index.d.ts +10 -18
  46. package/index.js +4 -4
  47. package/light.d.ts +2 -2
  48. package/light.js +3 -3
  49. package/minimal.d.ts +2 -2
  50. package/minimal.js +4 -4
  51. package/package.json +93 -93
  52. package/src/common.js +399 -399
  53. package/src/converter.js +344 -344
  54. package/src/decoder.js +208 -208
  55. package/src/encoder.js +111 -111
  56. package/src/enum.js +231 -231
  57. package/src/field.js +497 -497
  58. package/src/index-light.js +104 -104
  59. package/src/index-minimal.js +36 -36
  60. package/src/index.js +12 -12
  61. package/src/mapfield.js +136 -136
  62. package/src/message.js +137 -137
  63. package/src/method.js +175 -175
  64. package/src/namespace.js +565 -565
  65. package/src/object.js +382 -382
  66. package/src/oneof.js +225 -225
  67. package/src/parse.js +1068 -1068
  68. package/src/reader.js +543 -543
  69. package/src/reader_buffer.js +72 -72
  70. package/src/root.js +416 -416
  71. package/src/roots.js +18 -18
  72. package/src/rpc/service.js +148 -148
  73. package/src/rpc.js +36 -36
  74. package/src/service.js +198 -198
  75. package/src/tokenize.js +421 -421
  76. package/src/type.js +655 -655
  77. package/src/types.js +196 -196
  78. package/src/typescript.js +25 -25
  79. package/src/util/aspromise.d.ts +13 -13
  80. package/src/util/aspromise.js +52 -52
  81. package/src/util/base64.d.ts +32 -32
  82. package/src/util/base64.js +146 -146
  83. package/src/util/codegen.d.ts +31 -31
  84. package/src/util/codegen.js +113 -113
  85. package/src/util/eventemitter.d.ts +45 -45
  86. package/src/util/eventemitter.js +86 -86
  87. package/src/util/fetch.d.ts +56 -56
  88. package/src/util/fetch.js +112 -112
  89. package/src/util/float.d.ts +83 -83
  90. package/src/util/float.js +335 -335
  91. package/src/util/fs.js +11 -11
  92. package/src/util/longbits.js +200 -200
  93. package/src/util/minimal.js +515 -518
  94. package/src/util/path.d.ts +22 -22
  95. package/src/util/path.js +72 -72
  96. package/src/util/patterns.js +7 -7
  97. package/src/util/pool.d.ts +32 -32
  98. package/src/util/pool.js +48 -48
  99. package/src/util/utf8.d.ts +24 -24
  100. package/src/util/utf8.js +130 -130
  101. package/src/util.js +242 -242
  102. package/src/verifier.js +180 -180
  103. package/src/wrappers.js +106 -106
  104. package/src/writer.js +495 -495
  105. package/src/writer_buffer.js +102 -102
  106. package/tsconfig.json +6 -6
  107. package/src/util/inquire.d.ts +0 -10
  108. package/src/util/inquire.js +0 -38
package/google/LICENSE CHANGED
@@ -1,27 +1,27 @@
1
- Copyright 2014, Google Inc. All rights reserved.
2
-
3
- Redistribution and use in source and binary forms, with or without
4
- modification, are permitted provided that the following conditions are
5
- met:
6
-
7
- * Redistributions of source code must retain the above copyright
8
- notice, this list of conditions and the following disclaimer.
9
- * Redistributions in binary form must reproduce the above
10
- copyright notice, this list of conditions and the following disclaimer
11
- in the documentation and/or other materials provided with the
12
- distribution.
13
- * Neither the name of Google Inc. nor the names of its
14
- contributors may be used to endorse or promote products derived from
15
- this software without specific prior written permission.
16
-
17
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ Copyright 2014, Google Inc. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+
7
+ * Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above
10
+ copyright notice, this list of conditions and the following disclaimer
11
+ in the documentation and/or other materials provided with the
12
+ distribution.
13
+ * Neither the name of Google Inc. nor the names of its
14
+ contributors may be used to endorse or promote products derived from
15
+ this software without specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/google/README.md CHANGED
@@ -1 +1 @@
1
- This folder contains stripped and pre-parsed definitions of common Google types. These files are not used by protobuf.js directly but are here so you can use or include them where required.
1
+ This folder contains stripped and pre-parsed definitions of common Google types. These files are not used by protobuf.js directly but are here so you can use or include them where required.
@@ -1,83 +1,83 @@
1
- {
2
- "nested": {
3
- "google": {
4
- "nested": {
5
- "api": {
6
- "nested": {
7
- "http": {
8
- "type": "HttpRule",
9
- "id": 72295728,
10
- "extend": "google.protobuf.MethodOptions"
11
- },
12
- "HttpRule": {
13
- "oneofs": {
14
- "pattern": {
15
- "oneof": [
16
- "get",
17
- "put",
18
- "post",
19
- "delete",
20
- "patch",
21
- "custom"
22
- ]
23
- }
24
- },
25
- "fields": {
26
- "get": {
27
- "type": "string",
28
- "id": 2
29
- },
30
- "put": {
31
- "type": "string",
32
- "id": 3
33
- },
34
- "post": {
35
- "type": "string",
36
- "id": 4
37
- },
38
- "delete": {
39
- "type": "string",
40
- "id": 5
41
- },
42
- "patch": {
43
- "type": "string",
44
- "id": 6
45
- },
46
- "custom": {
47
- "type": "CustomHttpPattern",
48
- "id": 8
49
- },
50
- "selector": {
51
- "type": "string",
52
- "id": 1
53
- },
54
- "body": {
55
- "type": "string",
56
- "id": 7
57
- },
58
- "additionalBindings": {
59
- "rule": "repeated",
60
- "type": "HttpRule",
61
- "id": 11
62
- }
63
- }
64
- }
65
- }
66
- },
67
- "protobuf": {
68
- "nested": {
69
- "MethodOptions": {
70
- "fields": {},
71
- "extensions": [
72
- [
73
- 1000,
74
- 536870911
75
- ]
76
- ]
77
- }
78
- }
79
- }
80
- }
81
- }
82
- }
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "api": {
6
+ "nested": {
7
+ "http": {
8
+ "type": "HttpRule",
9
+ "id": 72295728,
10
+ "extend": "google.protobuf.MethodOptions"
11
+ },
12
+ "HttpRule": {
13
+ "oneofs": {
14
+ "pattern": {
15
+ "oneof": [
16
+ "get",
17
+ "put",
18
+ "post",
19
+ "delete",
20
+ "patch",
21
+ "custom"
22
+ ]
23
+ }
24
+ },
25
+ "fields": {
26
+ "get": {
27
+ "type": "string",
28
+ "id": 2
29
+ },
30
+ "put": {
31
+ "type": "string",
32
+ "id": 3
33
+ },
34
+ "post": {
35
+ "type": "string",
36
+ "id": 4
37
+ },
38
+ "delete": {
39
+ "type": "string",
40
+ "id": 5
41
+ },
42
+ "patch": {
43
+ "type": "string",
44
+ "id": 6
45
+ },
46
+ "custom": {
47
+ "type": "CustomHttpPattern",
48
+ "id": 8
49
+ },
50
+ "selector": {
51
+ "type": "string",
52
+ "id": 1
53
+ },
54
+ "body": {
55
+ "type": "string",
56
+ "id": 7
57
+ },
58
+ "additionalBindings": {
59
+ "rule": "repeated",
60
+ "type": "HttpRule",
61
+ "id": 11
62
+ }
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "protobuf": {
68
+ "nested": {
69
+ "MethodOptions": {
70
+ "fields": {},
71
+ "extensions": [
72
+ [
73
+ 1000,
74
+ 536870911
75
+ ]
76
+ ]
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
83
  }
@@ -1,11 +1,11 @@
1
- syntax = "proto3";
2
-
3
- package google.api;
4
-
5
- import "google/api/http.proto";
6
- import "google/protobuf/descriptor.proto";
7
-
8
- extend google.protobuf.MethodOptions {
9
-
10
- HttpRule http = 72295728;
1
+ syntax = "proto3";
2
+
3
+ package google.api;
4
+
5
+ import "google/api/http.proto";
6
+ import "google/protobuf/descriptor.proto";
7
+
8
+ extend google.protobuf.MethodOptions {
9
+
10
+ HttpRule http = 72295728;
11
11
  }
@@ -1,86 +1,86 @@
1
- {
2
- "nested": {
3
- "google": {
4
- "nested": {
5
- "api": {
6
- "nested": {
7
- "Http": {
8
- "fields": {
9
- "rules": {
10
- "rule": "repeated",
11
- "type": "HttpRule",
12
- "id": 1
13
- }
14
- }
15
- },
16
- "HttpRule": {
17
- "oneofs": {
18
- "pattern": {
19
- "oneof": [
20
- "get",
21
- "put",
22
- "post",
23
- "delete",
24
- "patch",
25
- "custom"
26
- ]
27
- }
28
- },
29
- "fields": {
30
- "get": {
31
- "type": "string",
32
- "id": 2
33
- },
34
- "put": {
35
- "type": "string",
36
- "id": 3
37
- },
38
- "post": {
39
- "type": "string",
40
- "id": 4
41
- },
42
- "delete": {
43
- "type": "string",
44
- "id": 5
45
- },
46
- "patch": {
47
- "type": "string",
48
- "id": 6
49
- },
50
- "custom": {
51
- "type": "CustomHttpPattern",
52
- "id": 8
53
- },
54
- "selector": {
55
- "type": "string",
56
- "id": 1
57
- },
58
- "body": {
59
- "type": "string",
60
- "id": 7
61
- },
62
- "additionalBindings": {
63
- "rule": "repeated",
64
- "type": "HttpRule",
65
- "id": 11
66
- }
67
- }
68
- },
69
- "CustomHttpPattern": {
70
- "fields": {
71
- "kind": {
72
- "type": "string",
73
- "id": 1
74
- },
75
- "path": {
76
- "type": "string",
77
- "id": 2
78
- }
79
- }
80
- }
81
- }
82
- }
83
- }
84
- }
85
- }
1
+ {
2
+ "nested": {
3
+ "google": {
4
+ "nested": {
5
+ "api": {
6
+ "nested": {
7
+ "Http": {
8
+ "fields": {
9
+ "rules": {
10
+ "rule": "repeated",
11
+ "type": "HttpRule",
12
+ "id": 1
13
+ }
14
+ }
15
+ },
16
+ "HttpRule": {
17
+ "oneofs": {
18
+ "pattern": {
19
+ "oneof": [
20
+ "get",
21
+ "put",
22
+ "post",
23
+ "delete",
24
+ "patch",
25
+ "custom"
26
+ ]
27
+ }
28
+ },
29
+ "fields": {
30
+ "get": {
31
+ "type": "string",
32
+ "id": 2
33
+ },
34
+ "put": {
35
+ "type": "string",
36
+ "id": 3
37
+ },
38
+ "post": {
39
+ "type": "string",
40
+ "id": 4
41
+ },
42
+ "delete": {
43
+ "type": "string",
44
+ "id": 5
45
+ },
46
+ "patch": {
47
+ "type": "string",
48
+ "id": 6
49
+ },
50
+ "custom": {
51
+ "type": "CustomHttpPattern",
52
+ "id": 8
53
+ },
54
+ "selector": {
55
+ "type": "string",
56
+ "id": 1
57
+ },
58
+ "body": {
59
+ "type": "string",
60
+ "id": 7
61
+ },
62
+ "additionalBindings": {
63
+ "rule": "repeated",
64
+ "type": "HttpRule",
65
+ "id": 11
66
+ }
67
+ }
68
+ },
69
+ "CustomHttpPattern": {
70
+ "fields": {
71
+ "kind": {
72
+ "type": "string",
73
+ "id": 1
74
+ },
75
+ "path": {
76
+ "type": "string",
77
+ "id": 2
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
86
  }
@@ -1,31 +1,31 @@
1
- syntax = "proto3";
2
-
3
- package google.api;
4
-
5
- message Http {
6
-
7
- repeated HttpRule rules = 1;
8
- }
9
-
10
- message HttpRule {
11
-
12
- oneof pattern {
13
-
14
- string get = 2;
15
- string put = 3;
16
- string post = 4;
17
- string delete = 5;
18
- string patch = 6;
19
- CustomHttpPattern custom = 8;
20
- }
21
-
22
- string selector = 1;
23
- string body = 7;
24
- repeated HttpRule additional_bindings = 11;
25
- }
26
-
27
- message CustomHttpPattern {
28
-
29
- string kind = 1;
30
- string path = 2;
1
+ syntax = "proto3";
2
+
3
+ package google.api;
4
+
5
+ message Http {
6
+
7
+ repeated HttpRule rules = 1;
8
+ }
9
+
10
+ message HttpRule {
11
+
12
+ oneof pattern {
13
+
14
+ string get = 2;
15
+ string put = 3;
16
+ string post = 4;
17
+ string delete = 5;
18
+ string patch = 6;
19
+ CustomHttpPattern custom = 8;
20
+ }
21
+
22
+ string selector = 1;
23
+ string body = 7;
24
+ repeated HttpRule additional_bindings = 11;
25
+ }
26
+
27
+ message CustomHttpPattern {
28
+
29
+ string kind = 1;
30
+ string path = 2;
31
31
  }