grpc-reflection-js
Advanced tools
Comparing version 0.0.5 to 0.0.7
@@ -1,2 +0,2 @@ | ||
import * as grpc from 'grpc'; | ||
import { ChannelCredentials } from '@grpc/grpc-js'; | ||
import * as services from './reflection_grpc_pb'; | ||
@@ -6,5 +6,5 @@ import { Root } from 'protobufjs'; | ||
grpcClient: services.IServerReflectionClient; | ||
constructor(url: string, credentials: grpc.ChannelCredentials, options?: object); | ||
constructor(url: string, credentials: ChannelCredentials, options?: object); | ||
listServices(): Promise<string[] | void[]>; | ||
fileContainingSymbol(symbol: string): Promise<Root>; | ||
} |
@@ -1,2 +0,1 @@ | ||
/// <reference types="grpc" /> | ||
export namespace ServerReflectionService { | ||
@@ -15,3 +14,3 @@ export namespace serverReflectionInfo { | ||
} | ||
export var ServerReflectionClient: typeof import("grpc").Client; | ||
export var ServerReflectionClient: import("@grpc/grpc-js/build/src/make-client").ServiceClientConstructor; | ||
declare function serialize_grpc_reflection_v1alpha_ServerReflectionRequest(arg: any): Buffer; | ||
@@ -18,0 +17,0 @@ declare function deserialize_grpc_reflection_v1alpha_ServerReflectionRequest(buffer_arg: any): import("./reflection_pb.js").ServerReflectionRequest; |
@@ -20,3 +20,3 @@ // GENERATED CODE -- DO NOT EDIT! | ||
'use strict'; | ||
var grpc = require('grpc'); | ||
var grpc = require('@grpc/grpc-js'); | ||
var reflection_pb = require('./reflection_pb.js'); | ||
@@ -23,0 +23,0 @@ function serialize_grpc_reflection_v1alpha_ServerReflectionRequest(arg) { |
@@ -23,3 +23,3 @@ "use strict"; | ||
const client_1 = require("../src/client"); | ||
const grpc = __importStar(require("grpc")); | ||
const grpc_js_1 = require("@grpc/grpc-js"); | ||
// eslint-disable-next-line node/no-unpublished-import | ||
@@ -33,3 +33,3 @@ const chai_1 = require("chai"); | ||
it('should return services', async () => { | ||
const reflectionClient = new client_1.Client('localhost:4770', grpc.credentials.createInsecure()); | ||
const reflectionClient = new client_1.Client('localhost:4770', grpc_js_1.credentials.createInsecure()); | ||
const grpcCall = { | ||
@@ -36,0 +36,0 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any |
{ | ||
"name": "grpc-reflection-js", | ||
"version": "0.0.5", | ||
"version": "0.0.7", | ||
"main": "build/src/index.js", | ||
@@ -9,6 +9,6 @@ "repository": "https://github.com/redhoyasa/grpc-reflection-js", | ||
"dependencies": { | ||
"@grpc/grpc-js": "^1.1.7", | ||
"@types/google-protobuf": "^3.7.2", | ||
"@types/lodash.set": "^4.3.6", | ||
"google-protobuf": "^3.12.2", | ||
"grpc": "^1.24.2", | ||
"lodash.set": "^4.3.2", | ||
@@ -30,3 +30,4 @@ "protobufjs": "^6.9.0" | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"grpc_tools_node_protoc_ts": "^4.0.0", | ||
"grpc-tools": "^1.9.1", | ||
"grpc_tools_node_protoc_ts": "^5.0.0", | ||
"gts": "^2.0.2", | ||
@@ -36,3 +37,2 @@ "mocha": "^7.2.0", | ||
"prettier": "^2.0.5", | ||
"protoc-gen-grpc": "^1.4.0", | ||
"sinon": "^9.0.2", | ||
@@ -52,5 +52,3 @@ "ts-node": "^8.10.2", | ||
"posttest": "yarn run check", | ||
"protoc-pb": "protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./src --ts_out=./src -I ./static/grpc/reflection/v1alpha reflection.proto", | ||
"protoc-grpc": "protoc-gen-grpc --js_out=import_style=commonjs,binary:./src --grpc_out=./src -I ./static/grpc/reflection/v1alpha reflection.proto", | ||
"protoc": "yarn run protoc-pb && yarn run protoc-grpc", | ||
"protoc": "grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./src --grpc_out=grpc_js:./src --ts_out=grpc_js:./src --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts -I ./static/grpc/reflection/v1alpha reflection.proto", | ||
"build": "yarn run compile && yarn run fix && yarn run check" | ||
@@ -57,0 +55,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
139794
1902
+ Added@grpc/grpc-js@^1.1.7
+ Added@grpc/grpc-js@1.12.6(transitive)
+ Added@grpc/proto-loader@0.7.13(transitive)
+ Added@js-sdsl/ordered-map@4.4.2(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedlong@5.3.0(transitive)
+ Addedprotobufjs@7.4.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
- Removedgrpc@^1.24.2
- Removed@mapbox/node-pre-gyp@1.0.11(transitive)
- Removed@types/bytebuffer@5.0.49(transitive)
- Removed@types/long@3.0.32(transitive)
- Removedabbrev@1.1.1(transitive)
- Removedagent-base@6.0.2(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedaproba@2.0.0(transitive)
- Removedare-we-there-yet@2.0.0(transitive)
- Removedascli@1.0.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbytebuffer@5.0.1(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedchownr@2.0.0(transitive)
- Removedcliui@3.2.0(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedcolour@0.7.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddelegates@1.0.0(transitive)
- Removeddetect-libc@2.0.3(transitive)
- Removedfs-minipass@2.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedgauge@3.0.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedgrpc@1.24.11(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhttps-proxy-agent@5.0.1(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedlcid@1.0.0(transitive)
- Removedlodash.clone@4.5.0(transitive)
- Removedlong@3.2.0(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminipass@3.3.65.0.0(transitive)
- Removedminizlib@2.1.2(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedms@2.1.3(transitive)
- Removednan@2.22.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removednopt@5.0.0(transitive)
- Removednpmlog@5.0.1(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedoptjs@3.2.2(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprotobufjs@5.0.3(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsemver@6.3.17.7.1(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedtar@6.2.1(transitive)
- Removedtr46@0.0.3(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedwindow-size@0.1.4(transitive)
- Removedwrap-ansi@2.1.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedy18n@3.2.2(transitive)
- Removedyallist@4.0.0(transitive)
- Removedyargs@3.32.0(transitive)