ts-proto 1.156.8 → 1.157.1

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/build/enums.js CHANGED
@@ -39,11 +39,13 @@ function generateEnum(ctx, fullName, enumDesc, sourceInfo) {
39
39
  else {
40
40
  chunks.push((0, ts_poet_1.code) `}`);
41
41
  }
42
- if (options.outputJsonMethods || (options.stringEnums && options.outputEncodeMethods)) {
42
+ if (options.outputJsonMethods === true ||
43
+ options.outputJsonMethods === "from-only" ||
44
+ (options.stringEnums && options.outputEncodeMethods)) {
43
45
  chunks.push((0, ts_poet_1.code) `\n`);
44
46
  chunks.push(generateEnumFromJson(ctx, fullName, enumDesc));
45
47
  }
46
- if (options.outputJsonMethods) {
48
+ if (options.outputJsonMethods === true || options.outputJsonMethods === "to-only") {
47
49
  chunks.push((0, ts_poet_1.code) `\n`);
48
50
  chunks.push(generateEnumToJson(ctx, fullName, enumDesc));
49
51
  }
@@ -6,22 +6,22 @@ const sourceInfo_1 = require("./sourceInfo");
6
6
  const types_1 = require("./types");
7
7
  const utils_1 = require("./utils");
8
8
  const encode_1 = require("./encode");
9
- const CallOptions = (0, ts_poet_1.imp)("CallOptions@@grpc/grpc-js");
9
+ const CallOptions = (0, ts_poet_1.imp)("t:CallOptions@@grpc/grpc-js");
10
10
  const ChannelCredentials = (0, ts_poet_1.imp)("ChannelCredentials@@grpc/grpc-js");
11
- const ClientOptions = (0, ts_poet_1.imp)("ClientOptions@@grpc/grpc-js");
11
+ const ClientOptions = (0, ts_poet_1.imp)("t: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");
15
- const ClientUnaryCall = (0, ts_poet_1.imp)("ClientUnaryCall@@grpc/grpc-js");
15
+ const ClientUnaryCall = (0, ts_poet_1.imp)("t:ClientUnaryCall@@grpc/grpc-js");
16
16
  const ClientWritableStream = (0, ts_poet_1.imp)("ClientWritableStream@@grpc/grpc-js");
17
17
  const handleBidiStreamingCall = (0, ts_poet_1.imp)("handleBidiStreamingCall@@grpc/grpc-js");
18
18
  const handleClientStreamingCall = (0, ts_poet_1.imp)("handleClientStreamingCall@@grpc/grpc-js");
19
19
  const handleServerStreamingCall = (0, ts_poet_1.imp)("handleServerStreamingCall@@grpc/grpc-js");
20
- const handleUnaryCall = (0, ts_poet_1.imp)("handleUnaryCall@@grpc/grpc-js");
21
- const UntypedServiceImplementation = (0, ts_poet_1.imp)("UntypedServiceImplementation@@grpc/grpc-js");
20
+ const handleUnaryCall = (0, ts_poet_1.imp)("t:handleUnaryCall@@grpc/grpc-js");
21
+ const UntypedServiceImplementation = (0, ts_poet_1.imp)("t:UntypedServiceImplementation@@grpc/grpc-js");
22
22
  const makeGenericClientConstructor = (0, ts_poet_1.imp)("makeGenericClientConstructor@@grpc/grpc-js");
23
23
  const Metadata = (0, ts_poet_1.imp)("Metadata@@grpc/grpc-js");
24
- const ServiceError = (0, ts_poet_1.imp)("ServiceError@@grpc/grpc-js");
24
+ const ServiceError = (0, ts_poet_1.imp)("t:ServiceError@@grpc/grpc-js");
25
25
  /**
26
26
  * Generates a service definition and server / client stubs for the
27
27
  * `@grpc/grpc-js` library.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.156.8",
3
+ "version": "1.157.1",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",