grpc-inspect
Advanced tools
Comparing version 0.3.1 to 0.3.2
46
index.js
@@ -38,5 +38,7 @@ const _ = require('lodash') | ||
* @example | ||
* const grpcinstect = require('grpc-inspect') | ||
* const grpcinspect = require('grpc-inspect') | ||
* const grpc = require('grpc') | ||
* const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
* const d = grpcinstect(pbpath) | ||
* const proto = grpc.load(pbpath) | ||
* const d = grpcinspect(proto) | ||
* console.log(d.namespaceNames()) // ['routeguide'] | ||
@@ -55,5 +57,7 @@ */ | ||
* @example | ||
* const grpcinstect = require('grpc-inspect') | ||
* const grpcinspect = require('grpc-inspect') | ||
* const grpc = require('grpc') | ||
* const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
* const d = const grpcinstect(pbpath) | ||
* const proto = grpc.load(pbpath) | ||
* const d = const grpcinspect(proto) | ||
* console.log(d.serviceNames()) // ['RouteGuide'] | ||
@@ -81,5 +85,7 @@ */ | ||
* @example | ||
* const grpcinstect = require('grpc-inspect') | ||
* const grpcinspect = require('grpc-inspect') | ||
* const grpc = require('grpc') | ||
* const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
* const d = grpcinstect(pbpath) | ||
* const proto = grpc.load(pbpath) | ||
* const d = grpcinspect(proto) | ||
* console.dir(d.service('RouteGuide')) | ||
@@ -111,5 +117,7 @@ */ | ||
* @example | ||
* const grpcinstect = require('grpc-inspect') | ||
* const grpcinspect = require('grpc-inspect') | ||
* const grpc = require('grpc') | ||
* const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
* const d = grpcinstect(pbpath) | ||
* const proto = grpc.load(pbpath) | ||
* const d = grpcinspect(proto) | ||
* console.log(d.methodNames('RouteGuide')) // [ 'GetFeature', 'ListFeatures', 'RecordRoute', 'RouteChat' ] | ||
@@ -129,5 +137,7 @@ */ | ||
* @example | ||
* const grpcinstect = require('grpc-inspect') | ||
* const grpcinspect = require('grpc-inspect') | ||
* const grpc = require('grpc') | ||
* const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
* const d = grpcinstect(pbpath) | ||
* const proto = grpc.load(pbpath) | ||
* const d = grpcinspect(proto) | ||
* console.dir(d.methods('RouteGuide')) | ||
@@ -145,5 +155,7 @@ */ | ||
* @example | ||
* const grpcinstect = require('grpc-inspect') | ||
* const grpcinspect = require('grpc-inspect') | ||
* const grpc = require('grpc') | ||
* const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
* const d = grpcinstect(pbpath) | ||
* const proto = grpc.load(pbpath) | ||
* const d = grpcinspect(proto) | ||
* console.dir(d.proto()) | ||
@@ -161,5 +173,7 @@ */ | ||
* @example | ||
* const grpcinstect = require('grpc-inspect') | ||
* const grpcinspect = require('grpc-inspect') | ||
* const grpc = require('grpc') | ||
* const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
* const d = grpcinstect(pbpath) | ||
* const proto = grpc.load(pbpath) | ||
* const d = grpcinspect(proto) | ||
* console.dir(d.client('RouteGuide')) | ||
@@ -347,3 +361,3 @@ */ | ||
* const proto = grpc.load(pbpath) | ||
* const d = gi(pbpath) | ||
* const d = gi(proto) | ||
* console.dir(d) | ||
@@ -356,3 +370,3 @@ */ | ||
} else { | ||
throw new Error('Invalid input type. Expected a string') | ||
throw new Error('Invalid input type. Expected an object') | ||
} | ||
@@ -359,0 +373,0 @@ |
{ | ||
"name": "grpc-inspect", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "gRPC protocol buffer inspection utility", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,4 +45,6 @@ # grpc-inspect | ||
const gi = require('grpc-inspect') | ||
const grpc = require('grpc') | ||
const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
const d = gi(pbpath) | ||
const proto = grpc.load(pbpath) | ||
const d = gi(proto) | ||
console.dir(d) | ||
@@ -128,5 +130,7 @@ ``` | ||
```js | ||
const grpcinstect = require('grpc-inspect') | ||
const grpcinspect = require('grpc-inspect') | ||
const grpc = require('grpc') | ||
const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
const d = grpcinstect(pbpath) | ||
const proto = grpc.load(pbpath) | ||
const d = grpcinspect(proto) | ||
console.log(d.namespaceNames()) // ['routeguide'] | ||
@@ -150,5 +154,7 @@ ``` | ||
```js | ||
const grpcinstect = require('grpc-inspect') | ||
const grpcinspect = require('grpc-inspect') | ||
const grpc = require('grpc') | ||
const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
const d = const grpcinstect(pbpath) | ||
const proto = grpc.load(pbpath) | ||
const d = const grpcinspect(proto) | ||
console.log(d.serviceNames()) // ['RouteGuide'] | ||
@@ -173,5 +179,7 @@ ``` | ||
```js | ||
const grpcinstect = require('grpc-inspect') | ||
const grpcinspect = require('grpc-inspect') | ||
const grpc = require('grpc') | ||
const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
const d = grpcinstect(pbpath) | ||
const proto = grpc.load(pbpath) | ||
const d = grpcinspect(proto) | ||
console.dir(d.service('RouteGuide')) | ||
@@ -195,5 +203,7 @@ ``` | ||
```js | ||
const grpcinstect = require('grpc-inspect') | ||
const grpcinspect = require('grpc-inspect') | ||
const grpc = require('grpc') | ||
const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
const d = grpcinstect(pbpath) | ||
const proto = grpc.load(pbpath) | ||
const d = grpcinspect(proto) | ||
console.log(d.methodNames('RouteGuide')) // [ 'GetFeature', 'ListFeatures', 'RecordRoute', 'RouteChat' ] | ||
@@ -218,5 +228,7 @@ ``` | ||
```js | ||
const grpcinstect = require('grpc-inspect') | ||
const grpcinspect = require('grpc-inspect') | ||
const grpc = require('grpc') | ||
const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
const d = grpcinstect(pbpath) | ||
const proto = grpc.load(pbpath) | ||
const d = grpcinspect(proto) | ||
console.dir(d.methods('RouteGuide')) | ||
@@ -235,5 +247,7 @@ ``` | ||
```js | ||
const grpcinstect = require('grpc-inspect') | ||
const grpcinspect = require('grpc-inspect') | ||
const grpc = require('grpc') | ||
const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
const d = grpcinstect(pbpath) | ||
const proto = grpc.load(pbpath) | ||
const d = grpcinspect(proto) | ||
console.dir(d.proto()) | ||
@@ -257,5 +271,7 @@ ``` | ||
```js | ||
const grpcinstect = require('grpc-inspect') | ||
const grpcinspect = require('grpc-inspect') | ||
const grpc = require('grpc') | ||
const pbpath = path.resolve(__dirname, './route_guide.proto') | ||
const d = grpcinstect(pbpath) | ||
const proto = grpc.load(pbpath) | ||
const d = grpcinspect(proto) | ||
console.dir(d.client('RouteGuide')) | ||
@@ -284,3 +300,3 @@ ``` | ||
const proto = grpc.load(pbpath) | ||
const d = gi(pbpath) | ||
const d = gi(proto) | ||
console.dir(d) | ||
@@ -287,0 +303,0 @@ ``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34399
327
299