Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "ts-proto", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -8,2 +8,3 @@ "main": "build/plugin.js", | ||
"setup": "./pbjs.sh && mkdir -p build/integration && yarn ts-node integration/setup.ts", | ||
"setup-ours": "yarn ts-node integration/setup.ts", | ||
"test": "yarn jest -c jest.config.js" | ||
@@ -10,0 +11,0 @@ }, |
@@ -369,3 +369,9 @@ import { | ||
.addStatement('const data = %L.encode(request).finish()', requestType(typeMap, methodDesc)) | ||
.addStatement('const promise = this.rpc.request(%S, %S, %L)', serviceDesc.name, methodDesc.name, 'data') | ||
.addStatement( | ||
'const promise = this.rpc.request("%L.%L", %S, %L)', | ||
fileDesc.package, | ||
serviceDesc.name, | ||
methodDesc.name, | ||
'data' | ||
) | ||
.addStatement('return promise.then(data => %L.decode(new Reader(data)))', responseType(typeMap, methodDesc)) | ||
@@ -372,0 +378,0 @@ .returns(responsePromise(typeMap, methodDesc)) |
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
764807
11266