Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brigade/pooled-thrift-client

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brigade/pooled-thrift-client - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

CHANGELOG.md
# Changelog
## 1.1.1
- Make client object more meaningful by wrapping only actual RPC methods
## 1.0.0

@@ -4,0 +8,0 @@

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc