@hazeljs/grpc 0.7.9 → 0.8.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/README.md +6 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -103,17 +103,18 @@ bootstrap();
|
|
|
103
103
|
|
|
104
104
|
```typescript
|
|
105
105
|
GrpcModule.forRoot({
|
|
106
|
-
protoPath: join(__dirname, 'hero.proto'),
|
|
107
|
-
package: 'hero',
|
|
108
|
-
url: '0.0.0.0:50051',
|
|
109
|
-
loader: {
|
|
106
|
+
protoPath: join(__dirname, 'hero.proto'), // or ['a.proto', 'b.proto']
|
|
107
|
+
package: 'hero', // package name from .proto
|
|
108
|
+
url: '0.0.0.0:50051', // bind address (default: 0.0.0.0:50051)
|
|
109
|
+
loader: {
|
|
110
|
+
// @grpc/proto-loader options
|
|
110
111
|
keepCase: true,
|
|
111
112
|
longs: String,
|
|
112
113
|
enums: String,
|
|
113
114
|
defaults: true,
|
|
114
115
|
oneofs: true,
|
|
115
116
|
},
|
|
116
|
-
isGlobal: true,
|
|
117
|
+
isGlobal: true, // global module (default)
|
|
117
118
|
});
|
|
118
119
|
```
|
|
119
120
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/grpc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "gRPC module for HazelJS framework - RPC server and client support with decorators",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"url": "https://github.com/hazeljs/hazel-js/issues"
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://hazeljs.ai",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "e0ed98ca074dd4f7472816d3c32ef576900dcca6"
|
|
57
57
|
}
|