@ngx-grpc/protoc-gen-ng
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -0,1 +1,9 @@ | ||
## [0.2.2](https://github.com/ngx-grpc/protoc-gen-ng/compare/v0.2.1...v0.2.2) (2019-11-20) | ||
### Bug Fixes | ||
* do not transform the RPC path to camelcase, fix [#1](https://github.com/ngx-grpc/protoc-gen-ng/issues/1) ([4cc306d](https://github.com/ngx-grpc/protoc-gen-ng/commit/4cc306dc4182ca47488b116ce585cc8992547a00)) | ||
* use strict Uint8Array for bytes ([c526e0a](https://github.com/ngx-grpc/protoc-gen-ng/commit/c526e0ae6b5fd74d645eaa8764f8c15cbf7c238d)) | ||
## [0.2.1](https://github.com/ngx-grpc/protoc-gen-ng/compare/v0.2.0...v0.2.1) (2019-11-20) | ||
@@ -2,0 +10,0 @@ |
@@ -28,3 +28,3 @@ "use strict"; | ||
_a[types_1.MessageFieldType.bool] = { type: 'boolean', read: 'Bool', write: 'Bool', defaultExpression: 'false' }, | ||
_a[types_1.MessageFieldType.bytes] = { type: 'ByteSource', read: 'Bytes', write: 'Bytes', defaultExpression: '\'\'' }, | ||
_a[types_1.MessageFieldType.bytes] = { type: 'Uint8Array', read: 'Bytes', write: 'Bytes', defaultExpression: 'new Uint8Array()' }, | ||
_a[types_1.MessageFieldType.double] = { type: 'number', read: 'Double', write: 'Double', defaultExpression: '0' }, | ||
@@ -31,0 +31,0 @@ _a[types_1.MessageFieldType.enum] = { read: 'Enum', write: 'Enum', defaultExpression: '0' }, |
@@ -41,3 +41,3 @@ "use strict"; | ||
jsdoc.setDeprecation(!!method.options && method.options.deprecated); | ||
return "\n " + jsdoc.toString() + "\n " + processName(method.name) + "(requestData: " + inputType + ", requestMetadata: Metadata = {}) {\n return this.handler.handle({\n type: GrpcCallType." + (method.serverStreaming ? 'serverStream' : 'unary') + ",\n client: this.client,\n path: '/" + serviceUrlPrefix + _this.name + "/" + utils_1.camelize(method.name) + "',\n requestData,\n requestMetadata,\n requestClass: " + inputType + ",\n responseClass: " + outputType + ",\n }) as Observable<" + outputType + (method.serverStreaming ? ' | Status' : '') + ">;\n }\n "; | ||
return "\n " + jsdoc.toString() + "\n " + processName(method.name) + "(requestData: " + inputType + ", requestMetadata: Metadata = {}) {\n return this.handler.handle({\n type: GrpcCallType." + (method.serverStreaming ? 'serverStream' : 'unary') + ",\n client: this.client,\n path: '/" + serviceUrlPrefix + _this.name + "/" + method.name + "',\n requestData,\n requestMetadata,\n requestClass: " + inputType + ",\n responseClass: " + outputType + ",\n }) as Observable<" + outputType + (method.serverStreaming ? ' | Status' : '') + ">;\n }\n "; | ||
}); | ||
@@ -44,0 +44,0 @@ var tokenName = this.getConfigInjectionTokenName(); |
{ | ||
"name": "@ngx-grpc/protoc-gen-ng", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"author": "smnbbrv", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"test:generate": "rimraf ./test/out/* && protoc --plugin=protoc-gen-ng=$(pwd)/dist/main.js --ng_out=./test/out -I test/proto $(find test/proto -iname \"*.proto\")", | ||
"test:generate-grpc-web": "rimraf ./test/out-grpc-web/* --js_out=import_style=commonjs:$(pwd)/test/out-grpc-web --grpc-web_out=import_style=typescript,mode=grpcwebtext:$(pwd)/test/out-grpc-web && protoc -I=test/proto $(find test/proto -iname \"*.proto\")", | ||
"test:generate-grpc-web": "rimraf ./test/out-grpc-web/* && protoc -I=test/proto --js_out=import_style=commonjs:test/out-grpc-web --grpc-web_out=import_style=typescript,mode=grpcwebtext:test/out-grpc-web $(find test/proto -iname \"*.proto\")", | ||
"release": "semantic-release" | ||
@@ -31,0 +31,0 @@ }, |
35908