ts-proto 1.131.2 → 1.132.0
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 +7 -0
- package/build/generate-grpc-js.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.132.0](https://github.com/stephenh/ts-proto/compare/v1.131.2...v1.132.0) (2022-11-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* change channel options to client options in generate grpc/js ([#704](https://github.com/stephenh/ts-proto/issues/704)) ([c4ac8ac](https://github.com/stephenh/ts-proto/commit/c4ac8ac12aaee0c897985f944ffe3f122e28eba9))
|
|
7
|
+
|
|
1
8
|
## [1.131.2](https://github.com/stephenh/ts-proto/compare/v1.131.1...v1.131.2) (2022-11-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -8,7 +8,7 @@ const utils_1 = require("./utils");
|
|
|
8
8
|
const encode_1 = require("./encode");
|
|
9
9
|
const CallOptions = (0, ts_poet_1.imp)("CallOptions@@grpc/grpc-js");
|
|
10
10
|
const ChannelCredentials = (0, ts_poet_1.imp)("ChannelCredentials@@grpc/grpc-js");
|
|
11
|
-
const
|
|
11
|
+
const ClientOptions = (0, ts_poet_1.imp)("ClientOptions@@grpc/grpc-js");
|
|
12
12
|
const Client = (0, ts_poet_1.imp)("Client@@grpc/grpc-js");
|
|
13
13
|
const ClientDuplexStream = (0, ts_poet_1.imp)("ClientDuplexStream@@grpc/grpc-js");
|
|
14
14
|
const ClientReadableStream = (0, ts_poet_1.imp)("ClientReadableStream@@grpc/grpc-js");
|
|
@@ -198,7 +198,7 @@ function generateClientConstructor(fileDesc, serviceDesc) {
|
|
|
198
198
|
new (
|
|
199
199
|
address: string,
|
|
200
200
|
credentials: ${ChannelCredentials},
|
|
201
|
-
options?: Partial<${
|
|
201
|
+
options?: Partial<${ClientOptions}>,
|
|
202
202
|
): ${serviceDesc.name}Client;
|
|
203
203
|
service: typeof ${serviceDesc.name}Service;
|
|
204
204
|
}
|