Skip to content

Commit

Permalink
update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
redhoyasa committed Jun 26, 2020
1 parent a5a157b commit f444bb6
Show file tree
Hide file tree
Showing 5 changed files with 854 additions and 1,191 deletions.
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
src/
test/
static/
docker-compose.yml
.github/
.nyc_output
.coverage
.vscode
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@types/protobufjs": "^6.0.0",
"async": "^3.2.0",
"grpc": "^1.24.2",
"grpc-tools": "^1.9.0",
"lodash.get": "^4.4.2",
"lodash.set": "^4.3.2",
"protobufjs": "^6.9.0"
Expand Down Expand Up @@ -58,11 +57,12 @@
"protoc": "yarn run protoc-pb && yarn run protoc-grpc"
},
"files": [
"src",
"build",
"LICENSE"
"LICENSE",
"README.md"
],
"keywords": [
"grpc"
]
],
"types": "build/src/index.d.ts"
}
37 changes: 12 additions & 25 deletions src/reflection_grpc_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,33 @@
// Service exported by server reflection
//
'use strict';
const grpc = require('grpc');
const reflection_pb = require('./reflection_pb.js');
var grpc = require('grpc');
var reflection_pb = require('./reflection_pb.js');

function serialize_grpc_reflection_v1alpha_ServerReflectionRequest(arg) {
if (!(arg instanceof reflection_pb.ServerReflectionRequest)) {
throw new Error(
'Expected argument of type grpc.reflection.v1alpha.ServerReflectionRequest'
);
throw new Error('Expected argument of type grpc.reflection.v1alpha.ServerReflectionRequest');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_grpc_reflection_v1alpha_ServerReflectionRequest(
buffer_arg
) {
return reflection_pb.ServerReflectionRequest.deserializeBinary(
new Uint8Array(buffer_arg)
);
function deserialize_grpc_reflection_v1alpha_ServerReflectionRequest(buffer_arg) {
return reflection_pb.ServerReflectionRequest.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_grpc_reflection_v1alpha_ServerReflectionResponse(arg) {
if (!(arg instanceof reflection_pb.ServerReflectionResponse)) {
throw new Error(
'Expected argument of type grpc.reflection.v1alpha.ServerReflectionResponse'
);
throw new Error('Expected argument of type grpc.reflection.v1alpha.ServerReflectionResponse');
}
return Buffer.from(arg.serializeBinary());
}

function deserialize_grpc_reflection_v1alpha_ServerReflectionResponse(
buffer_arg
) {
return reflection_pb.ServerReflectionResponse.deserializeBinary(
new Uint8Array(buffer_arg)
);
function deserialize_grpc_reflection_v1alpha_ServerReflectionResponse(buffer_arg) {
return reflection_pb.ServerReflectionResponse.deserializeBinary(new Uint8Array(buffer_arg));
}

const ServerReflectionService = (exports.ServerReflectionService = {

var ServerReflectionService = exports.ServerReflectionService = {
// The reflection service is structured as a bidirectional stream, ensuring
// all related requests go to a single server.
serverReflectionInfo: {
Expand All @@ -69,8 +58,6 @@ const ServerReflectionService = (exports.ServerReflectionService = {
responseSerialize: serialize_grpc_reflection_v1alpha_ServerReflectionResponse,
responseDeserialize: deserialize_grpc_reflection_v1alpha_ServerReflectionResponse,
},
});
};

exports.ServerReflectionClient = grpc.makeGenericClientConstructor(
ServerReflectionService
);
exports.ServerReflectionClient = grpc.makeGenericClientConstructor(ServerReflectionService);
Loading

0 comments on commit f444bb6

Please sign in to comment.