diff --git a/README.md b/README.md index a60ed84..3fbf49b 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,18 @@ message SpecialCases { string function = 3; string var = 4; } + +message OneOfSample { + oneof singleword { + bool a1 = 1; + bool b1 = 2; + } + + oneof two_words { + bool a_2 = 3; + bool b_2 = 4; + } +} ``` ### book_pb.d.ts @@ -254,6 +266,73 @@ export namespace SpecialCases { } } +export class OneOfSample extends jspb.Message { + + hasA1(): boolean; + clearA1(): void; + getA1(): boolean; + setA1(value: boolean): void; + + + hasB1(): boolean; + clearB1(): void; + getB1(): boolean; + setB1(value: boolean): void; + + + hasA2(): boolean; + clearA2(): void; + getA2(): boolean; + setA2(value: boolean): void; + + + hasB2(): boolean; + clearB2(): void; + getB2(): boolean; + setB2(value: boolean): void; + + + getSinglewordCase(): OneOfSample.SinglewordCase; + getTwoWordsCase(): OneOfSample.TwoWordsCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OneOfSample.AsObject; + static toObject(includeInstance: boolean, msg: OneOfSample): OneOfSample.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OneOfSample, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OneOfSample; + static deserializeBinaryFromReader(message: OneOfSample, reader: jspb.BinaryReader): OneOfSample; +} + +export namespace OneOfSample { + export type AsObject = { + a1: boolean, + b1: boolean, + a2: boolean, + b2: boolean, + } + + export enum SinglewordCase { + SINGLEWORD_NOT_SET = 0, + + A1 = 1, + + B1 = 2, + + } + + export enum TwoWordsCase { + TWO_WORDS_NOT_SET = 0, + + A_2 = 3, + + B_2 = 4, + + } + +} + export enum EnumSample { UNKNOWN = 0, STARTED = 1, @@ -387,6 +466,9 @@ export namespace Example { ``` ## Changes +### 2.5.10 +Fix issue of oneof functionality. See: [PR#53](https://github.com/agreatfool/grpc_tools_node_protoc_ts/pull/53). + ### 2.5.9 Fix vulnerabilities. See: [Issue#52](https://github.com/agreatfool/grpc_tools_node_protoc_ts/issues/52). diff --git a/examples/build/client.js b/examples/build/client.js index b604011..e1a3940 100644 --- a/examples/build/client.js +++ b/examples/build/client.js @@ -1,10 +1,11 @@ #!/usr/bin/env node "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; @@ -15,7 +16,7 @@ const book_grpc_pb_1 = require("./proto/book_grpc_pb"); const book_pb_1 = require("./proto/book_pb"); const log = debug("SampleClient"); const client = new book_grpc_pb_1.BookServiceClient("127.0.0.1:50051", grpc.credentials.createInsecure()); -const getBook = (isbn) => __awaiter(this, void 0, void 0, function* () { +const getBook = (isbn) => __awaiter(void 0, void 0, void 0, function* () { return new Promise((resolve, reject) => { const request = new book_pb_1.GetBookRequest(); request.setIsbn(isbn); diff --git a/examples/build/client.js.map b/examples/build/client.js.map index 2ada4fb..7c92fab 100644 --- a/examples/build/client.js.map +++ b/examples/build/client.js.map @@ -1 +1 @@ -{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,+BAA+B;AAC/B,6BAA6B;AAE7B,uDAAyD;AACzD,6CAAyE;AAEzE,MAAM,GAAG,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAElC,MAAM,MAAM,GAAG,IAAI,gCAAiB,CAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC;AAE3F,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G,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;YACpE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACnB;QACD,MAAM,CAAC,GAAG,EAAE,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,SAAe,IAAI;;QACjB,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;QACjB,MAAM,QAAQ,EAAE,CAAC;QACjB,MAAM,iBAAiB,CAAC,eAAe,CAAC,CAAC;QACzC,MAAM,eAAe,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAEtB,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,GAAG,EAAE,EAAE;IACtC,GAAG,CAAC,uCAAuC,GAAG,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,GAAG,EAAE,EAAE;IACvC,GAAG,CAAC,wCAAwC,GAAG,EAAE,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/examples/build/server.js.map b/examples/build/server.js.map index 5b8e57d..ed2a020 100644 --- a/examples/build/server.js.map +++ b/examples/build/server.js.map @@ -1 +1 @@ -{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;AAEA,+BAA+B;AAC/B,6BAA6B;AAE7B,uDAA8E;AAC9E,6CAAyE;AAEzE,MAAM,GAAG,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAElC;IACI,OAAO,CAAC,IAA0C,EAAE,QAAkC;QAClF,MAAM,IAAI,GAAG,IAAI,cAAI,EAAE,CAAC;QAExB,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAEhC,GAAG,CAA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