mirror of https://github.com/grpc/grpc-web.git
Update google closure compiler
This commit is contained in:
parent
b7fb330e3e
commit
e100cfa712
|
@ -12,10 +12,8 @@ const StatusCode = goog.require('grpc.web.StatusCode');
|
|||
const MethodDescriptor = goog.require('grpc.web.MethodDescriptor');
|
||||
const MethodType = goog.require('grpc.web.MethodType');
|
||||
|
||||
const exports = module['exports'];
|
||||
|
||||
exports['AbstractClientBase'] = {'MethodInfo': AbstractClientBase.MethodInfo};
|
||||
exports['GrpcWebClientBase'] = GrpcWebClientBase;
|
||||
exports['StatusCode'] = StatusCode;
|
||||
exports['MethodDescriptor'] = MethodDescriptor;
|
||||
exports['MethodType'] = MethodType;
|
||||
module['exports']['AbstractClientBase'] = {'MethodInfo': AbstractClientBase.MethodInfo};
|
||||
module['exports']['GrpcWebClientBase'] = GrpcWebClientBase;
|
||||
module['exports']['StatusCode'] = StatusCode;
|
||||
module['exports']['MethodDescriptor'] = MethodDescriptor;
|
||||
module['exports']['MethodType'] = MethodType;
|
||||
|
|
|
@ -23,14 +23,14 @@
|
|||
},
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"command-exists": "^1.2.7",
|
||||
"google-closure-compiler": "^20190909.0.0",
|
||||
"google-protobuf": "^3.8.0",
|
||||
"gulp": "^4.0.0",
|
||||
"gulp-eval": "^1.0.0",
|
||||
"mocha": "^5.2.0",
|
||||
"mock-xmlhttprequest": "^2.0.0",
|
||||
"command-exists": "~1.2.8",
|
||||
"google-closure-compiler": "~20200224.0.0",
|
||||
"google-protobuf": "~3.11.4",
|
||||
"gulp": "~4.0.2",
|
||||
"gulp-eval": "~1.0.0",
|
||||
"mocha": "~5.2.0",
|
||||
"mock-xmlhttprequest": "~2.0.0",
|
||||
"require-self": "0.2.1",
|
||||
"typescript": "~3.7.0"
|
||||
"typescript": "~3.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ const closureArgs = [].concat(
|
|||
[
|
||||
`--entry_point=grpc.web.Exports`,
|
||||
`--externs=externs.js`,
|
||||
`--dependency_mode=STRICT`,
|
||||
`--dependency_mode=PRUNE`,
|
||||
`--compilation_level=ADVANCED_OPTIMIZATIONS`,
|
||||
`--generate_exports`,
|
||||
`--export_local_property_definitions`,
|
||||
|
|
|
@ -258,7 +258,7 @@ describe('grpc-web generated code (closure+grpcwebtext)', function() {
|
|||
jsPaths.map(jsPath => `--js=${jsPath}`),
|
||||
[
|
||||
`--entry_point=goog:proto.grpc.gateway.testing.EchoAppClient`,
|
||||
`--dependency_mode=STRICT`,
|
||||
`--dependency_mode=PRUNE`,
|
||||
`--js_output_file ./test/generated/compiled.js`,
|
||||
`--output_wrapper="%output%module.exports = proto.grpc.gateway.testing;"`,
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue