ts-proto 1.100.0 → 1.100.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.100.1](https://github.com/stephenh/ts-proto/compare/v1.100.0...v1.100.1) (2022-01-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * respect generateClientImpl=false in grpc-js ([#471](https://github.com/stephenh/ts-proto/issues/471)) ([#472](https://github.com/stephenh/ts-proto/issues/472)) ([2f389f2](https://github.com/stephenh/ts-proto/commit/2f389f243ef11d8d58c32ce37c371aba2cdf294e))
7
+
1
8
  # [1.100.0](https://github.com/stephenh/ts-proto/compare/v1.99.0...v1.100.0) (2022-01-09)
2
9
 
3
10
 
@@ -27,11 +27,14 @@ const ServiceError = ts_poet_1.imp('ServiceError@@grpc/grpc-js');
27
27
  * `@grpc/grpc-js` library.
28
28
  */
29
29
  function generateGrpcJsService(ctx, fileDesc, sourceInfo, serviceDesc) {
30
+ const { options } = ctx;
30
31
  const chunks = [];
31
32
  chunks.push(generateServiceDefinition(ctx, fileDesc, sourceInfo, serviceDesc));
32
33
  chunks.push(generateServerStub(ctx, sourceInfo, serviceDesc));
33
- chunks.push(generateClientStub(ctx, sourceInfo, serviceDesc));
34
- chunks.push(generateClientConstructor(fileDesc, serviceDesc));
34
+ if (options.outputClientImpl) {
35
+ chunks.push(generateClientStub(ctx, sourceInfo, serviceDesc));
36
+ chunks.push(generateClientConstructor(fileDesc, serviceDesc));
37
+ }
35
38
  return ts_poet_1.joinCode(chunks, { on: '\n\n' });
36
39
  }
37
40
  exports.generateGrpcJsService = generateGrpcJsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.100.0",
3
+ "version": "1.100.1",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",