ts-proto 1.165.0 → 1.165.2

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
@@ -613,12 +613,12 @@ This section describes how to contribute directly to ts-proto, i.e. it's not req
613
613
 
614
614
  **Requirements**
615
615
 
616
- - [Docker](https://www.docker.com) or [protoc](https://github.com/protocolbuffers/protobuf/releases) v3.19.1
616
+ - [Docker](https://www.docker.com)
617
617
  - `yarn` — `npm install -g yarn`
618
618
 
619
619
  **Setup**
620
620
 
621
- The commands below assume you have **Docker** installed. To use a **local** copy of `protoc` without docker, use commands suffixed with `:local`. If you are using OS X, install **coreutils**, `brew install coreutils`.
621
+ The commands below assume you have **Docker** installed. If you are using OS X, install **coreutils**, `brew install coreutils`.
622
622
 
623
623
  - Check out the [repository]() for the latest code.
624
624
  - Run `yarn install` to install the dependencies.
@@ -651,6 +651,10 @@ The commands below assume you have **Docker** installed. To use a **local** copy
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).
@@ -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.0",
3
+ "version": "1.165.2",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",