ts-proto 1.165.1 → 1.165.3

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/README.markdown CHANGED
@@ -651,6 +651,10 @@ The commands below assume you have **Docker** installed. If you are using OS X,
651
651
  - Make sure to `git add` all of the `*.proto`, `*.bin`, and `*.ts` files in `integration/your-new-test`
652
652
  - Sometimes checking in generated code is frowned upon, but given ts-proto's main job is to generate code, seeing the codegen diffs in PRs is helpful
653
653
 
654
+ **Testing in your projects**
655
+
656
+ You can test your local ts-proto changes in your own projects by running `yarn add ts-proto@./path/to/ts-proto`, as long as you run `yarn build` manually.
657
+
654
658
  **Dockerized Protoc**
655
659
 
656
660
  The repository includes a dockerized version of `protoc`, which is configured in [docker-compose.yml](docker-compose.yml).
@@ -201,6 +201,7 @@ function generateClientConstructor(fileDesc, serviceDesc) {
201
201
  options?: Partial<${ClientOptions}>,
202
202
  ): ${serviceDesc.name}Client;
203
203
  service: typeof ${serviceDesc.name}Service;
204
+ serviceName: string;
204
205
  }
205
206
  `;
206
207
  }
@@ -41,7 +41,7 @@ function generateRpcMethod(ctx, serviceDesc, methodDesc) {
41
41
  (0, utils_1.assertInstanceOf)(methodDesc, utils_1.FormattedMethodDescriptor);
42
42
  const { options } = ctx;
43
43
  const { useAbortSignal } = options;
44
- const requestMessage = (0, types_1.rawRequestType)(ctx, methodDesc);
44
+ const requestMessage = (0, types_1.requestType)(ctx, methodDesc, false);
45
45
  const inputType = (0, types_1.requestType)(ctx, methodDesc, true);
46
46
  const returns = (0, types_1.responsePromiseOrObservable)(ctx, methodDesc);
47
47
  if (methodDesc.clientStreaming) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.165.1",
3
+ "version": "1.165.3",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",