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).
|
|
@@ -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) {
|