We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0454a18 commit 1e4ae67Copy full SHA for 1e4ae67
src/index.ts
@@ -24,7 +24,7 @@ Utility.withAllStdIn((inputBuff: Buffer) => {
24
const exportMap = new ExportMap();
25
const fileNameToDescriptor: { [key: string]: FileDescriptorProto } = {};
26
27
- const isGrpcJs = ["generate_package_definition", "grpc_js"].includes(codeGenRequest.getParameter());
+ const isGrpcJs = ["generate_package_definition", "grpc_js"].indexOf(codeGenRequest.getParameter()) !== -1;
28
29
codeGenRequest.getProtoFileList().forEach((protoFileDescriptor) => {
30
fileNameToDescriptor[protoFileDescriptor.getName()] = protoFileDescriptor;
0 commit comments