@bufbuild/protoc-gen-es
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "@bufbuild/protoc-gen-es", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Protocol Buffers code generator for ECMAScript", | ||
@@ -23,7 +23,7 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@bufbuild/protobuf": "^1.5.0", | ||
"@bufbuild/protoplugin": "1.5.0" | ||
"@bufbuild/protobuf": "^1.5.1", | ||
"@bufbuild/protoplugin": "1.5.1" | ||
}, | ||
"peerDependencies": { | ||
"@bufbuild/protobuf": "1.5.0" | ||
"@bufbuild/protobuf": "1.5.1" | ||
}, | ||
@@ -30,0 +30,0 @@ "peerDependenciesMeta": { |
@@ -122,2 +122,5 @@ "use strict"; | ||
e.push(`kind: "message", T: `, field.message, `, `); | ||
if (field.proto.type === protobuf_1.FieldDescriptorProto_Type.GROUP) { | ||
e.push(`delimited: true, `); | ||
} | ||
break; | ||
@@ -124,0 +127,0 @@ case "enum": |
{ | ||
"name": "@bufbuild/protoc-gen-es", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Protocol Buffers code generator for ECMAScript", | ||
@@ -23,7 +23,7 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@bufbuild/protobuf": "^1.5.0", | ||
"@bufbuild/protoplugin": "1.5.0" | ||
"@bufbuild/protobuf": "^1.5.1", | ||
"@bufbuild/protoplugin": "1.5.1" | ||
}, | ||
"peerDependencies": { | ||
"@bufbuild/protobuf": "1.5.0" | ||
"@bufbuild/protobuf": "1.5.1" | ||
}, | ||
@@ -30,0 +30,0 @@ "peerDependenciesMeta": { |
@@ -16,3 +16,9 @@ // Copyright 2021-2023 Buf Technologies, Inc. | ||
import type { DescEnum, DescField, DescMessage } from "@bufbuild/protobuf"; | ||
import { LongType, proto2, proto3, ScalarType } from "@bufbuild/protobuf"; | ||
import { | ||
FieldDescriptorProto_Type, | ||
LongType, | ||
proto2, | ||
proto3, | ||
ScalarType, | ||
} from "@bufbuild/protobuf"; | ||
import type { | ||
@@ -134,2 +140,5 @@ GeneratedFile, | ||
e.push(`kind: "message", T: `, field.message, `, `); | ||
if (field.proto.type === FieldDescriptorProto_Type.GROUP) { | ||
e.push(`delimited: true, `); | ||
} | ||
break; | ||
@@ -136,0 +145,0 @@ case "enum": |
152971
3017
+ Added@bufbuild/protobuf@1.5.1(transitive)
+ Added@bufbuild/protoplugin@1.5.1(transitive)
- Removed@bufbuild/protobuf@1.5.0(transitive)
- Removed@bufbuild/protoplugin@1.5.0(transitive)
Updated@bufbuild/protobuf@^1.5.1
Updated@bufbuild/protoplugin@1.5.1