@bufbuild/protobuf 0.0.9 → 0.0.10
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/README.md +1 -1
- package/dist/cjs/create-registry-from-desc.js +8 -4
- package/dist/cjs/google/protobuf/struct_pb.js +1 -1
- package/dist/cjs/google/protobuf/type_pb.js +1 -1
- package/dist/esm/create-registry-from-desc.js +8 -4
- package/dist/esm/google/protobuf/struct_pb.js +1 -1
- package/dist/esm/google/protobuf/type_pb.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @bufbuild/protobuf
|
|
2
2
|
|
|
3
3
|
This package provides the runtime library for the code generator plugin
|
|
4
|
-
[
|
|
4
|
+
[protoc-gen-es](https://www.npmjs.com/package/@bufbuild/protoc-gen-es).
|
|
5
5
|
|
|
6
6
|
## Protocol Buffers for ECMAScript
|
|
7
7
|
|
|
@@ -291,8 +291,9 @@ function makeFieldInfo(desc, resolver) {
|
|
|
291
291
|
function makeMapFieldInfo(field, resolver) {
|
|
292
292
|
const base = {
|
|
293
293
|
kind: "map",
|
|
294
|
-
name: field.name,
|
|
295
294
|
no: field.number,
|
|
295
|
+
name: field.name,
|
|
296
|
+
jsonName: field.jsonName,
|
|
296
297
|
K: field.mapKey,
|
|
297
298
|
};
|
|
298
299
|
if (field.mapValue.message) {
|
|
@@ -318,9 +319,10 @@ function makeMapFieldInfo(field, resolver) {
|
|
|
318
319
|
}
|
|
319
320
|
function makeScalarFieldInfo(field) {
|
|
320
321
|
const base = {
|
|
322
|
+
kind: "scalar",
|
|
321
323
|
no: field.number,
|
|
322
324
|
name: field.name,
|
|
323
|
-
|
|
325
|
+
jsonName: field.jsonName,
|
|
324
326
|
T: field.scalar,
|
|
325
327
|
};
|
|
326
328
|
if (field.repeated) {
|
|
@@ -338,9 +340,10 @@ function makeMessageFieldInfo(field, resolver) {
|
|
|
338
340
|
const messageType = resolver.findMessage(field.message.typeName);
|
|
339
341
|
(0, assert_js_1.assert)(messageType, `message "${field.message.typeName}" for ${field.toString()} not found`);
|
|
340
342
|
const base = {
|
|
343
|
+
kind: "message",
|
|
341
344
|
no: field.number,
|
|
342
345
|
name: field.name,
|
|
343
|
-
|
|
346
|
+
jsonName: field.jsonName,
|
|
344
347
|
T: messageType,
|
|
345
348
|
};
|
|
346
349
|
if (field.repeated) {
|
|
@@ -358,9 +361,10 @@ function makeEnumFieldInfo(field, resolver) {
|
|
|
358
361
|
const enumType = resolver.findEnum(field.enum.typeName);
|
|
359
362
|
(0, assert_js_1.assert)(enumType, `enum "${field.enum.typeName}" for ${field.toString()} not found`);
|
|
360
363
|
const base = {
|
|
364
|
+
kind: "enum",
|
|
361
365
|
no: field.number,
|
|
362
366
|
name: field.name,
|
|
363
|
-
|
|
367
|
+
jsonName: field.jsonName,
|
|
364
368
|
T: enumType,
|
|
365
369
|
};
|
|
366
370
|
if (field.repeated) {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ListValue = exports.Value = exports.Struct = exports.NullValue = void 0;
|
|
17
|
-
// @generated by protoc-gen-es v0.0.
|
|
17
|
+
// @generated by protoc-gen-es v0.0.10 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
18
18
|
// @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3)
|
|
19
19
|
/* eslint-disable */
|
|
20
20
|
const proto3_js_1 = require("../../proto3.js");
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Option = exports.EnumValue = exports.Enum = exports.Field_Cardinality = exports.Field_Kind = exports.Field = exports.Type = exports.Syntax = void 0;
|
|
17
|
-
// @generated by protoc-gen-es v0.0.
|
|
17
|
+
// @generated by protoc-gen-es v0.0.10 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
18
18
|
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
|
|
19
19
|
/* eslint-disable */
|
|
20
20
|
const proto3_js_1 = require("../../proto3.js");
|
|
@@ -286,8 +286,9 @@ function makeFieldInfo(desc, resolver) {
|
|
|
286
286
|
function makeMapFieldInfo(field, resolver) {
|
|
287
287
|
const base = {
|
|
288
288
|
kind: "map",
|
|
289
|
-
name: field.name,
|
|
290
289
|
no: field.number,
|
|
290
|
+
name: field.name,
|
|
291
|
+
jsonName: field.jsonName,
|
|
291
292
|
K: field.mapKey,
|
|
292
293
|
};
|
|
293
294
|
if (field.mapValue.message) {
|
|
@@ -313,9 +314,10 @@ function makeMapFieldInfo(field, resolver) {
|
|
|
313
314
|
}
|
|
314
315
|
function makeScalarFieldInfo(field) {
|
|
315
316
|
const base = {
|
|
317
|
+
kind: "scalar",
|
|
316
318
|
no: field.number,
|
|
317
319
|
name: field.name,
|
|
318
|
-
|
|
320
|
+
jsonName: field.jsonName,
|
|
319
321
|
T: field.scalar,
|
|
320
322
|
};
|
|
321
323
|
if (field.repeated) {
|
|
@@ -333,9 +335,10 @@ function makeMessageFieldInfo(field, resolver) {
|
|
|
333
335
|
const messageType = resolver.findMessage(field.message.typeName);
|
|
334
336
|
assert(messageType, `message "${field.message.typeName}" for ${field.toString()} not found`);
|
|
335
337
|
const base = {
|
|
338
|
+
kind: "message",
|
|
336
339
|
no: field.number,
|
|
337
340
|
name: field.name,
|
|
338
|
-
|
|
341
|
+
jsonName: field.jsonName,
|
|
339
342
|
T: messageType,
|
|
340
343
|
};
|
|
341
344
|
if (field.repeated) {
|
|
@@ -353,9 +356,10 @@ function makeEnumFieldInfo(field, resolver) {
|
|
|
353
356
|
const enumType = resolver.findEnum(field.enum.typeName);
|
|
354
357
|
assert(enumType, `enum "${field.enum.typeName}" for ${field.toString()} not found`);
|
|
355
358
|
const base = {
|
|
359
|
+
kind: "enum",
|
|
356
360
|
no: field.number,
|
|
357
361
|
name: field.name,
|
|
358
|
-
|
|
362
|
+
jsonName: field.jsonName,
|
|
359
363
|
T: enumType,
|
|
360
364
|
};
|
|
361
365
|
if (field.repeated) {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
// @generated by protoc-gen-es v0.0.
|
|
14
|
+
// @generated by protoc-gen-es v0.0.10 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
15
15
|
// @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3)
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
import { proto3 } from "../../proto3.js";
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
// @generated by protoc-gen-es v0.0.
|
|
14
|
+
// @generated by protoc-gen-es v0.0.10 with parameter "bootstrap_wkt=true,ts_nocheck=false,target=ts"
|
|
15
15
|
// @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3)
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
import { proto3 } from "../../proto3.js";
|
package/package.json
CHANGED