Commit Graph

48 Commits

Author SHA1 Message Date
Christopher Fenn e6ac1a49ed return uninterpreted options as an array 2024-04-05 17:12:04 +02:00
Christopher Fenn 27d608763b adjust implementation to always return default options 2024-04-05 16:23:29 +02:00
Christopher Fenn 99e8a060f6 make uninterpreted_option an array 2024-04-05 16:19:04 +02:00
Christopher Fenn 5bd37a9de1 narrow down type of idempotency_level 2024-04-05 16:00:28 +02:00
Christopher Fenn 260966c070 predefined options should always be returned with their default value 2024-04-05 16:00:04 +02:00
hiepthai 4c185fa2e6 grpc-loader: update interfaces & add new test 2024-04-05 15:32:26 +02:00
hiepthai d335428458 grpc-loader: cleanup MethodOptions interfaces 2024-04-05 15:32:26 +02:00
hiepthai 68ea1f43e2 grpc-loader: update & correct interface types 2024-04-05 15:32:26 +02:00
Hiep Thai ae33e8797a grpc-loader: export interfaces and fix minor issue 2024-04-05 15:32:26 +02:00
Hiep Thai fc9db761a9 grpc-loader: map method options and add MethodOptions interface 2024-04-05 15:32:26 +02:00
Hiep Thai c8b5e05366 grpc-loader: update MethodDefinition interface 2024-04-05 15:32:26 +02:00
hiepthai c7d4566353 grpc-loader: add method options in MethodDefinition 2024-04-05 15:32:26 +02:00
Michael Lumish 3388765cbb proto-loader: Update to Long 5.x 2022-05-02 11:03:01 -07:00
Michael Lumish 144c41b366 proto-loader: Make serializers reject arrays 2021-10-15 09:48:42 -07:00
Michael Lumish c3a49262cc proto-loader: generator: add specific service definition interfaces 2021-04-08 12:56:50 -07:00
Michael Lumish b920292b59
Merge pull request #1474 from murgatroid99/proto-loader_type_generator
proto-loader: Add TypeScript generator
2021-04-06 10:31:18 -07:00
Michael Lumish 3ac1e6ddb8 Address review comments 2021-03-31 13:22:08 -07:00
于北 2ce608e1f4
Porto-loader fromJSON rm if optiondir 2021-03-19 08:33:23 +08:00
sovlookup 1143867682 proto-loader: fromJSON add options 2021-03-18 16:21:55 +08:00
sovlookup bdd8e1a110 proto-loader: fromJSON rm newRoot 2021-03-18 15:39:24 +08:00
sovlookup b7bf2bf6cd proto-loader: update fromJSON remove Protobuf.Root 'json' param 2021-03-17 09:41:22 +08:00
sovlookup 550a4e93f5 proto-loader: update fromJSON 2021-03-17 09:32:02 +08:00
sovlookup c2d7e4adda load protobuf.js JSON descriptor 2021-03-12 19:39:06 +08:00
Michael Lumish 999634a74d Merge branch 'master' into proto-loader_type_generator 2020-12-01 12:29:25 -08:00
A. Tate Barber d86994dc6a Split file descriptor set logic into two utility functions
This change exposes loadFileDescriptorSetFromBuffer and
loadFileDescriptorSetFromObject functions.
2020-11-30 21:20:49 -06:00
A. Tate Barber 8c50e2d40f Refactor loadFileDescriptorSetFile to not catch JSON decoding errors
This change ensures that errors are not hidden when
loadFileDescriptorSet fails to decode JSON. Instead, only JSON parsing
errors are hidden.
2020-11-23 21:54:34 -06:00
A. Tate Barber 63af3bcd6a Enable loadFileDescriptorSetFile to parse JSON files 2020-11-23 21:46:04 -06:00
A. Tate Barber bf98c167cd Refactor loadFileDescriptorSet
This change refactors the loadFileDescriptorSetFile function to take
a plain Buffer or Javascript object as input.
2020-11-23 21:24:39 -06:00
A. Tate Barber 08254e4d2e Add functions for loading and parsing binary-encoded file decriptor sets
Fixes #1627
2020-11-22 17:30:43 -06:00
Michael Lumish e80d89479e Refactor shared code, remove mkdirp, sort some things for stable output, add verbose option 2020-07-10 12:48:53 -07:00
Michael Lumish 4cc4a17910 Merge branch 'master' into proto-loader_type_generator 2020-07-10 10:56:04 -07:00
Michael Lumish cee9a455a6 Load google/protobuf/* into common using require 2020-07-10 09:10:13 -07:00
Michael Lumish c7bbf045b6 Add json option and google.protobuf.Any wrapper type 2020-06-18 15:52:37 -07:00
Michael Lumish da3fefb58e proto-loader: Add TypeScript generator 2020-06-12 10:21:10 -07:00
Michael Lumish 0c3b93fc3a proto-loader: Warn if file not found in imports 2020-03-13 13:46:09 -07:00
Natan Sągol 8cbda9b03c
build(proto-loader): add full gts configuration and fix reported issues 2019-11-08 08:09:40 +01:00
murgatroid99 0fe10fd1fb proto-loader: Pass file descriptors around instead of caching them separately 2019-11-01 10:34:35 -07:00
Dmitry Cheryasov 8f724121a2
Fix a TypeError loading a non-existent proto file.
The issue: https://github.com/grpc/grpc-node/issues/876

This is an obvious typo; `typeof` has to return a string `'undefined'`, not a literal `undefined.`
2019-05-20 15:36:15 -05:00
Michael Lumish 8e2e2b25c2
Merge branch 'master' into multi-filenames 2019-05-16 10:28:15 -07:00
cjihrig c5cc74e589
proto-loader: fix linting issues
This commit makes the linter pass for proto-loader.
2019-04-01 16:29:50 -04:00
cjihrig cbff0b4601
proto-loader: include Google well known protos
This commit ensures that the Google well known protos are
available because protobufjs only exposes a subset of them.
2019-04-01 16:29:26 -04:00
James Roper 7f85a775d6 Fixed load/loadSync filename parameter type
Fixes #805.

Changed the type of the filename parameter to the proto-loader load
method to match the type of the protobuf.js load method that it is
passed to.

Signed-off-by: James Roper <james@jazzy.id.au>
2019-03-29 16:03:51 +11:00
raunaqrox f9311fceca Fix typo in error message 2019-03-20 23:12:02 +05:30
raunaqrox 1d7ed8167a isArray instead of instanceof for consistent checking 2019-03-20 23:09:25 +05:30
murgatroid99 1a9e7cd7c7 Add message type information to package definition output. 2019-01-14 14:08:24 -08:00
murgatroid99 a6ecc7c8c8 proto loader: Fall back to default path resolution 2018-12-07 11:43:02 -08:00
Justin Beckwith 7e472e5bf4 refactor: use individual lodash package for proto loader 2018-11-09 16:39:03 -08:00
cjihrig 489305db79
proto-loader: rename grpc-protobufjs to match npm
This commit renames grpc-protobufjs to proto-loader to more
closely match the name used on npm.
2018-11-01 17:09:28 -04:00