aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2017-04-03 16:52:03 -0700
committerGravatar murgatroid99 <mlumish@google.com>2017-04-03 16:52:03 -0700
commitc84d67e85b7939abffab996995562be06edb0854 (patch)
treef3ab824279daaf36ef69f1d863e7a43d3137cf69 /src/node
parenta5ea8f2150825e14aa9da1758fd02cff37035ebb (diff)
Keep changes from #10093
Diffstat (limited to 'src/node')
-rw-r--r--src/node/src/protobuf_js_5_common.js1
-rw-r--r--src/node/src/protobuf_js_6_common.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/node/src/protobuf_js_5_common.js b/src/node/src/protobuf_js_5_common.js
index b16228b9ee..62cf2f4aca 100644
--- a/src/node/src/protobuf_js_5_common.js
+++ b/src/node/src/protobuf_js_5_common.js
@@ -120,6 +120,7 @@ exports.getProtobufServiceAttrs = function getProtobufServiceAttrs(service,
return _.camelCase(method.name);
}), _.map(service.children, function(method) {
return {
+ originalName: method.name,
path: prefix + method.name,
requestStream: method.requestStream,
responseStream: method.responseStream,
diff --git a/src/node/src/protobuf_js_6_common.js b/src/node/src/protobuf_js_6_common.js
index 7e523731d3..cac0f71145 100644
--- a/src/node/src/protobuf_js_6_common.js
+++ b/src/node/src/protobuf_js_6_common.js
@@ -121,6 +121,7 @@ exports.getProtobufServiceAttrs = function getProtobufServiceAttrs(service,
return _.camelCase(method.name);
}), _.map(service.methods, function(method) {
return {
+ originalName: method.name,
path: prefix + method.name,
requestStream: !!method.requestStream,
responseStream: !!method.responseStream,