Skip to content

Commit 98a58d4

Browse files
committed
Actually allow undefined as service method type, fixes #528
1 parent df91b1f commit 98a58d4

6 files changed

+9
-9
lines changed

dist/protobuf.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js.gz

0 Bytes
Binary file not shown.

dist/protobuf.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/method.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Method(name, type, requestType, responseType, requestStream, responseSt
3131
options = responseStream;
3232
responseStream = undefined;
3333
}
34-
if (!util.isString(type))
34+
if (type && !util.isString(type))
3535
throw _TypeError("type");
3636
if (!util.isString(requestType))
3737
throw _TypeError("requestType");

0 commit comments

Comments
 (0)