1.0.1 • Published 2 years ago

@sentecacommerce/protobufjs-wrappers v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

How to use the custom loader with NestJS

npm i -S @sentecacommerce/protobufjs-wrappers
app.connectMicroservice<MicroserviceOptions>({
  transport: Transport.GRPC,
  options: {
    url: '0.0.0.0:443',
    package: 'package.name',
    protoPath: join(__dirname, 'path_to_proto'),
    protoLoader: '@sentecacommerce/protobufjs-wrappers',
  },
});

Supported types

  • google.protobuf.Struct
  • google.protobuf.Timestamp