diff --git a/packages/grpc-native-core/src/protobuf_js_6_common.js b/packages/grpc-native-core/src/protobuf_js_6_common.js index af3d4c04..a08b988e 100644 --- a/packages/grpc-native-core/src/protobuf_js_6_common.js +++ b/packages/grpc-native-core/src/protobuf_js_6_common.js @@ -104,9 +104,9 @@ exports.getProtobufServiceAttrs = function getProtobufServiceAttrs(service, options) { var prefix = '/' + fullyQualifiedName(service) + '/'; service.resolveAll(); - return common.zipObject(service.methods.map(function(method) { + return common.zipObject(service.methodsArray.map(function(method) { return camelCase(method.name); - }), service.methods.map(function(method) { + }), service.methodsArray.map(function(method) { return { originalName: method.name, path: prefix + method.name,