Native: Protobuf.js 6 loadObject: switch to mappable methodsArray

This commit is contained in:
murgatroid99 2018-12-06 17:22:14 -08:00
parent 4ebb6e8aea
commit bbd5bd8f7c

View File

@ -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,