@bufbuild/protoc-gen-es 2.11.0 → 2.12.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.
package/dist/cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bufbuild/protoc-gen-es",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Protocol Buffers code generator for ECMAScript",
|
|
6
6
|
"keywords": [
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
},
|
|
33
33
|
"preferUnplugged": true,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@bufbuild/protobuf": "2.
|
|
36
|
-
"@bufbuild/protoplugin": "2.
|
|
35
|
+
"@bufbuild/protobuf": "2.12.0",
|
|
36
|
+
"@bufbuild/protoplugin": "2.12.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"upstream-protobuf": "*"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@bufbuild/protobuf": "2.
|
|
42
|
+
"@bufbuild/protobuf": "2.12.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@bufbuild/protobuf": {
|
|
@@ -63,7 +63,7 @@ export type RepeatedRules = Message<"buf.validate.RepeatedRules"> & {
|
|
|
63
63
|
/**
|
|
64
64
|
* @generated from field: optional buf.validate.FieldRules items = 4;
|
|
65
65
|
*/
|
|
66
|
-
items?: FieldRules;
|
|
66
|
+
items?: FieldRules | undefined;
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
69
|
* Describes the message buf.validate.RepeatedRules.
|
|
@@ -77,7 +77,7 @@ export type MapRules = Message<"buf.validate.MapRules"> & {
|
|
|
77
77
|
/**
|
|
78
78
|
* @generated from field: optional buf.validate.FieldRules values = 5;
|
|
79
79
|
*/
|
|
80
|
-
values?: FieldRules;
|
|
80
|
+
values?: FieldRules | undefined;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
83
|
* Describes the message buf.validate.MapRules.
|
|
@@ -439,7 +439,7 @@ function generateMessageShapeMember(f, member, validTypes) {
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
if (optional) {
|
|
442
|
-
f.print(" ", member.localName, "?: ", typing, ";");
|
|
442
|
+
f.print(" ", member.localName, "?: ", typing, " | undefined;");
|
|
443
443
|
}
|
|
444
444
|
else {
|
|
445
445
|
f.print(" ", member.localName, ": ", typing, ";");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bufbuild/protoc-gen-es",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Protocol Buffers code generator for ECMAScript",
|
|
6
6
|
"keywords": [
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
},
|
|
33
33
|
"preferUnplugged": true,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@bufbuild/protobuf": "2.
|
|
36
|
-
"@bufbuild/protoplugin": "2.
|
|
35
|
+
"@bufbuild/protobuf": "2.12.0",
|
|
36
|
+
"@bufbuild/protoplugin": "2.12.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"upstream-protobuf": "*"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@bufbuild/protobuf": "2.
|
|
42
|
+
"@bufbuild/protobuf": "2.12.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@bufbuild/protobuf": {
|