File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export function getDescriptorRoot(file_descriptor_protos) {
2121 const descriptor = Descriptor . FileDescriptorProto . decode ( descriptorByte ) ;
2222 set ( descriptorSet , 'file[' + i + ']' , descriptor ) ;
2323 } ) ;
24- return protobuf . Root . fromDescriptor ( descriptorSet ) ;
24+ return protobuf . Root . fromDescriptor ( descriptorSet , { useMapField : true } ) ;
2525}
2626
2727/**
@@ -31,5 +31,5 @@ export function getDescriptorRoot(file_descriptor_protos) {
3131 */
3232// eslint-disable-next-line node/no-unsupported-features/es-syntax
3333export function getDescriptorRootFromDescriptorSet ( file_descriptor_set ) {
34- return protobuf . Root . fromDescriptor ( file_descriptor_set ) ;
34+ return protobuf . Root . fromDescriptor ( file_descriptor_set , { useMapField : true } ) ;
3535}
You can’t perform that action at this time.
0 commit comments