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 +6 -2
- package/build/generate-grpc-web.js +1 -1
- package/package.json +1 -1
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)
|
|
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.
|
|
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.
|
|
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) {
|