Merge pull request #671 from murgatroid99/native_protojs6_map_fix

Native: Protobuf.js 6 loadObject: switch to mappable methodsArray
This commit is contained in:
Michael Lumish 2018-12-07 09:47:52 -08:00 committed by GitHub
commit d7ee7796ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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,