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

flashheart

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flashheart - npm Package Compare versions

Comparing version 2.5.3 to 2.6.0

2

index.js

@@ -16,1 +16,3 @@ var Client = require('./lib/client');

};
module.exports.Client = Client;

2

package.json
{
"name": "flashheart",
"version": "2.5.3",
"version": "2.6.0",
"description": "A fully-featured REST client built for ease-of-use and resilience",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,2 +28,3 @@ # flashheart

* [Circuit breaker](#circuit-breaker)
* [Promises](#promises)

@@ -221,2 +222,17 @@ ## Usage

### Promises
Flashheart uses callbacks, but we expose the `Client` constructor to make it easy to [promisify](http://bluebirdjs.com/docs/api/promisification.html) the entire library:
```js
const Promise = require('bluebird');
const Client = require('flashheart').Client;
const client = require('flashheart').createClient();
Promise.promisifyAll(Client.prototype);
client.getAsync('http://httpstat.us/200')
.then((body) => console.log(body));
```
## API

@@ -223,0 +239,0 @@

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