@brigade/pooled-thrift-client
Advanced tools
Comparing version 1.1.0 to 1.1.1
# Changelog | ||
## 1.1.1 | ||
- Make client object more meaningful by wrapping only actual RPC methods | ||
## 1.0.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@brigade/pooled-thrift-client", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A Thrift client utilising a pool of service connections and improved error handling/recovery", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -165,3 +165,6 @@ const GenericPool = require('generic-pool'); | ||
return Object.keys(TService.Client.prototype).reduce((thriftClient, rpc) => { | ||
const clientClass = TService.Client.prototype; | ||
return Object.keys(clientClass).filter((k) => { | ||
return clientClass.hasOwnProperty(`send_${k}`) && clientClass.hasOwnProperty(`recv_${k}`); | ||
}).reduce((thriftClient, rpc) => { | ||
thriftClient[rpc] = pooledRpc(TService, rpc, pool); | ||
@@ -168,0 +171,0 @@ return thriftClient; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34893
535
0