grpc-js-reflection-client 1.2.9 → 1.2.11
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 +3 -3
- package/package.json +2 -3
package/Readme.md
CHANGED
|
@@ -29,7 +29,7 @@ try {
|
|
|
29
29
|
(async () => {
|
|
30
30
|
const c = new GrpcReflection(
|
|
31
31
|
'0.0.0.0:50051',
|
|
32
|
-
grpc.
|
|
32
|
+
grpc.ChannelCredentials.createInsecure(),
|
|
33
33
|
// {
|
|
34
34
|
// "grpc.max_connection_age_ms": 10*1000,
|
|
35
35
|
// 'grpc.keepalive_time_ms': 10 * 1000,
|
|
@@ -117,7 +117,7 @@ const grpc = require('@grpc/grpc-js');
|
|
|
117
117
|
try {
|
|
118
118
|
(async()=>{
|
|
119
119
|
// Connect with grpc server reflection
|
|
120
|
-
const client = new GrpcReflection('0.0.0.0:50051', grpc.
|
|
120
|
+
const client = new GrpcReflection('0.0.0.0:50051', grpc.ChannelCredentials.createInsecure()());
|
|
121
121
|
|
|
122
122
|
// Get services without proto file for specific symbol or file name
|
|
123
123
|
const descriptor = await client.getDescriptorBySymbol('helloworld.Greeter');
|
|
@@ -133,7 +133,7 @@ try {
|
|
|
133
133
|
// Send request over grpc
|
|
134
134
|
const proto = new packageObject.helloworld.Greeter(
|
|
135
135
|
"localhost:50051",
|
|
136
|
-
grpc.
|
|
136
|
+
grpc.ChannelCredentials.createInsecure(),
|
|
137
137
|
);
|
|
138
138
|
|
|
139
139
|
proto.SayHello({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grpc-js-reflection-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "Package use Grpc reflection api to download gprc proto descriptor. Now you don't have to add proto file to each package. Simple direct download proto package from example microservice without any files.",
|
|
5
5
|
"author": "gawsoft.com",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
"url": "https://github.com/gawsoftpl/grpc-js-reflection-api-client.git"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@grpc/grpc-js": "^1.9.
|
|
30
|
-
"google-protobuf": "^3.21.2",
|
|
29
|
+
"@grpc/grpc-js": "^1.9.13",
|
|
31
30
|
"lodash.set": "^4.3.2",
|
|
32
31
|
"protobufjs": "^7.2.5"
|
|
33
32
|
},
|