mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Native: Protobuf.js 6 loadObject: switch to mappable methodsArray
This commit is contained in:
parent
4ebb6e8aea
commit
bbd5bd8f7c
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user